Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod Pro
- » MetaMod Pro General Support
- » Display on during business hours...
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
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
- Index
- » MetaMod Pro
- » MetaMod Pro General Support
- » Display on during business hours...
Board Info
- Board Stats:
- Total Topics:
- 1689
- Total Polls:
- 6
- Total Posts:
- 5944
- Posts this week:
- 2
- User Info:
- Total Users:
- 7658
- Newest User:
- carre82601
- Members Online:
- 0
- Guests Online:
- 153
- 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