Okay I think I got it fixed... Here was the solution I found...
Code:
function themeheader() {
global $admin, $user, $banners, $sitename, $slogan, $cookie, $prefix, $db, $nukeurl, $anonymous;
if ($banners == 1) {
$numrows = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_banner WHERE type='0' AND active='1'"));
/* Get a random banner if exist any. */
/* More efficient random stuff, thanks to Cristian Arroyo from http://www.planetalinux.com.ar */
$showbanners = ads(0);
if ($numrows>1) {
Thank you to everyone who helped out. Expecially Google and countless hours and days searching for my answer. I finally found it here in this thread on another forum...
Only registered users can see links on this board! Get registered or login to the forums!
Joined: Dec 02, 2006 Posts: 1364 Location: Texas, USA
Posted:
Tue Jul 24, 2007 8:58 am
ok i had a similar issue in fisubice under RNv2.10.01
the banner would appear at top middle of page and not in the right side of the header. My admin control panel didnt offer
Quote:
header_half from the Type: drop-down
as an option. I did a similar fix to the one listed above.....
Code:
function themeheader() {
global $admin, $user, $banners, $sitename, $slogan, $cookie, $prefix, $db, $nukeurl, $anonymous, $name, $admin_file;
if ($banners == 1) {
$numrows = $db->sql_numrows($db->sql_query('SELECT * FROM '.$prefix.'_banner WHERE active=\'1\''));
/* Get a random banner if exist any. */
/* More efficient random stuff, thanks to Cristian Arroyo from http://www.planetalinux.com.ar */
$showbanners = ads(0);
if ($numrows>1) {
and it worked, however the banner still also appears at the top (twice)
View next topic View previous topic
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum