View Full Version : Background Image in
attroll
01-27-2003, 04:13 PM
I can not find the answer to this question. I have looked everywhere.
I want to have a background image show up in the background of posted messages. What template do I go into and what what coade will go in it?
Is there also a way to have a different background image for different categorys?
Xanthine
01-27-2003, 04:38 PM
You have to edit the postbit template.
attroll
01-28-2003, 01:57 PM
OK I have gone into my postbit template and tried putting in the following line in several places when the first place I thought it should have gone did not work.
background="{ imagesfolder}/bgimage.gif"
could someone tell me where the correct line is to put this.
Dean C
01-28-2003, 04:26 PM
In your 'postbit' template find:
<td bgcolor="$post[backcolor]" width="100%" valign="top">
Change it to:
<td bgcolor="$post[backcolor]" background="{ imagesfolder}/bgimage.gif" width="100%" valign="top">
Make sure you remove the gap between the { and imagesfolder though :)
- miSt
WetWired
01-31-2003, 01:20 PM
You, know you could avoid confusion when explaining these things by simply typing "{imagesfolder}" instead of "{ imagesfolder}" then telling them to remove the space.
Just remember that inserting in the middle of a tag or replacement will prevent its proper parsing. I use this trick all the time when explaining vB codes to people.
Dean C
01-31-2003, 04:04 PM
No because when {imagesfolder} is typed on its own it parses.
Let me try that second tip tho:
<td background="{imagesfolder}/tablebg.gif">
Dean C
01-31-2003, 04:04 PM
I rest my case :)
- miSt
WetWired
01-31-2003, 07:49 PM
You failed to understand.
Type this:
{imagesfolder}
to get this:
{imagesfolder}
or this:
http://www.vbulletin.org/layout/header.gif
to get this:
http://www.vbulletin.org/layout/header.gif
it should have been obvious it could be made to work by the fact that it worked in my post ;)
BTW, clicking quote would have shown you how I did it.
Dean C
01-31-2003, 08:19 PM
I can't see it in your post :)
It parses when put in a html tag...
Let me try again:
<td background="{imagesfolder}/tablebg.gif">
- miSt
Dean C
01-31-2003, 08:24 PM
Thankyou for that - i'll use that when helping from now on (makes life so much easier)
- miSt
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.