vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   Different Status Icons (https://vborg.vbsupport.ru/showthread.php?t=160522)

Ksb2050 10-18-2007 03:35 PM

Different Status Icons
 
Hey guys!

I was hoping some of you would be able to tell me how to change my status icons per forum.

Heres an example of what I mean: http://www.adesignforum.com/index.php

Freesteyelz 10-19-2007 03:32 AM

This is the image code (in templates):

forumhome_forumbit_level2_post
forumhome_forumbit_level1_post

Find:

Code:

<td class="alt2"> <img src="$stylevar[imgdir_statusicon] /forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" /></td>
Replace with:

Code:

<td class="alt2"><img src="$stylevar[imgdir_statusicon]/$forum[forumid].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" /></td>
Then name each .gif (or whatever extension you want) by its forum ID (e.g., 23.gif, 35.gif). Upload the images in your statusicon image folder or whichever folder you specified.

Ksb2050 10-20-2007 01:53 AM

Thanks alot!!!

Freesteyelz 10-20-2007 02:15 AM

Anytime. :)

edgecutioner 10-26-2007 06:32 AM

well there's a downside to that code cause it doesn't have the default system that when there is a new post, the _new.gif image shows up and _old.gif when there's no new post....

here's my code for customizing it..

in

forumhome_forumbit_level2_post
forumhome_forumbit_level1_post

find

Code:

<td class="alt2"> <img src="$stylevar[imgdir_statusicon] /forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" /></td>
replace with

PHP Code:

<td class="alt2"><img src="$stylevar[imgdir_statusicon]/$forum[forumid]_forum_$forum[statusicon].gif" alt="" border="0" id="$forum[forumid]_forum_statusicon.gif" /></td

Then name each .gif by its [forumid]_forum_old.gif for old and [forumid]_forum_new.gif (e.g., 23_forum_new.gif, 23_forum_old.gif).
there should be a pair of those images, the old being opaque (35% will do).

Upload the images in your statusicon image folder or whichever folder you specified.

*note: replace the [forumid] with the appropriate forum ID's*

Credit to Freestylez for the orig code he gave on this thread :D

Freesteyelz 10-26-2007 06:39 AM

Hahaa. Well, it's been done before. :)

I like what you did with it. You've kept the functionality of statis icon. :up:

edgecutioner 10-26-2007 07:23 AM

thanks :o


All times are GMT. The time now is 08:22 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.01434 seconds
  • Memory Usage 1,724KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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