vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Single specific category icon (https://vborg.vbsupport.ru/showthread.php?t=152997)

theFAILURE 07-22-2007 02:02 AM

Single specific category icon
 
I have seen a few mods / hacks that add category icons to all the forums, but that is not quite what I am looking for.

Here is what my forum looks like now:

https://vborg.vbsupport.ru/external/2007/07/12.jpg

I modified this with Adobe Photoshop, this is what I want to add:

https://vborg.vbsupport.ru/external/2007/07/13.jpg

Any ideas?

Kirk Y 07-22-2007 02:30 AM

Give this a try.

Find in your "forumhome_forumbit_level1_nopost" template:
Code:

<td class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">
Add above:
Code:

<td class="tcat"><img src="/path/to/your/image.gif" /></td>

theFAILURE 07-22-2007 02:37 AM

Hmm, I have about 6 different categories I want different icons for though.

Sorry Kirk, I should have mentioned that.

Kirk Y 07-22-2007 02:40 AM

Okay, use this code instead:
Code:

<td class="tcat"><img src="/path/to/your/image_$forum[forumid].gif" /></td>
Then, when you're naming the images you'd like to display, add a suffix to each one with the Forum ID that you'd like it displayed for.

Ex: image.gif for Forum ID 2 becomes - image_2.gif

Edit: If you don't want to display an image for all your forums, you can wrap the above code with the following, which will only display it for specific forums:
Code:

<if condition="in_array($forum[forumid], array(X,Y,Z))">
Code Supplied Above
</if>

Replace X,Y,Z with the Forum IDs of the forums you're displaying images next to.

theFAILURE 07-22-2007 02:44 AM

Thanks, I really appreciate your time, and quick response.

I'll let you know how I make out :D


All times are GMT. The time now is 09:09 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.01012 seconds
  • Memory Usage 1,718KB
  • 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
  • (4)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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