>>
Site Map
>>
Forums
>>
Themes 6x
Forum module - topics in forum:
Themes 6x - Discussions regarding PHP-Nuke Themes.
Hex codes how do i use them on backgrounds
Hello. Im glad i have found this forum. looks like you have already answered a few probs i have had, seems my answer to my questions are in the posts..........cool.
But, now this must be so simple, but for some strange reason, i can not change background colours when using hex coding ? nor can i change txt colours ? is this possible ?
I think you need to take a read of our Site Rules, then make some amendments to your post before you can get any help
Hex codes work fine, where exactly are you trying to edit them?
I am trying to use them on my web site front page. i have tried to do this, a few times but never works. ? i want to be able to change the background colour on my news stories.
www.the-self-preservation-society.co.uk
thanks for the help.
I see you're using kaput, open up it's theme.php, find
| Code: : |
<td bgcolor=\"ffffff\" width=\"100%\">
|
in function themeindex and change ffffff to the colour you want.
Thanks will give it a try, but is not a way i can use hex codes while doing the news stories, so, say Jarvis i can use a light blue, and the sps i could use a cream ? or do is that not possible ?
I assume what you are asking is for different background colors for different admins who post news. If that is the case you would have to change the code so that above that line you would have something like an if else statment to change the color, for example:
You will have to do this in the themeindex() function in the theme.php file and also in the themearticle() function if you want the color to follow into when there read more.
Find the line below:
| Code: : |
| <td bgcolor=\"#ffffff\" width=\"100%\"> |
Change to:
| Code: : |
| <td bgcolor=\"$back_color\" width=\"100%\"> |
After the global line that looks similar to
| Code: : |
| global $anonymous, $tipath; |
add this (change the adminname and otheradmin to match exactly the Admin names):
| Code: : |
if ($aid == "adminname")
{
// This is used when the admin above posts
$back_color = "#FFFFFF";
}
elseif ($aid == "otheradmin")
{
// This is used when the admin above posts
$back_color = "#FFFF00";
}
else
{
// This is a redundant color in case the admin in not either or the above
// All other admins who post use this background color
$back_color = "#FF0000";
}
|
Thats it I think, that should allow you to have the different background colors for different admins who post, it wont mater who submited the news only who posts (aproves) it.
Let me know how that works out and perhaps a link so we can see it in action 
thanks again, will tackle this job as soon as i have finished the carpet laying.lol
should be fun trying this out,,,,,,,,,,,,i hope ? 