Page 1 of 1

Multi News Rotaional Thingy

Posted: Fri May 23, 2008 11:48 am
by buntrosgali
Hey guys

i normally use a php  rotational news applet on the index pages of some of my sites, for example here:Website example


but ive since started trying the cms system. Does anyone know of any similar type thing that can be used in cms sites? as the pages are html the php script wont work.

Hope someone has an idea.

Cheers

Re: Multi News Rotaional Thingy

Posted: Fri May 23, 2008 12:29 pm
by nakkiel
I did something like that using Extensions > User defined tags.
Just wrote a simple php script that uses rand function to select different image into the front page...

Something like this:

Code: Select all

$rndnumber = rand (1, 3);
echo '<img alt="Content" heigth="200" src="images/content' . $rndnumber . '.jpg" width="520" />';
Name it as you wish and call it from the page template. So you can actually use php in your pages. Maybe you can simply copy & paste that applet code into user defined tags? Or maybe modify it abit to make it work, haven't tried that applet so I can't say.

Re: Multi News Rotaional Thingy

Posted: Fri May 23, 2008 12:37 pm
by RonnyK
Or use one of the modules/tags from Foge,

http://dev.cmsmadesimple.org/search/?ty ... rds=rotate

Ronny

Re: Multi News Rotaional Thingy

Posted: Wed Jun 04, 2008 6:40 pm
by buntrosgali
cheers guys ill try these suggestions when i get a spare minute