vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=242)
-   -   Use Different Image Types for Status Icons (https://vborg.vbsupport.ru/showthread.php?t=234921)

crazyace 02-02-2010 10:00 PM

Use Different Image Types for Status Icons
 
Today I found out that adding two different types of statusicons can be confusing. I had some new status icons made and also had an animated one made also.

Here are the list of files that I was using.

forum_old-48.png
forum_new-48_animated.gif
forum_new-48.png ( just in case animated didn't work )

To get started follow this path from your admin panel:

Styles & Templates > Search in Templates

Using the search box at the top, search your templates for:


Code:

-48.png
You should get the following list:
  • search.css
  • forumhome_forumbit_level1_post
  • forumhome_forumbit_level2_post
  • forumhome_subforumbit_post

You will only need to make edits to forumbit_level1 and level2.

Double click on forumhome_forumbit_level1_post to get started.

You will need to search for
Code:

<img src=[/COLOR]"{vb:stylevar imgdir_statusicon}/{vb:raw forum.imageprefix}forum_{vb:raw forum.statusicon}-48.png" class="forumicon" id="forum_statusicon_{vb:raw forum.forumid}" alt="" />
Now that you have found the code you will need to replace it with this code:

Code:

<vb:if condition="$forum['statusicon'] == old"><img src="{vb:stylevar imgdir_statusicon}/{vb:raw forum.imageprefix}forum_{vb:raw forum.statusicon}-48.png" class="forumicon" id="forum_statusicon_{vb:raw forum.forumid}" <vb:else />

<img src="{vb:stylevar imgdir_statusicon}/{vb:raw forum.imageprefix}forum_{vb:raw forum.statusicon}-48_animated.gif" class="forumicon" id="forum_statusicon_{vb:raw forum.forumid}"</vb:if>


Scroll over in the code and you will notice in RED the animated file name that I used. Make sure to replace this with what ever your file name is.

Now click on save and repeat the steps above for level2.

Now go and check your forum to see the changes.

**I would also like to thank Lynne for part of the code that I used for this!**

samiro 02-18-2010 08:34 AM

but if i want to change also the hot thred icon
and the moved thred icon
(set)
how can i do that ?

crazyace 02-22-2010 11:32 PM

Quote:

Originally Posted by samiro (Post 1985408)
but if i want to change also the hot thred icon
and the moved thred icon
(set)
how can i do that ?

You will need to find the image that you want to change in this folder "/images/statusicon" Then you can replace the image with yours. Make sure that its the same size as the old image.

sulasno 10-03-2010 07:33 AM

my online and offline stausicons are in png format;

how do I change them to gif format ?


All times are GMT. The time now is 03:38 PM.

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

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01270 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
  • (3)bbcode_code_printable
  • (1)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