elrayjones
Regular


Joined: Oct 08, 2004
Posts: 55
Location: Texas
|
Posted:
Sat Nov 06, 2004 10:41 pm |
|
brentnhunter wrote: | Does anyone know how to prevent banner ads from appearing on the home page of a nuke site (with the banners turned on so they appear on all other areas of the site)?
Thank you!
Brent |
//[Header Switch Hack]--------------------------------------------------------//
switch ($name){
case "Forums":
$tmpl_file = "themes/fisubsilversh/headerForums.html";
break;
case "Members_List":
$tmpl_file = "themes/fisubsilversh/headerForums.html";
break;
case "DOT-EJCard":
$tmpl_file = "themes/fisubsilversh/headerDOTEJCard.html";
break;
default:
$tmpl_file = "themes/fisubsilversh/header.html";
i have done this by hacking the theme.php. the variable [$tmpl_file] will pass which header file to use. make a copy of your header.html file, rename it, upload it 2 your server and then remove the [$showbanners] from your new herder. in fact i moved [$showbanners] from my headers to theme.php. so I could have a default banner display and a static banner in my headers. also the by moving the [$showbanners] to theme.php i can control it with this hack...
//[Hack for Banner Placement]-------------------------------------------------------------------------//
switch ($name){
case "Forums":
echo "<center><a href=\"http://godotshop.com/modules.php?name=DOT-EJCard\">
<img src=\"http://godotshop.com/modules/DOT-EJCard/images/eyes.gif\" alt=\"\" border=\"0\"></a>";
break;
case "DOT-EJCard":
break;
default:
print $showbanners;
}
you can see this in action at Only registered users can see links on this board! Get registered or login!. look at the main page, you have a static banner at the top, default banners under the header, then goto the forums and i have a changed the static banner with another and shut off the default banner display.
use the [$name] variable to pass the name of the module to the case statements.
NOTE: you will need to add [$name] to your function themeheader() globals, like this:
function themeheader() {
global $admin, $user, $banners, $sitename, $slogan, $cookie, $prefix, $db, $nukeurl, $anonymous, $name; <add to]
EJ |
_________________ Shopping Mall at Only registered users can see links on this board! Get registered or login! We have Video Games,Toys,DVD,Camera,Magazine Subscriptions,Music,Apparel,Inkjet,Food,Garden,Electronics,Kitchen,Cell Phones, Tapestry and much more |
|