I get really frusterated trying to find answers to problems that no one solves. I have fixes to all the problems that were caused with the banner rotation addon by springbok.
Problem: Banner pictures are not showing up
HIS CODE WAS THIS:
Find:
PHP Code:
if ($getforum['styleoverride']==1 or $bbuserinfo['styleid']<2) {
$codestyleid=$getforum['styleid'];
}
}
Add After:
PHP Code:
// Banner Management
$bannerad=$DB_site->query_first("SELECT * FROM banner ORDER BY RAND()");
$bannerid=$bannerad['id'];
$bannerheight=$bannerad['height'];
$bannerwidth=$bannerad['width'];
$banner_text=$bannerad['banner_text'];
Solution (Do this instead)
Find:
PHP Code:
if ($getforum['styleoverride']==1 or $bbuserinfo['styleid']<2) {
$codestyleid=$getforum['styleid'];
}
}
}
Add After:
PHP Code:
// Banner Management
$bannerad=$DB_site->query_first("SELECT * FROM banner ORDER BY RAND()");
$bannerid=$bannerad['id'];
$bannerheight=$bannerad['height'];
$bannerwidth=$bannerad['width'];
$banner_text=$bannerad['banner_text'];
Problem: Banners are leading to the wrong URL (after clicking)
Open: click.php
Find:
PHP Code:
error_reporting(7);
Add After:
PHP Code:
$thebannerid = $_GET['bannerid'];
Find:
PHP Code:
$boarduser = $bbuserinfo['userid'];
Add After:
PHP Code:
$bannerid = $thebannerid;
Save and reupload click.php
That should solve the problems people have been having. I hope I just saved a bunch of people