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:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg232.imageshack.us%2Fimg232%2F3903%2Fnytyq5.th.jpg&hash=35f256abd12b78f86bc91b2342810e4a5bcd68dc) (http://img232.imageshack.us/my.php?image=nytyq5.jpg)

I added background:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg232.imageshack.us%2Fimg232%2F857%2Ftaustalisttylb9.th.jpg&hash=6106acf7ce0754e1c43bfdacc48aa21c98ca0f55) (http://img232.imageshack.us/my.php?image=taustalisttylb9.jpg)

This is how I want it to be (I Photoshopped this image):
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg245.imageshack.us%2Fimg245%2F2473%2Fpitisiollaaa9.th.jpg&hash=bfc1ddf99f613adc924b6f09c383855bd48bbbf5) (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:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg83.imageshack.us%2Fimg83%2F7183%2Fpitisiollaaa9mr2.th.jpg&hash=5760d64c8baee56d336ece74385e3c0022ef6409) (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.