Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff
Author Message
brentnhunter
Client


Joined: Sep 10, 2004
Posts: 166

PostPosted: Sat Nov 06, 2004 5:58 pm Reply with quote

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
 
View user's profile Send private message
elrayjones
Regular
Regular


Joined: Oct 08, 2004
Posts: 55
Location: Texas

PostPosted: Sat Nov 06, 2004 10:41 pm Reply with quote

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 
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff

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 ©