The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Simple Category Icons Details »» | |||||||||||||||||||||||||
Ok folks.
For all of you who want Category Icons including the "new post", "no new post", "forum closed" capabilities, here is a quick and simple solution provided by Andreas What this hack does: Instead of the standard forum icons like or , ... you can now have separat status icons for every forum you have. It is that simple Templates forumhome_forumbit_level_... search: Code:
<img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" /> Code:
<img src="$stylevar[imgdir_statusicon]/forum$forum[forumid]_$forum[statusicon].gif" alt="" border="0" /> forumID_new.gif, forumID_old.gif,... Example: forum1_new.gif If you want to have different icons for subforums on forumhome as well: In forumhome_subforumbit_nopost and forumhome_subforumbit_post search for: Code:
<img class="inlineimg" src="$stylevar[imgdir_statusicon]/subforum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" /> Code:
<img class="inlineimg" src="$stylevar[imgdir_statusicon]/subforum$forum[forumid]_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" /> subforumID_old.gif subforumID_new.gif Example: subforum22_old.gif I don't use this hack so I have no screenshots, but If anyone is trying this, it would be cool if you could provide some screenshots. Remember to click installed Greetings StarBuG Supporters / CoAuthors Show Your Support
|
Comments |
#22
|
||||
|
||||
hi starbug,
well i could batch convert the _old icons to grey. i just dunno if i should. having some grey-er icons and all... don't wanna spoil the look you know.. hmm, i could try adding a star or some sort to the _new icons instead but grey icons would make a significant difference to the look i am also going to do the sub cat too thanks again for your hack! Tom |
#23
|
|||
|
|||
A sample site for this code: http://giaitri.homeip.net/vb/
|
#24
|
|||
|
|||
To automate this somewhat....
make a new plugin on the forumbit_display hook. Code:
$showCustom[$forum['forumid']] = false; if (is_file("path/to/forum/images/statusicon/forum".$forum['forumid']."_new.gif")) { $showCustom[$forum['forumid']] = true; } Code:
<td> <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]" /> </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" /> <else /> <img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" /> </if> </if> </td> If it works (it does for me) it should replace for forums that have an image in the right folder, otherwise display the default. The best of both worlds Enjoy! |
#25
|
||||
|
||||
please upload a text file
|
#26
|
|||
|
|||
I'm gonna leave that to the author...its his code, I just tweaked it
|
#27
|
|||
|
|||
Hi, MThornback your suggested code didn't seem to work it just showed the default icons and nothing else. Any idea what could have caused this? I was using png's (i.e. changing all the extensions in the extract of code to png except for the final one for the default icon) but to test it I tried it all with gifs and it still did same.
Also is the closing t tag meant to be there? tried it with and without and didn't see much of any difference but wanted to double check that too. Would certainly be useul to be able to state a default img. |
#28
|
|||
|
|||
Your absolutely right, the code I added didn't include the plugins' variable.....i'm sorry about that! As long as you change the extension to png in the plugin and in the template edits, it should work fine now
If you replace what I gave you the first time with whats there now it should work. Sorry about that again! |
#29
|
||||
|
||||
@hippiesimz
I just released the hack you were looking for. You can find it here: Forum Images next to the Description for every Forum Best regards StarBuG |
#30
|
|||
|
|||
Hey there, great hack. Quick question. Since I have taken all of my category icons and changed them to custom icons (and its going to be a very active board and wont have closed forums or inactive ones), is there a way to remove the symbol key at the bottom of the hompage? (see the attached image)
|
#31
|
||||
|
||||
in template FORUMHOME remove
Code:
<tr> <td><img src="$stylevar[imgdir_statusicon]/forum_old_lock.gif" alt="$vbphrase[a_closed_forum]" border="0" /></td> <td class="smallfont"> $vbphrase[forum_is_closed_for_posting]</td> </tr> |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|