Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Aiheen aloitti: Anthanus - syyskuu 13, 2006, 04:12:58 IP

Otsikko: Adding background to forum, but do I need a new table?
Kirjoitti: Anthanus - syyskuu 13, 2006, 04:12:58 IP
Our forum's version is 1.1 RC3 and I'm making my own theme based on SMF default.

Forum here: http://www.kareinen.com/rpg/smf/index.php

Our forum now:
(http://img232.imageshack.us/my.php?image=nytyq5.jpg)

I added background:
(http://img232.imageshack.us/my.php?image=taustalisttylb9.jpg)

This is how I want it to be (I Photoshopped this image):
(http://img245.imageshack.us/my.php?image=pitisiollaaa9.jpg)

I made that width adjusted using <div> commands, should I use table instead of div or how I could make our forum to look exactly I want?
Otsikko: Re: Adding background to forum, but do I need a new table?
Kirjoitti: Ravyn - syyskuu 13, 2006, 08:30:58 IP
Yes, you need to add a table to your index.template.php to achieve what you're looking for.

Open up your index.template.php:
Find

<body>';


Replace with:

<body background="nameofbackgroundimage.gif"><center><table width="80%"><tr><td class="windowbg">


You can alter the width % to whatever you'd like for your own needs.

Then:
Find

</body></html>';


Replace with:

</td></tr></table></center></body></html>';



That should solve your problem.
Enjoy your SMF boards.
Otsikko: Re: Adding background to forum, but do I need a new table?
Kirjoitti: Anthanus - syyskuu 14, 2006, 03:15:30 AP
Thank you!

Just one probleml:
http://www.kareinen.com/rpg/smf/index.php

Can I add some space to the new table's borders, like this:
(http://img83.imageshack.us/my.php?image=pitisiollaaa9mr2.jpg)

Otsikko: Re: Adding background to forum, but do I need a new table?
Kirjoitti: Ravyn - syyskuu 14, 2006, 09:09:51 IP
Looks like you've already figured that part on your own, glad it worked out for you.  Enjoy.