Author |
Message |
SpaceMonkey
Worker
![Worker Worker](modules/Forums/images/ranks/3stars.gif)
![](modules/Forums/images/avatars/cbcee51442fe9307a6187.gif)
Joined: Apr 30, 2005
Posts: 170
|
Posted:
Thu Aug 25, 2005 5:14 am |
|
OK, the site I'm playing with is located at Only registered users can see links on this board! Get registered or login! I want to change the links along the top to white colored font. However, I'd like them to be black in the module block. How do I do that? Let me assure you that changing the css file isn't working. It's useless in fact. I've changed everything and even labeled what the various things do. It's almost random!!!
Any help would be much appreciated. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
montego
Site Admin
![](modules/Forums/images/avatars/0c0adf824792d6d341ef4.gif)
Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Thu Aug 25, 2005 6:34 am |
|
Take a look at file theme.php for function themeheader(). It must not be using the CSS tags. You should be able to change it there.
Regards,
montego |
_________________ Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
SpaceMonkey
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu Aug 25, 2005 6:38 am |
|
Okey dokey,
I'll look at that tomorrow.. In the meantime if anyone can give me any detailed feedback on fixing up this theme, it would be great. It's nukenews which comes with phpnuke if you're interested.. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
SpaceMonkey
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu Aug 25, 2005 6:40 am |
|
I don't get it.. What do I need to change?
Code:<?php
/************************************************************/
/* IMPORTANT NOTE FOR THEMES DEVELOPERS! */
/* */
/* When you start coding your theme, if you want to */
/* distribute it, please double check it to fit the HTML */
/* 4.01 Transitional Standard. You can use the W3 validator */
/* located at http://validator.w3.org */
/* If you don't know where to start with your theme, just */
/* start modifying this theme, it's validate and is cool ;) */
/************************************************************/
/************************************************************/
/* Theme Colors Definition */
/* */
/* Define colors for your web site. $bgcolor2 is generaly */
/* used for the tables border as you can see on OpenTable() */
/* function, $bgcolor1 is for the table background and the */
/* other two bgcolor variables follows the same criteria. */
/* $texcolor1 and 2 are for tables internal texts */
/************************************************************/
$bgcolor1 = "#efefef";
$bgcolor2 = "#cfcfbb";
$bgcolor3 = "#efefef";
$bgcolor4 = "#cfcfbb";
$textcolor1 = "#000000";
$textcolor2 = "#000000";
include("themes/NukeNews/tables.php");
/************************************************************/
/* Function themeheader() */
/* */
/* Control the header for your site. You need to define the */
/* BODY tag and in some part of the code call the blocks */
/* function for left side with: blocks(left); */
/************************************************************/
function themeheader() {
global $user, $banners, $sitename, $slogan, $cookie, $prefix, $db;
cookiedecode($user);
$username = $cookie[1];
if ($username == "") {
$username = "Anonymous";
}
echo "<body bgcolor=\"#003300\" text=\"#000000\" link=\"#363636\" vlink=\"#363636\" alink=\"#d5ae83\">";
ads(0);
$topics_list = "<select name=\"new_topic\" onChange='submit()'>\n";
$topics_list .= "<option value=\"\">All Faculties</option>\n";
$toplist = $db->sql_query("select topicid, topictext from ".$prefix."_topics order by topictext");
while(list($topicid, $topics) = $db->sql_fetchrow($toplist)) {
$topicid = intval($topicid);
if ($topicid==$topic) { $sel = "selected "; }
$topics_list .= "<option $sel value=\"$topicid\">$topics</option>\n";
$sel = "";
}
if ($username == "Anonymous") {
$theuser = " <a href=\"account-new_user.html\">Create an account";
} else {
$theuser = " Welcome $username!";
}
$public_msg = public_message();
$tmpl_file = "themes/NukeNews/header.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
blocks(left);
$tmpl_file = "themes/NukeNews/left_center.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
}
/************************************************************/
/* Function themefooter() */
/* */
/* Control the footer for your site. You don't need to */
/* close BODY and HTML tags at the end. In some part call */
/* the function for right blocks with: blocks(right); */
/* Also, $index variable need to be global and is used to */
/* determine if the page your're viewing is the Homepage or */
/* and internal one. */
/************************************************************/
function themefooter() {
global $index, $foot1, $foot2, $foot3, $copyright, $totaltime;
if ($index == 1) {
$tmpl_file = "themes/NukeNews/center_right.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
blocks(right);
}
$footer_message = "$foot1<br>$foot2<br>$foot3<br>$copyright<br>$totaltime";
$tmpl_file = "themes/NukeNews/footer.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
}
/************************************************************/
/* Function themeindex() */
/* */
/* This function format the stories on the Homepage */
/************************************************************/
function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
global $anonymous, $tipath;
$ThemeSel = get_theme();
if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) {
$t_image = "themes/$ThemeSel/images/topics/$topicimage";
} else {
$t_image = "$tipath$topicimage";
}
if ($notes != "") {
$notes = "<br><br><b>"._NOTE."</b> <i>$notes</i>\n";
} else {
$notes = "";
}
if ("$aid" == "$informant") {
$content = "$thetext$notes\n";
} else {
if($informant != "") {
$content = "<a href=\"modules.php?name=Your_Account&op=userinfo&username=$informant\">$informant</a> ";
} else {
$content = "$anonymous ";
}
$content .= ""._WRITES." <i>\"$thetext\"</i>$notes\n";
}
$posted = ""._POSTEDBY." ";
$posted .= get_author($aid);
$posted .= " "._ON." $time $timezone ($counter "._READS.")";
$tmpl_file = "themes/NukeNews/story_home.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
}
/************************************************************/
/* Function themearticle() */
/* */
/* This function format the stories on the story page, when */
/* you click on that "Read More..." link in the home */
/************************************************************/
function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {
global $admin, $sid, $tipath;
$ThemeSel = get_theme();
if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) {
$t_image = "themes/$ThemeSel/images/topics/$topicimage";
} else {
$t_image = "$tipath$topicimage";
}
$posted = ""._POSTEDON." $datetime "._BY." ";
$posted .= get_author($aid);
if ($notes != "") {
$notes = "<br><br><b>"._NOTE."</b> <i>$notes</i>\n";
} else {
$notes = "";
}
if ("$aid" == "$informant") {
$content = "$thetext$notes\n";
} else {
if($informant != "") {
$content = "<a href=\"modules.php?name=Your_Account&op=userinfo&username=$informant\">$informant</a> ";
} else {
$content = "$anonymous ";
}
$content .= ""._WRITES." <i>\"$thetext\"</i>$notes\n";
}
$tmpl_file = "themes/NukeNews/story_page.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
}
/************************************************************/
/* Function themesidebox() */
/* */
/* Control look of your blocks. Just simple. */
/************************************************************/
function themesidebox($title, $content) {
$tmpl_file = "themes/NukeNews/blocks.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
}
?>
|
|
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
dezina
Theme Guru
![](modules/Forums/images/avatars/005.gif)
Joined: Dec 26, 2002
Posts: 57
Location: UK
|
Posted:
Thu Aug 25, 2005 12:06 pm |
|
Quote: | I want to change the links along the top to white colored font. |
Maybe in style.css, i.e. links, or add that to your style.css file,
stating colour required.. OR in theme.php
Code:echo "<body bgcolor=\"#003300\" text=\"#000000\" link=\"#363636\" vlink=\"#363636\" alink=\"#d5ae83\">";
|
i.e. link, vlink, alink i.e. #363636 is dark grey/black |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
SpaceMonkey
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu Aug 25, 2005 3:25 pm |
|
You can see where I have editted the style.css to say what things do. The problem is so many of them are quite random in what they change. What I'd like to do is assign different colours to things that are pointing to the "link" style deffined in the style.css.. I just can't work out how.
Code:FONT {FONT-FAMILY: Verdana,Helvetica; FONT-SIZE: 11px}
TD {FONT-FAMILY: Verdana,Helvetica; FONT-SIZE: 11px}
BODY {FONT-FAMILY: Verdana,Helvetica; FONT-SIZE: 11px}
P {FONT-FAMILY: Verdana,Helvetica; FONT-SIZE: 11px}
DIV {FONT-FAMILY: Verdana,Helvetica; FONT-SIZE: 11px}
INPUT {FONT-FAMILY: Verdana,Helvetica; FONT-SIZE: 11px}
TEXTAREA {FONT-FAMILY: Verdana,Helvetica; FONT-SIZE: 11px}
FORM {FONT-FAMILY: Verdana,Helvetica; FONT-SIZE: 11px}
A:link {BACKGROUND: none; COLOR: #000000; FONT-SIZE: 11px; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: underline} /* create an account and most modules */
A:active {BACKGROUND: none; COLOR: #000000; FONT-SIZE: 11px; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: underline} /* not much */
A:visited {BACKGROUND: none; COLOR: #000000; FONT-SIZE: 11px; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: underline} /* home, topics, downloads */
A:hover {BACKGROUND: none; COLOR: #000000; FONT-SIZE: 11px; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: underline} /* mouse over live links colour */
.title {BACKGROUND: none; COLOR: #000000; FONT-SIZE: 13px; FONT-WEIGHT: bold; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none} /* not much */
.content {BACKGROUND: none; COLOR: #000000; FONT-SIZE: 11px; FONT-FAMILY: Verdana, Helvetica} /* bullets, body text, date */
.storytitle {BACKGROUND: none; COLOR: #363636; FONT-SIZE: 14px; FONT-WEIGHT: bold; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
.storycat {BACKGROUND: none; COLOR: #000000; FONT-SIZE: 13px; FONT-WEIGHT: bold; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: underline} /* not much */
.boxtitle {BACKGROUND: none; COLOR: #000000; FONT-SIZE: 11px; FONT-WEIGHT: bold; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none} /* not much */
.boxcontent {BACKGROUND: none; COLOR: #000000; FONT-SIZE: 12px; FONT-FAMILY: Verdana, Helvetica} /* not much */
.option {BACKGROUND: none; COLOR: #000000; FONT-SIZE: 13px; FONT-WEIGHT: bold; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none} /* story title */
.tiny {BACKGROUND: none; COLOR: #000000; FONT-SIZE: 10px; FONT-WEIGHT: normal; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none} /* invisible and inactive module stuff */
.footmsg {BACKGROUND: none; COLOR: #FFFFFF; FONT-SIZE: 8px; FONT-WEIGHT: normal; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
.footmsg_l {BACKGROUND: none; COLOR: #000000; FONT-SIZE: 8px; FONT-WEIGHT: normal; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: underline}
.box {FONT-FAMILY: Verdana,Helvetica; FONT-SIZE: 11px; border: 1px solid #000000; background-color: #000000} /* bottom copyright stuff */
.chicken {BACKGROUND: none; COLOR: #FFFFFF; FONT-SIZE: 11px; FONT-FAMILY: Verdana, Helvetica} /* bullets, body text, date */
|
|
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
SpaceMonkey
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu Aug 25, 2005 3:29 pm |
|
montego wrote: | Take a look at file theme.php for function themeheader(). It must not be using the CSS tags. You should be able to change it there.
Regards,
montego |
Correct me if I'm wrong, but it must be using the style.css tags somehow, because when I change the style.css it changes some of the colours. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
montego
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu Aug 25, 2005 10:09 pm |
|
dezina wrote: | Quote: | I want to change the links along the top to white colored font. |
Maybe in style.css, i.e. links, or add that to your style.css file,
stating colour required.. OR in theme.php
Code:echo "<body bgcolor=\"#003300\" text=\"#000000\" link=\"#363636\" vlink=\"#363636\" alink=\"#d5ae83\">";
|
i.e. link, vlink, alink i.e. #363636 is dark grey/black |
SpaceMonkey,
dezina is pointing you to the code that is defining the colours for the links. These are not referencing CSS tags, they are hard-coded in the body statement (bad form by the way -- not you, but this Theme). Another thing you would try is remove the colour statements in this body statement and see if the CSS definitions provide the right colours you are looking for.
Regards,
montego |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
dezina
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu Aug 25, 2005 11:55 pm |
|
Code:echo "<body bgcolor=\"#003300\" text=\"#000000\" link=\"#363636\" vlink=\"#363636\" alink=\"#d5ae83\">";
|
is governing link colours in this theme. BEWARE that if you change to white,
and rest of theme has white background, your links will not show up against white background. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
SpaceMonkey
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Aug 26, 2005 12:52 am |
|
Yeah, the problem is I want to change the top text to white, against the green background and the module block to black against white. Does anybody know how I could do this? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
SpaceMonkey
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Aug 26, 2005 12:56 am |
|
dezina wrote: | Code:echo "<body bgcolor=\"#003300\" text=\"#000000\" link=\"#363636\" vlink=\"#363636\" alink=\"#d5ae83\">";
|
is governing link colours in this theme. BEWARE that if you change to white,
and rest of theme has white background, your links will not show up against white background. |
I deleted everything from here except the background colour and it had no effect. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
dezina
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Aug 26, 2005 1:02 am |
|
Quote: | I deleted everything from here except the background colour and it had no effect. |
If you then did not alter style.css, which is currently showing
Code:A:link {BACKGROUND: none; COLOR: #000000; FONT-SIZE: 11px; FONT-FAMILY:
| (link set there as #000000 i.e. Black)
you would still not see any effect |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
SpaceMonkey
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Aug 26, 2005 1:09 am |
|
Yeah, that bit changes "Create an Account" and a few of the modules. The problem is that it also changes the some of the modules in the module block to white. I don't want them to change, just the text with the dark green background. I've now change the text at the top by changing each title to white.. Seems a little clumsy, but it works. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
dezina
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Aug 26, 2005 1:19 am |
|
Quote: | Seems a little clumsy, but it works. |
Did say BEWARE in my previous post, and "your clumsy method" is the only way to achieve your goal with this particular theme ![Wink](modules/Forums/images/smiles/icon_wink.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
SpaceMonkey
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Aug 26, 2005 1:35 am |
|
Any suggestions on how I can get the "Create an account" bit white would be appreciated. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
SpaceMonkey
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Aug 26, 2005 1:44 am |
|
Whoops, worked it out.. I changed it in the theme.php .. Thanks anyway.. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
dezina
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Aug 26, 2005 1:47 am |
|
Quote: | Any suggestions on how I can get the "Create an account" bit white would be appreciated. |
Visit your site, view source in browser reveals
Code:<font class="chicken">
<b> <a href="account-new_user.html">Create an Account</b></font></td>
<td align="center" height="20" width="70%"><font class="chicken"><b>
|
so font class="chicken" needs to be looked at or you may again, have to introduce a specific style.css call for that link only |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|