|
» 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
|
|
|
Rimonabant - combat obesity and smoking at the same time
|
|
|
|
|
Poker Chips - Clay and composite poker chips for home games.
|
|
|
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 ... |
|
 |
 |
|
 |

04-25-2003, 01:59 PM
|
|
Junior Member
|
|
Join Date: Dec 2002
Location: iphoenixweb
Posts: 80
|
|
|
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.
|

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
|

04-28-2003, 06:31 PM
|
|
Junior Member
|
|
Join Date: Dec 2002
Location: iphoenixweb
Posts: 80
|
|
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?
|

04-29-2003, 08:23 PM
|
|
Junior Member
|
|
Join Date: Dec 2002
Location: iphoenixweb
Posts: 80
|
|
|
ne1??
|

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.
|

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
|

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
|

05-20-2003, 06:51 PM
|
|
Junior Member
|
|
Join Date: May 2003
Location: Rio De Janeiro, Brazil
Posts: 28
|
|
|
rite
sup :P
|
 |
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|