» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 76
0 members and 76 guests
No Members online
Most users ever online was 611, 03-21-2008 at 10: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
Rimonabant - combat obesity and smoking at the same time
Football Betting - best nfl betting promotions at sportsbook.com.
Poker Chips - Clay and composite poker chips for home games.

Register Now! Contact Us

About this Page
This is a discussion on Header Problem within the Site design forums, part of the General category; i am nearly done with a new them fo extreme broadcasting radio bu ti have run into a problem. This ...



Go Back   Nukemods Forum » General » Site design

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-25-2003, 01:59 PM
Junior Member
 
Join Date: Dec 2002
Location: iphoenixweb
Posts: 80
Send a message via AIM to iphoenix Send a message via MSN to iphoenix Send a message via Yahoo to iphoenix
Header Problem
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-25-2003, 02:11 PM
Moderator
 
Join Date: Nov 2002
Location: Belgium
Posts: 957
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
  #3 (permalink)  
Old 04-28-2003, 06:31 PM
Junior Member
 
Join Date: Dec 2002
Location: iphoenixweb
Posts: 80
Send a message via AIM to iphoenix Send a message via MSN to iphoenix Send a message via Yahoo to iphoenix
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-29-2003, 08:23 PM
Junior Member
 
Join Date: Dec 2002
Location: iphoenixweb
Posts: 80
Send a message via AIM to iphoenix Send a message via MSN to iphoenix Send a message via Yahoo to iphoenix
ne1??
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 05-20-2003, 04:03 PM
Moderator
 
Join Date: Nov 2002
Posts: 737
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
  #6 (permalink)  
Old 05-20-2003, 04:14 PM
Senior Member
 
Join Date: Sep 2002
Posts: 2,905
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
  #7 (permalink)  
Old 05-20-2003, 05:35 PM
Junior Member
 
Join Date: Apr 2003
Posts: 81
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
  #8 (permalink)  
Old 05-20-2003, 06:51 PM
Junior Member
 
Join Date: May 2003
Location: Rio De Janeiro, Brazil
Posts: 28
Send a message via ICQ to aerosense Send a message via AIM to aerosense Send a message via MSN to aerosense Send a message via Yahoo to aerosense
rite
sup :P
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


All times are GMT -5. The time now is 12:07 PM.


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