Log in

View Full Version : different header background image for different categoy


keymistress
05-18-2005, 08:00 AM
how do i write the conditionals and which templates do i modify to display a different background for the header? like in here

http://www.keeptouch.net/images/ss01.jpg

and here

http://www.keeptouch.net/images/ss02.jpg

Princeton
05-18-2005, 12:15 PM
I believe it is:
forumhome_forumbit_level1_nopost
forumhome_forumbit_level2_nopost

add the img html wherever you want the image to be displayed ...
<img src="$stylevar[imgdir_misc]/cat_$forumid.gif" alt="" border="0" />
now create your images and save as cat_$forumid.gif
NOTE: when saving images replace $forumid with forum id of forum where you want image to be displayed


the other template is the "navbar"

keymistress
05-19-2005, 06:10 AM
thanks! adding an image wasn't exactly what i wanted but i needed to know which template to edit and the bbcode for forum id...

did it this way (added the codes in green):
<td background="$stylevar[imgdir_misc]/cat_$forumid.gif"
colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">

this way i can set different background images for the table instead of adding an image...

may i know what's the difference between the *post and *nopost templates?

Princeton
05-19-2005, 11:22 AM
you should use CSS for 'background' ... or, at the very least change the doctype if you are not coding in valid XHTML

the difference is one is used for categories

keymistress
05-20-2005, 01:30 AM
i'm not using CSS because i don't want it to affect all my tcat class...

Princeton
05-20-2005, 11:33 AM
it won't effect your tcat class if you use -- style="background:url(/images/yourimage$forumid.gif)"