| Author |
Message |
prophet_dna
New Member


Joined: Oct 02, 2005
Posts: 15
|
Posted:
Sun May 27, 2007 1:49 am |
|
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...
http://nukecops.com/modules.php?name=Forums&file=modules&name=Forums&file=viewtopic&t=47734&postdays=0&postorder=asc&highlight=banners&&start=15 |
| |
|
|
 |
CodyG
Life Cycles Becoming CPU Cycles

Joined: Jan 02, 2003
Posts: 714
Location: Vancouver Island
|
Posted:
Fri Jun 01, 2007 8:33 am |
|
i was just trying to get $showbanners to work in the header.html file too ...
and i just got it working, in fisubice. When you setup the banner (advertising admin) did you select header_half from the Type: drop-down?
also, double check your paths to the image |
_________________ "We want to see if life is ubiquitous." D.Goldin |
|
|
 |
spasticdonkey
RavenNuke(tm) Development Team

Joined: Dec 02, 2006
Posts: 1693
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)
is there another reference to
somewhere? |
| |
|
|
 |
Guardian2003
Site Admin

Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam
|
Posted:
Tue Jul 24, 2007 9:37 am |
|
Looking at the code you posted, you seem to be missing some needed global variables, try this;
Code:
function themeheader() {
global $showbanners, $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\''));
|
|
| |
|
|
 |
spasticdonkey

|
Posted:
Tue Jul 24, 2007 9:43 am |
|
well changed that code in fisubice/theme.php and it still appears twice. Is there something in the header.php file that displays ads?
the only options i have to display under the admin section are:
 |
| |
|
|
|
 |
spasticdonkey

|
Posted:
Tue Jul 24, 2007 10:18 am |
|
ok i found it, in the fisubice/theme.php file, i removed line #131
|
| |
|
|
|
 |
|
|