Nukemods Forum  
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 51
1 members and 50 guests
goe9dkfq42here
Most users ever online was 611, 03-21-2008 at 10:10 PM.
» .::.
» .:.

Go Back   Nukemods Forum > General > Open topics

Reply
 
LinkBack Thread Tools Display Modes
Banner To Right Of Logo!!!!!
Old
  (#1 (permalink))
Junior Member
 
Status: Offline
Posts: 5
Join Date: Mar 2003
Banner To Right Of Logo!!!!! - 03-14-2003, 07:17 PM

Hi All, I want to move the banner from the top to the right of the logo, fairly new at nuke! but not scared of a bit of coding! Anyone any idea how to do it!, I have read the posts allready on but they dont really tell u much!

My Site, http://UK-Truckers.Com

Cheers

Russ :wink:
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#2 (permalink))
Junior Member
 
Status: Offline
Posts: 1
Join Date: Mar 2003
03-14-2003, 09:26 PM

It's pretty simple to insert a banner into the space next to the next to your logo.

Go to your themes directory, and locate the theme that you are using.

Once you found it, enter that directory, and then open the theme.php file in the text editor of your choice.

Use the search feature of your text editor and find "themeheader".

This is the section of code that you will need to modify.

Look through the "themeheader" code and find the spot where your logo.gif file is being referenced.

It should look something like as follows:

echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"840\" align=\"center\">\n"
."<tr><td width=\"100%\">\n"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"840\">\n"
."<tr><td width=\"100%\">\n"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"840\">\n"
."<tr><td width=\"100%\" height=\"88\" bgcolor=\"#FFFFFF\">\n"
."<table border=0 width=100% cellpadding=0 cellspacing=0><tr><td align=\"left\"><a href=\"index.php\"><img border=\"0\" src=\"themes/yourtheme/images/logo.gif\" alt=\"Welcome\" hspace=\"20\"></a></td><td align=\"right\"><img border=\"0\" src=\"themes/yourtheme/images/logo-graphic.gif\" width=\"\">";


Once you have found the above section, simply insert the following three lines of code.

if ($banners) {
include("banners.php");
}

Once you inserted the above 3 lines of code, save your theme.php document, and upload it.

Now add a banner to your website like you normally would.

You will now have a banner displaying next to your logo. 8)
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Banners
Old
  (#3 (permalink))
Junior Member
 
Status: Offline
Posts: 5
Join Date: Mar 2003
Banners - 03-15-2003, 05:56 AM

Tried That!!!!!! But
This is my Theme.php

include("themes/DarkBlue/tables.php");
/************************************************** **********/
/* Function themeheader() */
/************************************************** **********/

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\">";
if ($banners == 1) {
include("banners.php");}
$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;
}
/************************************************** **********/

Its allready there but it dont show them!!!!

Russ
   
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: 619
Join Date: Oct 2002
Location: Alabama, USA
03-15-2003, 09:38 AM

Thats because DarkBlue uses the header.html file for that part of the header function.

Russ's method will not work for that type of theme. This topic has been discussed quite a bit allready. Search in the forms for it.
   
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: 5
Join Date: Mar 2003
03-16-2003, 05:46 PM

OK Thanks I will have a suftee!!!!
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#6 (permalink))
Senior Member
 
Status: Offline
Posts: 619
Join Date: Oct 2002
Location: Alabama, USA
03-16-2003, 05:53 PM

OK, what's a suftee?
   
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
Putting on a logo/banner for C3S theme Why_Me Theme packs 1 09-12-2005 02:09 PM
MOH:AA Banner/logo gsfmrmoo Logo requests 25 12-13-2004 08:20 PM
Banner next to Logo GenixDK Site design 0 06-19-2003 05:13 AM
NM Themes with banner next to logo mikem Old News 16 04-17-2003 03:07 PM




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