Hey,
I just upgraded and I was running a PHP banner rotation in the footer include on my site.
Since upgrading, it no logner displays the banner ads.. just the coding. Has this been disabled in version 6... it worked fine in 5.5.1. Work arounds?
-----Here's my footer file----
<p align = center>
<?
/*
PLEASE KEEP THE CREDITS INTACT WHEN DISTRIBUTING THIS SCRIPT
USE AT YOUR OWN RISK WITH NO SUPPORT OR GUARANTEES
USE IT FOR PUBLIC, PRIVATE, PROFIT AT NO CHARGE
AD_ROTATOR IN PHP3
BY: MARK DONCHEK
E: []
[email protected][/]
W:
www.MARKDONLINE.COMThis script is ideal for rotating a few ads on a small site without comittiing to an elaborate
database system. Since each ad is stored in its own include file,
it can contain HTML, quotes, semicolons, etc which may throw other scripts off.
1. Simply cut and paste all of this code in a php doc where you want your ad to appear.
2. create an include file for each ad.
3. copy all necessary code for the ad into its respective include.
4. change the var $randomnumber to accomodate the number of ads you have.
where 'x' = one less than the number of ads you have:
*/
srand((double)microtime()*1000000);
$randomnumber = rand(0,20); // change the second number if need be (see number 4 above)
/*
5. change "your_path/any_ad.inc" for each ad you have
6. alter the number of elseifs to accomodate the number of includes if necessary (ads).
*/
$include0 = "/home/measurection/htdocs/banners/ad0.inc";
$include1 = "/home/measurection/htdocs/banners/ad1.inc";
$include2 = "/home/measurection/htdocs/banners/ad2.inc";
$include3 = "/home/measurection/htdocs/banners/ad3.inc";
$include4 = "/home/measurection/htdocs/banners/ad4.inc";
$include5 = "/home/measurection/htdocs/banners/ad5.inc";
$include6 = "/home/measurection/htdocs/banners/ad6.inc";
$include7 = "/home/measurection/htdocs/banners/ad7.inc";
$include8 = "/home/measurection/htdocs/banners/ad8.inc";
$include9 = "/home/measurection/htdocs/banners/ad9.inc";
$include10 = "/home/measurection/htdocs/banners/ad10.inc";
$include11 = "/home/measurection/htdocs/banners/ad11.inc";
$include12 = "/home/measurection/htdocs/banners/ad12.inc";
$include13 = "/home/measurection/htdocs/banners/ad13.inc";
$include14 = "/home/measurection/htdocs/banners/ad14.inc";
$include15 = "/home/measurection/htdocs/banners/ad15.inc";
$include16 = "/home/measurection/htdocs/banners/ad16.inc";
$include17 = "/home/measurection/htdocs/banners/ad17.inc";
$include18 = "/home/measurection/htdocs/banners/ad18.inc";
$include19 = "/home/measurection/htdocs/banners/ad19.inc";
$include20 = "/home/measurection/htdocs/banners/ad20.inc";
if ($randomnumber== "0") {
include ("$include0");
} else if ($randomnumber== "1") {
include("$include1");
} else if ($randomnumber== "2") {
include("$include2");
} else if ($randomnumber== "3") {
include("$include3");
} else if ($randomnumber== "4") {
include("$include4");
} else if ($randomnumber== "5") {
include("$include5");
} else if ($randomnumber== "6") {
include("$include6");
} else if ($randomnumber== "7") {
include("$include7");
} else if ($randomnumber== "8") {
include("$include8");
} else if ($randomnumber== "9") {
include("$include9");
} else if ($randomnumber== "10") {
include("$include10");
} else if ($randomnumber== "11") {
include("$include11");
} else if ($randomnumber== "12") {
include("$include12");
} else if ($randomnumber== "13") {
include("$include13");
} else if ($randomnumber== "14") {
include("$include14");
} else if ($randomnumber== "15") {
include("$include15");
} else if ($randomnumber== "16") {
include("$include16");
} else if ($randomnumber== "17") {
include("$include17");
} else if ($randomnumber== "18") {
include("$include18");
} else if ($randomnumber== "19") {
include("$include19");
} else if ($randomnumber== "20") {
include("$include20");
} else {
echo ("ERROR: A random num is being generated out of range, or not at all ");
}
?>