Welcome to the MetaMod and Chameleon Support Forums.

Before posting, please check out the FAQs.

helpme

 

Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.

 

Display on during business hours during M-F

Display on during business hours during M-F

I used the script on your website.

// between 9-11AM, 4-6PM and 8-10PM Monday to Friday
if (
(MM_DAY_OF_WEEK >= 1 && MM_DAY_OF_WEEK <= 5) &&
  (
   (MM_TIME > 90000 && MM_TIME < 160000 )
  )
) {
return 50;
}

I reconfigured it to display from 9am - 4pm

My live chat module is id 173... This is the first time that I am trying the PHP. It has been working great when I set it for 9am to 4pm on the free time area. I just don't want to module to appear on the weekends.

Was does the return 50 mean?

Michael

michaelyork06
Beginner Modder
ranks
useravatar
Offline
3 Posts
User info in posts
Administrator has disabled public posting

Re: Display on during business hours during M-F

Hi Michael,

1 - remove all text from the "start datetime" and "stop datetime" boxes
2 - remove your module ID from the "quick module id include" box
3 - use the code from above in the PHP box, but replace the "50" with "173". The "return" statement is the bit that tells MetaMod to use the specified module in that module position. That's why you don't need anything in the "quick module id include" box any more.

Hope that helps,
Stephen

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3312 Posts
User info in posts
Administrator has disabled public posting

Re: Display on during business hours during M-F

Worked perfectly. Thanks for the clarification! I recommend your product to all my customers that have a Joomla Site.
Michael

michaelyork06
Beginner Modder
ranks
useravatar
Offline
3 Posts
User info in posts
Administrator has disabled public posting

Re: Display on during business hours during M-F

You're welcome - glad it's working for you.

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3312 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1667
Total Polls:
6
Total Posts:
5909
Total Posts Today:
1
User Info:
 
Total Users:
10075
Newest User:
rsker57
Members Online:
0
Guests Online:
154

Online: 
There are no members online

Forum Legend:

 Topic
 New
 Locked
 Sticky
 Active
 New/Active
 New/Locked
 New Sticky
 Locked/Active
 Active/Sticky
 Sticky/Locked
 Sticky/Active/Locked