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.

 

Metamod Weekdays

Metamod Weekdays

Hi, I just bought Metamod Pro, but I'm not pretty good at PHP, but I want certain modules shown certain weekdays, one Monday, another Tuesday, etc. Is it possible and can you give me an example of how I put it up in Metamod Pro :-)
THANKS
Regards

gmusik
Beginner Modder
ranks
useravatar
Offline
2 Posts
Administrator has disabled public posting

Re: Metamod Weekdays

Hi gmusik,

this is nice and easy smile
Using MM_DAY_OF_WEEK will return the day of week, 0=Sunday, 6=Saturday

if (MM_DAY_OF_WEEK == 1)  return 101;
if (MM_DAY_OF_WEEK == 2)  return 102;
if (MM_DAY_OF_WEEK == 3)  return 103;
// etc.

Replace 101, 102, 103 etc with the module ids of the module to display for each day, as appropriate.
Remember to set up the target modules (101, 102, 103 etc, whatever the ids are) to NOT show on any menu items. In that way they will still show up when included by the code above, but won't show up otherwise. (and that's the way you want it!)

Best regards
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: Metamod Weekdays

Hi Stephen  wink
Thank you, it was easy, so I've learned it today cool

Regards Allan (Gmusik)

gmusik
Beginner Modder
ranks
useravatar
Offline
2 Posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1667
Total Polls:
6
Total Posts:
5909
Posts this week:
1
User Info:
 
Total Users:
10119
Newest User:
watytb5
Members Online:
3
Guests Online:
190


Forum Legend:

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