I use the custom islands to post advertising on our forums.

One of our clients wants to randomly rotate 3 ads.
I found a nice/simple php script to do the job.

But...
I'm not sure where to put the code to call the include (or the file containing the script).

I need to use this code to call in the script with the rotating ads...

<?
include_once("AdRotation.php");
echo "<div align='center'>$bannerAd</div>";
?>

And I need to make sure AdRotation.php resides in the right place to be called into the custom island.

Figured it was better to ask then to break things :-)

You can see it in action here (a test page I set up)...
http://www.pianoworld.com/RotateAdTest.php

Each time the page is reloaded, it randomly displays one of three ads.


Founder/Host
Piano World
https://PianoWorld.com
Home of the world famous Piano Forums.
http://forum.PianoWorld.com
88,000+ registered members
Over 2.5 million posts, and growing...