PDA

View Full Version : Adding Rotating Banners



mickalo
Sat 31st Mar '01, 8:28pm
I'm sure this topic has been asked many times, and I've search thru most of the forums here, and haven't quiet figured out how to do this.

We are trying to insert a rotating banner script so that it's displayed on top of every page of the forum. We've tried entering the following tag:


<?php virtual("/cgi-bin/adwizard/display.cgi") ?>

into the various templates, with no luck. I would greatly appreciate any assistance.

TIA ;)

Mickalo

p.s. this is version 1.15.

Wayne Luke
Mon 2nd Apr '01, 3:15pm
In 1.1.5 the easiest way to do it is to eval() the results of your banner script into a variable say $adbanner at the bottom of global.php then reference $adbanner within the various templates.

mickalo
Mon 2nd Apr '01, 3:31pm
Originally posted by wluke
In 1.1.5 the easiest way to do it is to eval() the results of your banner script into a variable say $adbanner at the bottom of global.php then reference $adbanner within the various templates.

Would this be the correct syntax to write something like this:


eval("\$adbanner = implode('', file('http://www.domain.com/cgi-bin/adwizard/display.cgi'));");


Mickalo