PDA

View Full Version : Catagory specific background image


Mystic Gohan
04-25-2003, 07:11 PM
i've been working on getting catagory specific background images, but i seem to have stumbled on a problem :/

okay, so in forumhome_forumbit_level1_nopost

<tr id="cat">
<td background="{imagesfolder}/$forum[title].gif" colspan="6"><a href="forumdisplay.php?s=$session[sessionhash]&forumid=$forum[forumid]"><normalfont color="#000000"><b>$forum[title]</b></normalfont></a>
<br><smallfont color="#000000">$forum[description]</smallfont></td>
</tr>

the boldpart being where the background images is called, now why cant i use the $forum[title] tag to load an image?, the forum name being "Test", and the image being Test.gif .. is there a way to get around this so that each catagory can have its own image?

Dean C
04-26-2003, 12:08 PM
Please post template-related questions in the correct forum in future :)

Thanks

_________

Regarding your question. You would have to hack to achieve this :)

- miSt

base
04-26-2003, 04:02 PM
i use $forum[forumid].gif - then use numbered images. so if your test forum was id 12 for example, your "test" image should be called "12.gif"

{imagesfolder}/$forum[forumid].gif etc etc

base
04-26-2003, 04:03 PM
aha, that got parsed then...

<td background="{ imagesfolder}/$forum[forumid].gif" colspan="6"> is what i should have done ;)

Dean C
04-26-2003, 05:46 PM
Oops didn't read the question correctly :)

So you have it all working now :)?

- miSt

filburt1
04-26-2003, 05:47 PM
Today at 01:03 PM base said this in Post #4 (https://vborg.vbsupport.ru/showthread.php?postid=387484#post387484)
aha, that got parsed then...

<td background="{ imagesfolder}/$forum[title].gif" colspan="6"> is what i should have done ;)

Not a good idea. The forum title will rarely comply with UNIX file naming rules.

base
04-26-2003, 09:50 PM
ack, i meant what i had typed in my first post, $forum[forumid].gif etc... sorry, don't know where i am today heh

i'll edit my post again....