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 |
#2
|
|||
|
|||
May 8th 2007
Because of the similarities between this mod and another, I've removed the template edit that I originally released rather than cause a problem! May 8th 2007...later in the day? I had another look at my code vs. the similar code, and with the exception of variable names, the organization of the logic of the template edits is tottaly different...I'm going to re-add the template code and leave it to wisdom of the staff if i'm in error. I added Plugin Code & Template Instructions to the first post and txt file May 16th 2007 Added missing ID tag to one of the find instructions, updated txt file also June 12 2007 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. July 5 2007 Now supports standard mark forum read double click! |
#3
|
|||
|
|||
|
#4
|
|||
|
|||
Wow...the template edit is far too close for me to keep using it...thanks for pointing that out...
The plugin still separates the two releases, so i'm going to release it on its own. |
#5
|
||||
|
||||
Looks pretty good to me! Thanks a bunch, MThornback!
|
#6
|
||||
|
||||
Then... isn't ready yet?
|
#7
|
||||
|
||||
its nice but when u use this u will lose the ajax technology of the mark forum read via pressing on the icon of the category
|
#8
|
|||
|
|||
Seems so, to be honest, it wasn't something I considered cause I never use it. Thanks for pointing it out
|
#9
|
|||
|
|||
|
#10
|
|||
|
|||
Hi, MThornback Nice job, Well done
Can you please make it more easy to install? i mean just a product to upload and some templates to edit. I've installed Adrian's product, should i need to uninstall Adrian's product and template edits? before installing this hack. Thanks. |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|