PDA

View Full Version : incorporating ad banners into header...



XFLOfficePool
Wed 10th Jan '01, 12:09pm
Hi everyone,
I've modifed the "header" template to fit my logo, menu system and whatnot. In that of course is a call to my Ad Banner system. The adbanner perl script allows me to pass a "page" parameter, a unique page number/name.

In my own perl scripts, I created a variable, $adstamp = rand();

Anyone care to help me with an equivalent PHP3 var? :) and I'm I correct in assuming it would go in global.php3 ?

I tried using $timenow, but it doesn't showup on my call to the adbanner script...

If you are curious about my new site, go to http://www.xflofficepool.com/test-index.htm

Mike Sullivan
Wed 10th Jan '01, 12:14pm
Anyone care to help me with an equivalent PHP3 var?$adstamp = rand(); :)


and I'm I correct in assuming it would go in global.php3 ?One of several places, but yes.

[Edited by Ed Sullivan on 01-10-2001 at 11:16 AM]

XFLOfficePool
Wed 10th Jan '01, 12:15pm
Nice!

Thanks.

XFLOfficePool
Wed 10th Jan '01, 12:24pm
hmmmm. Okay, I put $adstamp = rand(); in global.php3 but my "page=" parm to my adbanner perl script still gets nothing.

Here is the line from my "header" template. Is $adstamp truely global, seems the header template just isn't picking it up. Just a guess on my part. Or, is my use of the double quotes hiding $adstamp ?

<a target="_new" href="http://www.xflofficepool.com/cgi-local/webads/ads.pl?banner=NonSSI;page=$adstamp"><img src="http://www.xflofficepool.com/cgi-local/webads/ads.pl?page=$adstamp" width="468" height="60" alt="Sponsor Ad Banner" border="0"></a>


Any ideas?

Mike Sullivan
Wed 10th Jan '01, 12:50pm
Make sure you put it before the eval("$header .... line

XFLOfficePool
Wed 10th Jan '01, 1:03pm
That did it. Thanks.