Nukemods Forum  
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 52
4 members and 48 guests
bea9qgchcomberc, peardir46, ral6qkeighqenpa, whyjjinternetvi
Most users ever online was 611, 03-21-2008 at 10:10 PM.
» .::.
» .:.

Go Back   Nukemods Forum > NM Staff > Purged Topics

Reply
 
LinkBack Thread Tools Display Modes
Sub Black and banner
Old
  (#1 (permalink))
Junior Member
 
Status: Offline
Posts: 54
Join Date: Dec 2002
Sub Black and banner - 12-27-2002, 06:55 PM

i saw this on another site and now i cant remember..but what i would like to do is take the where the banners are displayed and put it write above where the news is posted on the main page instead of above the site..

Can some one plese tell me where or what i need to change to do this..

Thanks.
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#2 (permalink))
Senior Member
 
Status: Offline
Posts: 2,905
Join Date: Sep 2002
12-27-2002, 07:23 PM

I can get it to move just below the header, but if I put it right above the new articles on the main page, it breaks.

If you have a Main Message displayed on your main page above your New Articles, I can get it to go right above that.


IF you want to know how to do this, just reply, since it isn't EXACTLY what you wanted.

mikem
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#3 (permalink))
Junior Member
 
Status: Offline
Posts: 54
Join Date: Dec 2002
12-27-2002, 07:28 PM

yes that would be cool i will try it and see if it looks good with what i have going on..

Thanks for the quick reply
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#4 (permalink))
Senior Member
 
Status: Offline
Posts: 2,905
Join Date: Sep 2002
12-27-2002, 07:32 PM

Oh heck..here's how to do it.

Open the theme.php for your theme

Look under the Function themeheader. You should see a couple lines like this

Code:
                if ($banners == 1) {
	include("banners.php");}
CUT those lines and PASTE them right below this in the Function themeheader.

Code:
    print $r_file;
MAKE a backup of your original theme.php file in case you mess up.


Your entire Function themeheader in your theme.php should now look something like this

Code:
function themeheader() {
    global $user, $banners, $sitename, $slogan, $cookie, $prefix, $dbi;
    cookiedecode($user);
    $username = $cookie[1];
    if ($username == "") {
        $username = "Anonymous";
    }
    echo "<body bgcolor=\"#31404E\" text=\"#FFFFCC\" leftmargin=\"10\" topmargin=\"10\" marginwidth=\"10\" marginheight=\"10\">";
	
    $topics_list = "<select name=\"new_topic\" onChange='submit()'>\n";
    $topics_list .= "<option value=\"\">All Topics</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 = "<a href=\"modules.php?name=Your_Account&op=new_user\">Create an account";
    } else {
	$theuser = "Welcome $username!";
    }
	$public_msg = public_message();
    $tmpl_file = "themes/DarkBlue/header.html";
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"".$thefile."\";";
    eval($thefile);
    print $r_file;
    blocks(left);
    $tmpl_file = "themes/DarkBlue/left_center.html";
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"".$thefile."\";";
    eval($thefile);
    print $r_file;
                if ($banners == 1) {
	include("banners.php");}
}
mikem
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#5 (permalink))
Junior Member
 
Status: Offline
Posts: 54
Join Date: Dec 2002
12-27-2002, 10:11 PM

thank you very much just what i wanted.
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Banner System / PhpAdsNew / More Types of Banner Fetishlink Open topics 0 11-10-2005 05:55 AM
sub black 3d Dan Theme packs 8 07-31-2003 02:36 PM
Black Dog Pain2 Nuke 6.5 to 6.9 - Themes 1 06-09-2003 09:18 PM
Banner Zone banner mod ? Br00klynzzfinest Purged Topics 4 04-12-2003 07:33 PM
Help with sub black Evil Theme packs 1 12-07-2002 07:46 AM




vBulletin Skin developed by: vBStyles.com


LinkBacks Enabled by vBSEO 3.3.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31