Novahq.net Forum

Novahq.net Forum (https://novahq.net/forum/index.php)
-   phphq.Net Forums (https://novahq.net/forum/forumdisplay.php?f=277)
-   -   Blocks background (https://novahq.net/forum/showthread.php?t=38611)

~BLÃÐE~ 11-26-2004 08:29 PM

Blocks background
 
Hiya guys, i has a question which is prob a simple one...

I want to change the colour of the "BLOCKS" background. It's white now and want to make the blocks say grey...so do i add a script in the beginning of the block or.......

Thanks in advance, ~BLÃÐE~

careless 11-27-2004 08:58 AM

-
 
WHat you mean??

an image?

zabb 12-11-2004 03:50 PM

blocks? php nuke?

it will be in the "theme.php"
ex

public_html/themes/zabb/theme.php

there will be a section that looks like this.

PHP Code:

<?
function themesidebox($title$content) {
global 
$nukeurl;
    echo 
"<table border=\"0\" align=\"center\" width=\"150\" cellpadding=\"0\" cellspacing=\"1\" bgcolor=\"#990000\">"
 
."<tr><td width=\"100%\">"
 
."<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\"><tr><td width=\"100%\">"
 
."<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\"><tr><td background=\"$nukeurl/themes/Red/images/table-title.gif\" width=\"15\" height=\"23\">"
 
."<img src=\"$nukeurl/themes/Red/images/pip_table-title.gif\" border=\"0\" alt=\"\"></td>"
 
."<td background=\"$nukeurl/themes/Red/images/table-title.gif\" width=\"100%\" height=\"23\"><font color=\"#FFFFFF\"><b>$title</b></font>"
 
."</td></tr></table></td</tr><tr><td width=\"100%\" bgcolor=\"#000000\">"
 
."<table border=\"0\" cellpadding=\"2\" cellspacing=\"1\" width=\"100%\" align=\"center\">"
 
."<tr><td width=\"100%\" bgcolor=\"#990000\">"
 
."$content"
 
."</td></tr>"
 
."<tr><td background=\"$nukeurl/themes/Red/images/tablebottom.gif\" width=\"15\" height=\"15\">"
 
."</td></tr></table></td></tr></table></td></td></tr></table><br />";
}
?>

in that text the "000000" is the background color and the "990000 is for the block header and the bottom 1 is for the footer of the block.

that is code out of a almost stock nuke theme.

remember to back up all files before editing them.
hoope that helps

zabb 12-11-2004 03:55 PM

you might have to play around w/ the colors a bit you can also make notes in the code by putting //
ex

// this line = background for block header

."<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\"><tr><td background=\"$nukeurl/themes/Red/images/table-title.gif\" width=\"15\" height=\"23\">"

// and so on.

~BLÃÐE~ 12-17-2004 09:25 AM

I worked it out lol, sry for slow reply..

The theme had white background in the blocks (php-nuke) i wanted to make them grey....i didn't see at first the blocks.html in the theme folder.
So i just changed it there.

If i went to the background colour in the theme.php

$bgcolor1 = "#d5d5d5";
$bgcolor2 = "#7b91ac";
$bgcolor3 = "#ffffff";
$bgcolor4 = "#d5d5d5";
$textcolor1 = "#000000";
$textcolor2 = "#000000";

and change these, it will only grey some blocks like the banner, tools area outter page frame....not the left and right blocks.

www.nova-outpost.com
is my site i was on about, see how now i have grey left and right sides inside the blocks.

zabb 12-17-2004 05:01 PM

search for "themesidebox" there is a paragraph as I described above that is the settings for the blocks.

I dont have php nuke but I am pretty sure its called themesidebox

what you described is a global setting ONLY if it is not specified.


All times are GMT -5. The time now is 11:02 AM.

Powered by vBulletin®