>>  Site Map >>  Forums >>  Post Installation Help

Forum module - topics in forum:



Post Installation Help - Help with problems after installation.



Banner Option not available in the Preferences Section

Hi Folks,

After reading some of the docs about the perferences icon in the admin section, I noticed that in the docs there is a Banner Option radio button that you are the check to activate the banner ads program of PHP Nuke.

Well, when I looked in my preferences I noticed that this option is not there. I have no Banner Option radio button to click to activate. Would someone be so kind as to tell me how to activate the banner ads program?
I have tried many things, but the banners will not display. I figure that it is because I have no way to activate it in the preferences section. Is this correct? How should I proceed?

Yes...I did activate the advertising module.
yes...I have added a new client.
yes...I have added his banner.

When I login as the client and click on the advertising link, I can click the show icon and the banner will show itself. But it does not show up anywhere else on the website.

I am currently using PHP Nuke 7.8

Could someone please advise me?

Thank you so much.




Possibilities

Was cruising through, maybe its just something thats painfully obvious that we all miss while we learn...

Do you have an Advertising Block activated?

Center or Side ?

If you have the ad set to display in the Top position (header) it should display.....

Trying to think what else I am forgetting.........


Oh yeah, a link is always a beautiful thing to add here, those questions could have been answered by visiting your site...... Wink

Not trying to be smart, just trying to help you speed along the process....

Good luck with the site! Cool






let me see if I understand you...

Your saying you don't have a Banners Options section within preferences in your admin panel?

As far as the banners showing you have a blocks or normal option

The normal option requires your theme be able to display the banners if not you would have to use the block.






Hi Folks,

Thank you so much for the replys.
Here is the link to the web site. http://www.jbcentral.com/nuke/

admin login is: username:
password:
Please have a look and help yourself to whatever you need.

If you click on the advertising link, the customer login I created for a test client is the folowing: Login:
password:
when it lets you in you can click on the show icon to display the test banner.
It will display there, but it does not show anywhere on the site.

I don't understand why the banner will not display as a ad.

I also do noy understand why I have no "Banner Option" radio button in my preferences. The docs clearly show that there should be one.

I'm a bit confussed at this point.
Please advise,
Thank you so much

*Edit*Names and passwords removed please do not post these in the forums. Only send names and passes either via site pm or using our email address we provide. -- DataBaseError






the same problem i have also... when I creat de banner in banner option, I see a info regarding the ads position.
"To use the position you must include the code: ads(position); in your theme file, where "position" is the number of the position you want to use in that ad space."

so I put the " ads(0); 0 = the ad position number, but it still don't apear
verry angry whit this so if you can help me whit this I'l be very happy

ps: sorry about my english, i don't speak very well
My site is:
Cs-Arena






BOtz, what version of phpnuke are you using






The version of my site is php-nuke 8.0
thanks for the reply.






The correct code would be:
Code: :
$myban = ads(0);







thanks for the reply but it's still not working.
i put the code under the
Code: :
    $tmpl_file = "themes/Rskullz/header.html";

and nothing happend.

plese help Sad i have a person that wants a banner on my site and don't want to include the banner like the google ads, because he say that it will pay me for impresion, and I need that module to work.

Ps: sorry for my english hope that you will understand






it has to go in the theme.php file ...






in the theme.php i put the code right below the header.html

Code: :
<?php



/************************************************************/
/* Theme Name: Rskulls                                      */
/* Theme Design: www.nukecode.com                           */
/************************************************************/


/************************************************************/
/* Theme Colors Definition                                  */
/*                                                          */
/* Define colors for your web site. $bgcolor2 is generaly   */
/* used for the tables border as you can see on OpenTable() */
/* function, $bgcolor1 is for the table background and the  */
/* other two bgcolor variables follows the same criteria.   */
/* $texcolor1 and 2 are for tables internal texts           */
/************************************************************/



$bgcolor1 = "3A3A3A";

$bgcolor2 = "3A3A3A";

$bgcolor3 = "3A3A3A";

$bgcolor4 = "3A3A3A";

$textcolor1 = "#ffffff";

$textcolor2 = "#ffffff";



include("themes/Rskullz/tables.php");



/************************************************************/
/* Function themeheader()                                   */
/*                                                          */
/* Control the header for your site. You need to define the */
/* BODY tag and in some part of the code call the blocks    */
/* function for left side with: blocks(left);               */
/************************************************************/



