Nukemods Forum  
» Log in
User Name:

Password:

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

Go Back   Nukemods Forum > General > Site design

Reply
 
LinkBack Thread Tools Display Modes
Header Problem
Old
  (#1 (permalink))
Junior Member
 
Status: Offline
Posts: 80
Join Date: Dec 2002
Location: iphoenixweb
Header Problem - 04-25-2003, 01:59 PM

i am nearly done with a new them fo extreme broadcasting radio bu ti have run into a problem. This problem is that the color of the $user in the header file is not wat i want it to be, it is #CCCCCC (the default color) yet you cannot see it w/ the bg, so i would like to change it to #333333 or similar.

Please view it here: http://www.iphoenixweb.com/ebr/index.php

the $user is in the top lef right below the logo and nav bar in the grey space. I was thinking to change the color in the header.html but it doesnt work so it must be in the theme.php so I tryed but i dunt think i go the right code...

here is the code of the header in the theme.php file:

Quote:
function themeheader() {
global $admin, $user, $banners, $sitename, $slogan, $cookie, $prefix, $db, $nukeurl, $anonymous;
$numrows = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_banner WHERE type='0' AND active='1'"));

if ($numrows>1) {
$numrows = $numrows-1;
mt_srand((double)microtime()*1000000);
$bannum = mt_rand(0, $numrows);
} else {
$bannum = 0;
}
$sql = "SELECT bid, imageurl, clickurl, alttext FROM ".$prefix."_banner WHERE type='0' AND active='1' LIMIT $bannum,1";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$bid = $row[bid];
$imageurl = $row[imageurl];
$clickurl = $row[clickurl];
$alttext = $row[alttext];

if (!is_admin($admin)) {
$db->sql_query("UPDATE ".$prefix."_banner SET impmade=impmade+1 WHERE bid='$bid'");
}
if($numrows>0) {
$sql2 = "SELECT cid, imptotal, impmade, clicks, date FROM ".$prefix."_banner WHERE bid='$bid'";
$result2 = $db->sql_query($sql2);
$row2 = $db->sql_fetchrow($result2);
$cid = $row2[cid];
$imptotal = $row2[imptotal];
$impmade = $row2[impmade];
$clicks = $row2[clicks];
$date = $row2[date];

/* Check if this impression is the last one and print the banner */

if (($imptotal <= $impmade) AND ($imptotal != 0)) {
$db->sql_query("UPDATE ".$prefix."_banner SET active='0' WHERE bid='$bid'");
$sql3 = "SELECT name, contact, email FROM ".$prefix."_bannerclient WHERE cid='$cid'";
$result3 = $db->sql_query($sql3);
$row3 = $db->sql_fetchrow($result3);
$c_name = $row3[name];
$c_contact = $row3[contact];
$c_email = $row3[email];
if ($c_email != "") {
$from = "$sitename <$adminmail>";
$to = "$c_contact <$c_email>";
$message = ""._HELLO." $c_contact:\n\n";
$message .= ""._THISISAUTOMATED."\n\n";
$message .= ""._THERESULTS."\n\n";
$message .= ""._TOTALIMPRESSIONS." $imptotal\n";
$message .= ""._CLICKSRECEIVED." $clicks\n";
$message .= ""._IMAGEURL." $imageurl\n";
$message .= ""._CLICKURL." $clickurl\n";
$message .= ""._ALTERNATETEXT." $alttext\n\n";
$message .= ""._HOPEYOULIKED."\n\n";
$message .= ""._THANKSUPPORT."\n\n";
$message .= "- $sitename "._TEAM."\n";
$message .= "$nukeurl";
$subject = "$sitename: "._BANNERSFINNISHED."";
mail($to, $subject, $message, "From: $from\nX-Mailer: PHP/" . phpversion());
}
}
$showbanners = "<a href=\"banners.php?op=click&bid=$bid\" target=\"_blank\"><img src=\"$imageurl\" border=\"0\" alt='$alttext' title='$alttext'></a>";
} cookiedecode($user);
$username = $cookie[1];
if ($username == "") {
$username = "Anonymous";
}
echo "<body bgcolor=\"#CCCCCC\" text=\"#CCCCCC\" leftmargin=\"10\" topmargin=\"10\" marginwidth=\"10\" marginheight=\"10\">";

/*I think you g2 change sumtin round here but idk*/
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/iPhoenix_eBr/header.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
blocks(left);
$tmpl_file = "themes/iPhoenix_eBr/left_center.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
}
ne help would be appreciated.
  Send a message via Yahoo to iphoenix Send a message via AIM to iphoenix Send a message via MSN to iphoenix  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#2 (permalink))
Moderator
 
Status: Offline
Posts: 957
Join Date: Nov 2002
Location: Belgium
04-25-2003, 02:11 PM

Try to change
Code:
if ($username == "Anonymous") { 
$theuser = "&&<a href=\"modules.php?name=Your_Account&op=new_user\">Create an account"; 
} else { 
$theuser = "&&Welcome $username!"; 
}
to this
Code:
if ($username == "Anonymous") { 
$theuser = "&&<a href=\"modules.php?name=Your_Account&op=new_user\"><span class="block-title">Create an account</span>"; 
} else { 
$theuser = "<span class="block-title">&&Welcome $username!</span>"; 
}
I'm not sure if that'll work, you can also try to change this
Code:
<span class="block-title">
to this
Code:
span color="333333">
Hope this helps, I didn't test anything of it so it's just a guess


Yannick R. aka Mighty_Y
http://support.code-area51.com
http://www.code-area51.com

Search before asking makes my life easier!
   
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: 80
Join Date: Dec 2002
Location: iphoenixweb
04-28-2003, 06:31 PM

that didnt work but i ask mtech he said:
Quote:
although i did not see the user part on ur header, to solve the prob simply give it a input class in your style.css file and define the colors that you want
what would i do for that?
  Send a message via Yahoo to iphoenix Send a message via AIM to iphoenix Send a message via MSN to iphoenix  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#4 (permalink))
Junior Member
 
Status: Offline
Posts: 80
Join Date: Dec 2002
Location: iphoenixweb
04-29-2003, 08:23 PM

ne1??
  Send a message via Yahoo to iphoenix Send a message via AIM to iphoenix Send a message via MSN to iphoenix  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#5 (permalink))
Moderator
 
Status: Offline
Posts: 737
Join Date: Nov 2002
05-20-2003, 04:03 PM

Did you check your header.html? It has some reference to color, and some themes have a fade.js file, there are some colors coded in there as well.
   
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: 2,905
Join Date: Sep 2002
05-20-2003, 04:14 PM

post your header.html code here. I think that is where you need to look...

mikem
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#7 (permalink))
Junior Member
 
Status: Offline
Posts: 81
Join Date: Apr 2003
05-20-2003, 05:35 PM

maybe i can help out this one, in your header, depending which variable your using, $theuser or $username (sometimes i mix both) most cases $theuser, anyways, where ever you put the variable in your header.html just add a font class, example:
Code:
<font class="user1">$theuser</font>
I named this class "user1" then in your style.css add a class "user1" example

Code:
.user1 {
FONT-WEIGHT: bold; 
FONT-SIZE: 12px; 
COLOR: #cccccc; 
FONT-FAMILY: Tahoma; 
LETTER-SPACING: 0px; 
TEXT-DECORATION: none
}
that should do it.


Think all nukes look the same?
=) Think again. www.mtechnik.net
Public / commercial themes
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
rite
Old
  (#8 (permalink))
Junior Member
 
Status: Offline
Posts: 28
Join Date: May 2003
Location: Rio De Janeiro, Brazil
rite - 05-20-2003, 06:51 PM

sup :P
 Send a message via ICQ to aerosense Send a message via Yahoo to aerosense Send a message via AIM to aerosense Send a message via MSN to aerosense  
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
I need some help with the header... jhutch Open topics 3 12-24-2005 01:50 PM
Removing the header? mysscryss Nuke 7.x - General 0 03-24-2005 06:19 PM
header steve70000 Nuke 7.x - General 2 10-11-2004 05:56 AM
problem with theme pack header error estiman Theme packs 5 04-25-2003 12:03 PM
header help ;[ darkdan Purged Topics 1 11-05-2002 09:35 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