Multi News Rotaional Thingy

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
buntrosgali
Forum Members
Forum Members
Posts: 167
Joined: Thu Apr 17, 2008 9:02 pm

Multi News Rotaional Thingy

Post 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
User avatar
nakkiel
Forum Members
Forum Members
Posts: 70
Joined: Wed Apr 02, 2008 7:15 am

Re: Multi News Rotaional Thingy

Post 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.
Last edited by nakkiel on Fri May 23, 2008 12:35 pm, edited 1 time in total.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Multi News Rotaional Thingy

Post by RonnyK »

Or use one of the modules/tags from Foge,

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

Ronny
buntrosgali
Forum Members
Forum Members
Posts: 167
Joined: Thu Apr 17, 2008 9:02 pm

Re: Multi News Rotaional Thingy

Post by buntrosgali »

cheers guys ill try these suggestions when i get a spare minute
Post Reply

Return to “Layout and Design (CSS & HTML)”