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
Multi News Rotaional Thingy
-
buntrosgali
- Forum Members

- Posts: 167
- Joined: Thu Apr 17, 2008 9:02 pm
Re: Multi News Rotaional Thingy
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:
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.
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" />';
Last edited by nakkiel on Fri May 23, 2008 12:35 pm, edited 1 time in total.
Re: Multi News Rotaional Thingy
Or use one of the modules/tags from Foge,
http://dev.cmsmadesimple.org/search/?ty ... rds=rotate
Ronny
http://dev.cmsmadesimple.org/search/?ty ... rds=rotate
Ronny
-
buntrosgali
- Forum Members

- Posts: 167
- Joined: Thu Apr 17, 2008 9:02 pm
Re: Multi News Rotaional Thingy
cheers guys ill try these suggestions when i get a spare minute

