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.

 

Daily roll, switch by hour or every 4# hour

Daily roll, switch by hour or every 4# hour

I played around but since I found no documentation I couldnt make it work. It stuck with last rule, or didnt follow rules. Thank you.

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

Re: Daily roll, switch by hour or every 4# hour

Hi foolevil,

Documentation:

There's a guide for MetaTemplate Pro which covers all the basics of MetaTemplate as well - http://www.metamodpro.com/metatemplate/documentation

The main difference between MT and MTP is that in MT you have to code most things in PHP.

Thankfully the PHP is relatively simple thanks to a system that's part of MT called JomGenius. This gives some much simplified ways of dealing with date & time (in your case), and much more besides.

There are examples of date/time things on the JomGenius page: http://www.metamodpro.com/jomgenius/parameters

Also, there's a page of "recipes" for date and time things. The page was written for MetaMod (which deals with modules), but almost exactly the same code works for MetaTemplate as well. At the end of each rule, instead of using "return XXX;" (where XXX is a module id), you just need to use "return true;" to make the rule succeed, or "return false;" to make the rule fail.

See here: http://www.metamodpro.com/metamod/recip … time-rules

I hope that gets you going. Please post back with examples of what you're using, and an explanation of what you want to achieve, if you want help with it.

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
3312 Posts
User info in 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:
10137
Newest User:
lexispoker1
Members Online:
0
Guests Online:
339

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