The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Automated Simple Catagory Icons Details »» | |||||||||||||||||||||||||
This is an automated version of these hacks:
https://vborg.vbsupport.ru/showthrea...35#post1202535 https://vborg.vbsupport.ru/showthrea...=127426&page=2 by Starbug & Adrian., all credit goes to them for the original concept. Thanks to Brad Flynn for his help also. Also: Thank you to BadgerDog for noticing I missed an ID off one of the find instructions What it does: Allows you to use a set of custom icons on a per forum basis. No settings needed, the plugin will look for a set of images that meet the conditions I outline in the instructions and display them if they exist. The default VB icons if they don't. NOTE: You will need your forum icons to be named like this: forumx_old.gif forumx_old_lock.gif etc... where x is the forum id number for the new images to work. If you don't, only the defaults will appear. Please Remember to make all 4 icons "new" "old" "new_lock" & "old_lock" an error has been reported that if all 4 don't exist, guests and unregistered may not see the default icons. Instructions: Use either the installer or the plugin to make a new plugin. OR create it yourself on the on the forumbit_display hook. With this code: Code:
$showCustom[$forum['forumid']] = false; if (is_file("path/to/forum/images/statusicon/forum".$forum['forumid']."_new.gif")) { $showCustom[$forum['forumid']] = true; } Code:
<img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" /> Code:
<if condition="$vboptions[customimg_enabled] == 1"> <if condition="$forum[customimg] == ''"> <if condition="$showCustom[$forum[forumid]] == true"> <img src="$stylevar[imgdir_statusicon]/forum$forum[forumid]_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]"/> <else /> <img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" /> </if> <else /> <img src="$forum[customimg]" alt="" border="0" id="forum_statusicon_$forum[forumid]" id="forum_statusicon_$forum[forumid]"/> </if> <else /> <if condition="$showCustom[$forum[forumid]] == true"> <img src="$stylevar[imgdir_statusicon]/forum$forum[forumid]_$forum[statusicon].gif" alt="" border="0" /> <else /> <img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" /> </if> </if> In forumhome_forumbit_level2_post find: Code:
<img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" /> Code:
<if condition="$vboptions[customimg_enabled] == 1"> <if condition="$forum[customimg] == ''"> <if condition="$showCustom[$forum[forumid]] == true"> <img src="$stylevar[imgdir_statusicon]/forum$forum[forumid]_$forum[statusicon].gif" alt="" border="0" /> <else /> <img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" id="forum_statusicon_$forum[forumid]"/> </if> <else /> <img src="$forum[customimg]" alt="" border="0" id="forum_statusicon_$forum[forumid]" /> </if> <else /> <if condition="$showCustom[$forum[forumid]] == true"> <img src="$stylevar[imgdir_statusicon]/forum$forum[forumid]_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]"/> <else /> <img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" /> </if> </if> Show Your Support
|
Comments |
#22
|
|||
|
|||
I'd make a lock.gif to have the complete set regardless....but yes its needed
|
#23
|
|||
|
|||
This now works with VBs JS to mark a forum read
|
#24
|
|||
|
|||
Thanks for the update ... :up:
We've used your mod since it came out.... It's been a while, so for clarity, what do we need to do to upgrade? Is there a need to uninstall the previous version first, or can we just go ahead and import the XML? Regards, Badger |
#25
|
|||
|
|||
all thats changed is the template portion of the mod, so if you redo the edit you'll be set
|
#26
|
|||
|
|||
Quote:
Thanks ... Nice mod... really enhances use of our forums. People look for the icon graphic to find forums as opposed to reading text. Regards, Badger |
#27
|
|||
|
|||
I cant get it to work.
I did all the template edits and install the thingy in forumbit_diplay hook. Even got the status icons in several maps just to see where it is directing to. Do i need to change this line? is_file("path/to/forum/images/statusicon/forum". To an directory where the *.gif's are located? Changed te gif's to the name of the forum. forum419_old_lock.gif forum419_new_lock.gif forum419_old.gif forum419_new.gif But it aint working. What am i doing wrong? |
#28
|
|||
|
|||
path/to/forum needs to be changed, yes
|
#29
|
||||
|
||||
Just wanted to thank you for this mod. Looks great on my forum and I went with png icons.
INSTALLED! Thank you! :up: |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|