function themeheader() {

    global $user, $banners, $sitename, $slogan, $cookie, $prefix, $name, $dbi;

    cookiedecode($user);

    $username = $cookie[1];

    if ($username == "") {

        $username = "Anonymous";

    }

    echo "<body bgcolor=\"000000\" text=\"#ffffff\" leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\">";
    $public_msg = public_message();
    echo "$public_msg";

    $topics_list = "<select name=\"new_topic\" onChange='submit()'>
\n";

    $topics_list .= "<option value=\"\">Toate topicurile</option>
\n";

    $toplist = sql_query("select topicid, topictext from ".$prefix."_topics order by topictext", $dbi);

    while(list($topicid, $topics) = sql_fetch_row($toplist, $dbi)) {

    if ($topicid==$topic) { $sel = "selected "; }

   $topics_list .= "<option $sel value=\"$topicid\">$topics</option>
\n";

   $sel = "";

    }

    if ($username == "Anonymous") {

   $theuser = "&nbsp;&nbsp;<a href=modules.php?name=Your_Account&op=new_user>Inregistrare noua";

    } else {

   $theuser = "&nbsp;&nbsp;Welcome $username!";

    }

    $tmpl_file = "themes/Rskullz/header.html";
    $myban = ads(0);

    $thefile = implode("", file($tmpl_file));

    $thefile = addslashes($thefile);

    $thefile = "\$r_file=\"".$thefile."\";";

    eval($thefile);

    print $r_file;
    blocks(left); 

    $tmpl_file = "themes/Rskullz/left_center.html";

    $thefile = implode("", file($tmpl_file));

    $thefile = addslashes($thefile);

    $thefile = "\$r_file=\"".$thefile."\";";

    eval($thefile);

    print $r_file;

}



function themefooter() {
     global $index, $foot1, $banners, $foot2, $foot3, $foot4, $copyright, $totaltime, $footer_message;
/************************************************************/
/* banners are set with openbox function on the footer, if  */
/* you like to have it on the header you can do that as well*/
/************************************************************/
    if ($banners == 1) {
      OpenTable();
        include("banners.php");
      CloseTable();
    }
    if ($index == 1) {
   $tmpl_file = "themes/Rskullz/left_center.html";
   $thefile = implode("", file($tmpl_file));
   $thefile = addslashes($thefile);
   $thefile = "\$r_file=\"".$thefile."\";";
   eval($thefile);
   print $r_file;
   blocks(right);
    }
    $tmpl_file = "themes/Rskullz/footer.html";
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"".$thefile."\";";
    eval($thefile);
    print $r_file;

        echo "<center><table width=\"93%\" border=\"1\" cellpadding=\"0\" cellspacing=\"0\" bordercolorlight=\"#ff0000\" bordercolordark=\"#ff0000\" style=\"border-collapse: collapse\" bordercolor=\"#ff0000\"><td align=\"center\" background=\"themes/Rskullz/images/rskullz.gif\">\n";
       $footer_message = footmsg();
      echo "</center>\n";   
    echo "<br>\n";

}



/************************************************************/
/* Function themeindex()                                    */
/*                                                          */
/* This function format the stories on the Homepage         */
/************************************************************/



function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {

    global $anonymous, $tipath;

    if ($notes != "") {

   $notes = "<br><br><b>"._NOTE."</b><i>$notes</i>\n";

    } else {

   $notes = "";

    }

    if ("$aid" == "$informant") {

   $content = "$thetext$notes\n";

    } else {

   if($informant != "") {

       $content = "<a href=modules.php?name=Your_Account&op=userinfo&uname=$informant;>$informant</a>";

   } else {

       $content = "$anonymous ";

   }

   $content .= ""._WRITES."<i>\"$thetext\"</i>$notes\n";

    }

    $posted = ""._POSTEDBY." ";

    $posted .= get_author($aid);

    $posted .= " "._ON." $time $timezone ($counter "._READS.")";

    $tmpl_file = "themes/Rskullz/story_home.html";

    $thefile = implode("", file($tmpl_file));

    $thefile = addslashes($thefile);

    $thefile = "\$r_file=\"".$thefile."\";";

    eval($thefile);

    print $r_file;

}



/************************************************************/
/* Function themearticle()                                  */
/*                                                          */
/* This function format the stories on the story page, when */
/* you click on that "Read More..." link in the home        */
/************************************************************/



function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {

    global $admin, $sid, $tipath;

    $posted = ""._POSTEDON." $datetime "._BY." ";

    $posted .= get_author($aid);

    if ($notes != "") {

   $notes = "<br><br><b>"._NOTE."</b><i>$notes</i>\n";

    } else {

   $notes = "";

    }

    if ("$aid" == "$informant") {

   $content = "$thetext$notes\n";

    } else {

   if($informant != "") {

       $content = "<a href=modules.php?name=Your_Account&op=userinfo&uname=$informant;>$informant</a>";

   } else {

       $content = "$anonymous ";

   }

   $content .= ""._WRITES."<i>\"$thetext\"</i>$notes\n";

    }

    $tmpl_file = "themes/Rskullz/story_page.html";

    $thefile = implode("", file($tmpl_file));

    $thefile = addslashes($thefile);

    $thefile = "\$r_file=\"".$thefile."\";";

    eval($thefile);

    print $r_file;

}



/************************************************************/
/* Function themesidebox()                                  */
/*                                                          */
/* Control look of your blocks. Just simple.                */
/************************************************************/



function themesidebox($title, $content) {

    $tmpl_file = "themes/Rskullz/blocks.html";

    $thefile = implode("", file($tmpl_file));

    $thefile = addslashes($thefile);

    $thefile = "\$r_file=\"".$thefile."\";";

    eval($thefile);

    print $r_file;

}



?>





Attention! You are currently viewing sitemap page!
We strongly suggest to look at original content

Search from web

Valid HTML 4.01 Valid CSS