vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Different category image for each category? (https://vborg.vbsupport.ru/showthread.php?t=319364)

Dave Strider 07-06-2015 12:11 AM

Different category image for each category?
 
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

Quote:

Originally Posted by Dave Strider (Post 2549441)
Is it possible to have a different category background image for each category?

Yes

Quote:

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

Quote:

Originally Posted by darnoldy (Post 2549443)
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:
HTML Code:

<td class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">
you want to change it to put in the proper background image:
HTML Code:

<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


All times are GMT. The time now is 12:02 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01121 seconds
  • Memory Usage 1,717KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_html_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete