View Full Version : Different category image for each category?
Dave Strider
07-06-2015, 12:11 AM
Is it possible to have a different category background image for each category? If there is, how would I go about doing this?
darnoldy
07-06-2015, 01:40 AM
Is it possible to have a different category background image for each category? Yes
If there is, how would I go about doing this?it depends?where exactly do you want the images?
Dave Strider
07-06-2015, 07:47 AM
Yes
it depends?where exactly do you want the images?
I guess I should have been a bit more specific when I was referring to category images. The ones I'm referring to are the ones that are at the top of the category of each forum.
https://vborg.vbsupport.ru/external/2015/07/27.png
darnoldy
07-06-2015, 04:28 PM
okay... I don't use categories on my forum, so I haven't tested this.
That Category is really a forum with no posts allowed. Its display on the FORUMHOME page is controlled by one of two templates (depending on your forum structure): forumhome_forumbit_level1_nopost, or forumhome_forumbit_level2_nopost
Within either of these templates (pick the appropriate one that your site uses), you should find the following line:
<td class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">
you want to change it to put in the proper background image:
<td class="tcat" style="background-image:url([path to images]/catbg_$forum[forumid].jpg);background-repeat: no-repeat; background-position: center;" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">
Then name your images catbg_1.jpg or whatever (use the forum id of your specific categories). You will also need to set the path to the folder that you put them in on your server.
I hope this helps
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.