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.

 

can anyone help with specific days and time script to show modules?

can anyone help with specific days and time script to show modules?

Hi
I am currently using the free version and working great. I though want to try and accomplish the following:

On Tuesday and Saturdays from 18:00 > 22:00 show modules 67 and 65.
So far my I've been trying to use the examples of time placements but to no avail.

Can anyone help?

Thanks

scott

slewis1972
Beginner Modder
ranks
useravatar
Offline
1 Posts
Administrator has disabled public posting

Re: can anyone help with specific days and time script to show modules?

Hi Scott,

there's a nice new easy way to do this in MetaMod 2.4 which I think you'll like!

Once you have everything else set up right (see the quick start guide), try using the following PHP rule in the PHP box:

if ( $core_genius->inTimeSpan("tue 18:00 - tue 21:59; sat 18:00 - sat 21:59") ) return "67,65";

Also, don't forget to set your local time zone in the drop-down box at the top of the MetaMod. Leaving it as "Default" is ok, but if you set your local time zone here then it will respect Daylight Savings (Summer Time) while the Default one does not.

[If for any reason you have installed MetaTemplate, then you should set the local time zone in the "Parameters" for MetaTemplate, because this overrides the timezone in MetaMod.]

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
3313 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1680
Total Polls:
6
Total Posts:
5914
Total Posts Today:
1
User Info:
 
Total Users:
10831
Newest User:
bluesky1
Members Online:
0
Guests Online:
103

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