![]() |
Use different status image extensions
Before today I was using vBulletin 3.5.4 with the custom status icon mod. This mod allowed you to choose the whole filename. In 3.5.4 I chose to have a PNG extension for these icons and not the vB .gif default.
As I did not want to redo all the images I did a little template modification which allowed me to have .png extension for custom icons and keep the GIF extension for the default images. In both forumhome_forumbit_level1_post and forumhome_forumbit_level2_post search: Code:
<img src="$stylevar[imgdir_statusicon]/$forum[imageprefix]forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" /> custom_iconforum_new.gif, if you want to keep this format, change both parts in the templates to: Code:
<img src="$stylevar[imgdir_statusicon]/<if condition="!empty($forum[imageprefix])">$forum[imageprefix]forum_$forum[statusicon].png<else />$forum[imageprefix]forum_$forum[statusicon].gif</if>" alt="" border="0" id="forum_statusicon_$forum[forumid]" /> Code:
<img src="$stylevar[imgdir_statusicon]/<if condition="!empty($forum[imageprefix])">$forum[imageprefix]_$forum[statusicon].png<else />$forum[imageprefix]forum_$forum[statusicon].gif</if>" alt="" border="0" id="forum_statusicon_$forum[forumid]" /> No screenshots needed, as it does exactly the same as was it default does, except you now get to choose the extension of the status icon images instead of having to use .GIF |
All times are GMT. The time now is 11:43 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|