Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod
- » MetaMod General Support
- » View my recipes please
View my recipes please
View my recipes please
hello guys. here's my recipe
I want this turned on mon-sun from 12midnight to 8:59am
if ( $core_genius->inTimeSpan("mon - sun" )
and $core_genius->inTimeSpan( "00:00 - 08:59" ) ) {
return 337;
}
then have it turn this on sun between 9-11am
if ( $core_genius->inTimeSpan( "sun 09:00 - sun 11:00" ) ) return 338;
then at 11:01AM turn this 1 back on until 12:59pm
if ( $core_genius->inTimeSpan("sun" )
and $core_genius->inTimeSpan( "11:01 - 23:59" ) ) {
return 337;
}
Today is sat, so when I put everything with sat date and time, I see it turns on the module, then turn it off and turn the other on and then turn the main module back on again, but when I try to set it back to really start. I expect to see module 337 on but it's not.
I'm running joomla 1.5.23 and metamod 2.7
Re: View my recipes please
Hi philly0128,
just before I spend some time on this can you please confirm if you still have a problem with it? As far as I can see, the logic and the PHP seem fine, except that the 2st rule doesn't need the check for "mon - sun" since that's true for every day of the week...
Cheers,
Stephen
- Index
- » MetaMod
- » MetaMod General Support
- » View my recipes please
Board Info
- Board Stats:
- Total Topics:
- 1689
- Total Polls:
- 6
- Total Posts:
- 5942
- Posts this week:
- 2
- User Info:
- Total Users:
- 7628
- Newest User:
- horlogekorting34
- Members Online:
- 1
- Guests Online:
- 137
- Online:
- uistr4qx
Forum Legend:
Topic
New
Locked
Sticky
Active
New/Active
New/Locked
New Sticky
Locked/Active
Active/Sticky
Sticky/Locked
Sticky/Active/Locked