Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod Pro
- » MetaMod Pro General Support
- » Randomize module display
Page:
1
Randomize module display
Randomize module display
Hi,
Just got Metamod Pro and I am loving it! It just works right out the box for my previous issue. Anyways, I have a question.
How could I randomize module displayed, say like 3 different modules?
What is the required code?
Please advise and thank you very much!
Administrator has disabled public posting
Re: Randomize module display
Hi Pembaris,
do a site search for "random", or see the following recipe from the recipes page:
http://www.metamodpro.com/support/recip … s-randomly
Hope this helps,
Stephen
Administrator has disabled public posting
Administrator has disabled public posting
Re: Randomize module display
Code:
if ( MM_NOT_LOGGED_IN ) {
$r = rand(1,2); // get a random number: 1-2 inclusive
if ($r == 1) return 44;
if ($r == 2) return 88;
}
Administrator has disabled public posting
Page:
1
- Index
- » MetaMod Pro
- » MetaMod Pro General Support
- » Randomize module display
Board Info
- Board Stats:
- Total Topics:
- 1699
- Total Polls:
- 6
- Total Posts:
- 5967
- Total Posts Today:
- 2
- User Info:
- Total Users:
- 8021
- Newest User:
- shrutihassan193
- Members Online:
- 0
- Guests Online:
- 210
- 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