» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 69
0 members and 69 guests
No Members online
Most users ever online was 611, 03-21-2008 at 11:10 PM.
» .::.
Web Hosting - web hosting, dedicated servers and web design services
Online Degree - search for 1000+ online degrees, online colleges & online universities.
Tattoo - we are a group of tattoo enthusiasts
Gexa Energy - your absolute best choice in electric service
Texas electricity - save on electric rates
Football Betting - best nfl betting promotions at sportsbook.com.
Oral Chelation - initial cleansing of your veins & arteries
Portatiles - Ofertas en Ordenadores y Portatiles. Increibles Ofertas DELL.

Register Now! Contact Us

About this Page
This is a discussion on Sub Black and banner within the Purged Topics forums, part of the NM Staff category; i saw this on another site and now i cant remember..but what i would like to do is take ...


Go Back   Nukemods Forum » NM Staff » Purged Topics

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-27-2002, 07:55 PM
Junior Member
 
Join Date: Dec 2002
Posts: 54
Sub Black and banner
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
  #2 (permalink)  
Old 12-27-2002, 08:23 PM
Senior Member
 
Join Date: Sep 2002
Posts: 2,905
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
  #3 (permalink)  
Old 12-27-2002, 08:28 PM
Junior Member
 
Join Date: Dec 2002
Posts: 54
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
  #4 (permalink)  
Old 12-27-2002, 08:32 PM
Senior Member
 
Join Date: Sep 2002
Posts: 2,905
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
  #5 (permalink)  
Old 12-27-2002, 11:11 PM
Junior Member
 
Join Date: Dec 2002
Posts: 54
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 06:55 AM
sub black 3d Dan Theme packs 8 07-31-2003 03:36 PM
Black Dog Pain2 Nuke 6.5 to 6.9 - Themes 1 06-09-2003 10:18 PM
Banner Zone banner mod ? Br00klynzzfinest Purged Topics 4 04-12-2003 08:33 PM
Help with sub black Evil Theme packs 1 12-07-2002 08:46 AM


All times are GMT -5. The time now is 10:28 AM.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.

LinkBacks Enabled by vBSEO 3.1.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