Go Back   Novahq.net Forum > phphq.Net > phphq.Net Forums

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11-26-2004, 08:29 PM
~BLÃÐE~
Unregistered

Posts: n/a

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~
Reply With Quote
  #2  
Old 11-27-2004, 08:58 AM
careless
Unregistered

Posts: n/a

-

WHat you mean??

an image?
Reply With Quote
  #3  
Old 12-11-2004, 03:50 PM
zabb
Unregistered

Posts: n/a

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
Reply With Quote
  #4  
Old 12-11-2004, 03:55 PM
zabb
Unregistered

Posts: n/a

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.
Reply With Quote
  #5  
Old 12-17-2004, 09:25 AM
~BLÃÐE~
Unregistered

Posts: n/a

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.
Reply With Quote
  #6  
Old 12-17-2004, 05:01 PM
zabb
Unregistered

Posts: n/a

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.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ken Blocks Trax Sti Car SilentTrigger General Chat 2 12-04-2010 05:27 PM
Server Status Blocks or Mods DeathAngel Delta Force 8 04-12-2009 10:42 PM
High court blocks Gitmo military tribunals Lakie General Chat 2 06-30-2006 08:50 AM
my first background ForSaken Sigs and Graphics 1 08-13-2004 01:55 AM
Background... Col JD Sigs and Graphics 2 01-04-2003 01:27 AM


All times are GMT -5. The time now is 03:32 AM.




Powered by vBulletin®