PDA

View Full Version : A rotating list on forumhome


rex_b
04-06-2005, 06:11 PM
I want to make a list of links rotate on my forumhome sidebar from a bank of links.

Anybody have any ideas on how this could be done?

Thanks,
Rex

WhSox21
04-06-2005, 10:58 PM
$links = array(
'http://www.link1.com/',
'http://www.link2.com/',
'http://www.link3.com/',
'http://www.link4.com/'
);

for ($x = 0; $x <= 4; ++$x)
{
$link .= $links[rand(0, count($links)-1)].'<br>';
}


Then put $link somewhere on forumhome template.

rex_b
04-06-2005, 11:22 PM
If you were a woman Ryan, I would ...... (nevermind)

attroll
06-25-2005, 08:57 AM
$links = array(
'http://www.link1.com/',
'http://www.link2.com/',
'http://www.link3.com/',
'http://www.link4.com/'
);

for ($x = 0; $x <= 4; ++$x)
{
$link .= $links[rand(0, count($links)-1)].'<br>';
}


Then put $link somewhere on forumhome template.

Where does that code get put?

rex_b
06-25-2005, 05:56 PM
in your index.php