News:

Wondering if this will always be free?  See why free is better.

Main Menu

Background Colour

Started by DeadlyDemon, April 29, 2004, 12:57:09 PM

Previous topic - Next topic

DeadlyDemon

Hello
I was trying to change the theme of my SMF beta 5 forum. but i annot find where i have to change it from. I looked in style.css and changed the part that says :

body
{
background-color: white;
margin: 0px;
padding: 0px;
}code]


but the changes do not come up on my forum. so where do i change it from?

Owdy

Do you modify default or classic theme?
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

DeadlyDemon

im trying 2 modify the defult 1

Owdy

Okay. Find in index.template.php :

// The main content should go here.  A table is used because IE 6 just can't handle a div.
echo '
<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr>
<td style="background-color: #D4D4D4; padding: 1ex 20px 2ex 20px;">';

...and change that "background-color"
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

Oldiesmann

That just changes the background color for the forum - ie, the color of everything not part of the forum. To change the colors of other things, you'll need to change titlebg (background color for title bars), catbg (background color for category bars), windowbg and windowbg 2 (alternating background colors for posts).
Michael Eshom
Christian Metal Fans

Owdy

Quote from: Oldiesmann on April 29, 2004, 01:12:18 PM
That just changes the background color for the forum
Well i thought that was what he wanted, because of this:

Quotebody
{
   background-color: white;
   margin: 0px;
   padding: 0px;
}code]
:)
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

DeadlyDemon

nope didnt work
i made a copy of the defult one so i do not messanything up. So would i set the colour from the index.template.php in theams/defult or of the one in /theams/test (the one i copied)

DeadlyDemon

i wanted to change the grey background that the defult one has that isnt really part of the forum

Owdy

Quote from: DeadlyDemon on April 29, 2004, 01:18:16 PM
i wanted to change the grey background that the defult one has that isnt really part of the forum
Then that my example should work. I tested that
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

Oldiesmann

Ok... Changing that thing in index.template.php for the theme you created should work fine then.
Michael Eshom
Christian Metal Fans

DeadlyDemon

o yeah koool lol i forgot to set the theam to the test on (chaged it back the first time because it neaver worked)   :P
THanks  :D :D :D

Owdy

Quote from: Oldiesmann on April 29, 2004, 01:25:13 PM
Ok... Changing that thing in index.template.php for the theme you created should work fine then.
;)
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

Advertisement: