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.

 

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

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

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

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

Board Info

Board Stats:
 
Total Topics:
1684
Total Polls:
6
Total Posts:
5940
Posts this week:
1
User Info:
 
Total Users:
5174
Newest User:
frashaomran
Members Online:
0
Guests Online:
144

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