Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> RN Themes Issues
Author Message
prophet_dna
New Member
New Member



Joined: Oct 02, 2005
Posts: 15

PostPosted: Sun May 27, 2007 1:49 am Reply with quote

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
 
View user's profile Send private message
CodyG
Life Cycles Becoming CPU Cycles



Joined: Jan 02, 2003
Posts: 714
Location: Vancouver Island

PostPosted: Fri Jun 01, 2007 8:33 am Reply with quote

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 
View user's profile Send private message
spasticdonkey
RavenNuke(tm) Development Team



Joined: Dec 02, 2006
Posts: 1693
Location: Texas, USA

PostPosted: Tue Jul 24, 2007 8:58 am Reply with quote

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
Code:
$showbanners

somewhere?
 
View user's profile Send private message Visit poster's website
Guardian2003
Site Admin



Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam

PostPosted: Tue Jul 24, 2007 9:37 am Reply with quote

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\''));
 
View user's profile Send private message Send e-mail
spasticdonkey







PostPosted: Tue Jul 24, 2007 9:43 am Reply with quote

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:
Image
 
spasticdonkey







PostPosted: Tue Jul 24, 2007 10:18 am Reply with quote

ok i found it, in the fisubice/theme.php file, i removed line #131
Code:
echo ads(0);
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> RN Themes Issues

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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©