Uutiset:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu
Advertisement:

Adding background to forum, but do I need a new table?

Aloittaja Anthanus, syyskuu 13, 2006, 04:12:58 IP

« edellinen - seuraava »

Anthanus

Our forum's version is 1.1 RC3 and I'm making my own theme based on SMF default.

Forum here: hxxp:www.kareinen.com/rpg/smf/index.php [nonactive]

Our forum now:
hxxp:img232.imageshack.us/my.php?image=nytyq5.jpg [nonactive]

I added background:
hxxp:img232.imageshack.us/my.php?image=taustalisttylb9.jpg [nonactive]

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

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?

Ravyn

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.
Ravyn
-SMF Newbie in Training

Anthanus

Thank you!

Just one probleml:
hxxp:www.kareinen.com/rpg/smf/index.php [nonactive]

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


Ravyn

Looks like you've already figured that part on your own, glad it worked out for you.  Enjoy.
Ravyn
-SMF Newbie in Training

Advertisement: