» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 65
0 members and 65 guests
No Members online
Most users ever online was 611, 03-21-2008 at 11:10 PM.
» .::.
Web Hosting - web hosting, dedicated servers and web design services
Online Degree - search for 1000+ online degrees, online colleges & online universities.
Tattoo - we are a group of tattoo enthusiasts
Gexa Energy - your absolute best choice in electric service
Texas electricity - save on electric rates
Oral Chelation - initial cleansing of your veins & arteries

Register Now! Contact Us

About this Page
This is a discussion on I want to change BG colour in to images within the Purged Topics forums, part of the NM Staff category; Hello, i want to change the backgrounds of the modules at my site. But can i just replace the colour ...


Go Back   Nukemods Forum » NM Staff » Purged Topics

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-12-2003, 10:05 AM
Junior Member
 
Join Date: Feb 2003
Location: The Netherlands
Posts: 56
I want to change BG colour in to images
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
  #2 (permalink)  
Old 03-12-2003, 10:28 AM
Senior Member
 
Join Date: Sep 2002
Posts: 2,905
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
  #3 (permalink)  
Old 03-12-2003, 10:33 AM
Junior Member
 
Join Date: Feb 2003
Location: The Netherlands
Posts: 56
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
  #4 (permalink)  
Old 03-12-2003, 10:44 AM
Junior Member
 
Join Date: Feb 2003
Location: The Netherlands
Posts: 56
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
  #5 (permalink)  
Old 03-12-2003, 02:35 PM
Junior Member
 
Join Date: Feb 2003
Location: The Netherlands
Posts: 56
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
  #6 (permalink)  
Old 03-15-2003, 11:25 AM
Junior Member
 
Join Date: Mar 2003
Posts: 5
Thanks
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
  #7 (permalink)  
Old 03-15-2003, 01:06 PM
Junior Member
 
Join Date: Feb 2003
Location: The Netherlands
Posts: 56
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
  #8 (permalink)  
Old 03-15-2003, 01:17 PM
Junior Member
 
Join Date: Mar 2003
Posts: 5
Thanks Loki :)
I'll give this a try

Pottsy
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 03-15-2003, 01:58 PM
Junior Member
 
Join Date: Mar 2003
Posts: 5
Great !
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 10:33 AM
forum text colour MurdeRInK Site design 1 07-14-2005 08:58 PM
Change review index table colour. Sheriff_Mole Site design 0 05-14-2005 09:52 AM
Change the block background colour in subBlack3dBlue. Voodoo Site design 3 11-26-2004 06:56 PM
Change rank images with theme change Dauthus Nuke 6.5 to 6.9 - Themes 4 07-13-2003 04:57 AM


All times are GMT -5. The time now is 07:54 AM.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.

LinkBacks Enabled by vBSEO 3.1.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