Nukemods Forum  
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 53
3 members and 50 guests
buynm6ymobcha8b, cliaw9cckhereto, int5nwernetmarx
Most users ever online was 611, 03-21-2008 at 10:10 PM.
» .::.
» .:.

Go Back   Nukemods Forum > NM Staff > Purged Topics

Reply
 
LinkBack Thread Tools Display Modes
I want to change BG colour in to images
Old
  (#1 (permalink))
Junior Member
 
Status: Offline
Posts: 56
Join Date: Feb 2003
Location: The Netherlands
I want to change BG colour in to images - 03-12-2003, 09:05 AM

Hello,

i want to change the backgrounds of the modules at my site. But can i just replace the colour code with bg.gif? I think the changes should be made in theme.php or tables.php (correct me if i'm wrong) but can i just replace:

$bgcolor3 = "#363636";
$bgcolor4 = "#363636";

with:

$bgcolor3 = "bg.gif";
$bgcolor4 = "bg.gif";

after placing the image in the themes image folder? Or is it much more complicated and do i have to totally change the codes to "img src" and then modify all the files replacing $bgcolour3/4 with img src? I did manage to change the BG of the blocks and stories that was the easy part; just modifying the .html files. Anyway, my homepage looks very nice now, but when entering a module it isn't that nice. So please help me.
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#2 (permalink))
Senior Member
 
Status: Offline
Posts: 2,905
Join Date: Sep 2002
03-12-2003, 09:28 AM

Example Chronicles theme.

Look in your
tables.html file

Code:
function OpenTable() {
    global $bgcolor1, $bgcolor2;
    echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"7\">
  <tr>
    <td><table width=\"100%\" border=\"0\" cellpadding=\"2\" cellspacing=\"0\" bgcolor=\"5B0B0B\">
        <tr>
          <td><table width=\"100%\" border=\"0\" cellpadding=\"1\" cellspacing=\"0\" bgcolor=\"000000\">
              <tr>
                <td><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
                    <tr>
                      <td bgcolor=\"#BA9F70\" background=\"themes/Chronicles/images/gen_background.jpg\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"4\">
                          <tr>
                            <td>";
notice the background image being set in one of the table rows there?

Try that same method at the same spot on your tables.html file.

mikem
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#3 (permalink))
Junior Member
 
Status: Offline
Posts: 56
Join Date: Feb 2003
Location: The Netherlands
03-12-2003, 09:33 AM

Thanks for the quick response! I will try it! Uhm shouldn't that be tables.php?
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#4 (permalink))
Junior Member
 
Status: Offline
Posts: 56
Join Date: Feb 2003
Location: The Netherlands
03-12-2003, 09:44 AM

Hmm, something must be wrong. This locked my site up. There were no stories, and the center and right blocks were missing. This is what i did:

Code:
function OpenTable() {
    global $bgcolor1, $bgcolor2;
    echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"5\">
  <tr>
    <td><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\">
        <tr>
          <td bgcolor=\"#363636\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\">
              <tr>
                <td bgcolor=\"#D1D7DC\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
                    <tr>
                      background=\"themes/theme1/images/table2back.gif\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"4\">
                          <tr>
                            <td>";
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#5 (permalink))
Junior Member
 
Status: Offline
Posts: 56
Join Date: Feb 2003
Location: The Netherlands
03-12-2003, 01:35 PM

Ok i think i did something wrong! I copied your code and now it works!

THANKS!!!! :!:
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Thanks
Old
  (#6 (permalink))
Junior Member
 
Status: Offline
Posts: 5
Join Date: Mar 2003
Thanks - 03-15-2003, 10:25 AM

Thanks Mikem this works a treat

Using the Smartdark Theme, I wish to change the backgrounds of say the 'news' sections & the Blocks sections (ie.whose online etc) on my front page.

I'm assuming its a similar tweak elsewhere - could anyone provide a pointer here?

Pottsy
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#7 (permalink))
Junior Member
 
Status: Offline
Posts: 56
Join Date: Feb 2003
Location: The Netherlands
03-15-2003, 12:06 PM

No, than you should change the: blocks.html, story_page.html and story_home.html of the theme you are using. You can do this with dreamweaver or whatever html editor you use.
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Thanks Loki :)
Old
  (#8 (permalink))
Junior Member
 
Status: Offline
Posts: 5
Join Date: Mar 2003
Thanks Loki :) - 03-15-2003, 12:17 PM

I'll give this a try

Pottsy
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Great !
Old
  (#9 (permalink))
Junior Member
 
Status: Offline
Posts: 5
Join Date: Mar 2003
Great ! - 03-15-2003, 12:58 PM

Thanks Loki - works a treat

Thanks for all the help today Loki / Mikem

had some really good results today

Pottsy
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
C3S theme txt colour FcUK_A Theme packs 1 09-17-2005 09:33 AM
forum text colour MurdeRInK Site design 1 07-14-2005 07:58 PM
Change review index table colour. Sheriff_Mole Site design 0 05-14-2005 08:52 AM
Change the block background colour in subBlack3dBlue. Voodoo Site design 3 11-26-2004 05:56 PM
Change rank images with theme change Dauthus Nuke 6.5 to 6.9 - Themes 4 07-13-2003 03:57 AM




vBulletin Skin developed by: vBStyles.com


LinkBacks Enabled by vBSEO 3.3.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31