The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Catagory Icons Details »» | |||||||||||||||||||||||||
Catagory Icons
Tested on 3.6.1 By Adrian at Development chat.com Current Version: 1.0.1 1.0.1 Status: Working Fine. Hey, I noticed a few people around the 'net wanted a modification like this, It wasn't too hard so i thought i would give it ago. You can specify a image path/url to use for your catagory icon, if none is specified, the forum will use vBulletins default image. See bottom of post for screenshots Installation Import product-catagoryicons.xml (It should make the needed Mysql tables too) Go to Options > Catagory Icons to enable the mod'. Template Edits Open Forum Home Templates > forumhome_forumbit_level1_post Find: HTML Code:
<img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" />
HTML Code:
<img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0"
id="forum_statusicon_$forum[forumid]" />
HTML Code:
<if condition="$vboptions[customimg_enabled] == 1"> <if condition="$forum[customimg] == ''"> <img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" /> <else /> <img src="$forum[customimg]" alt="" border="0" id="forum_statusicon_$forum[forumid]" /> </if> <else /> <img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" /> </if> Open up Forum Home Templates > forumhome_forumbit_level2_post Find: HTML Code:
<img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" />
HTML Code:
<img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0"
id="forum_statusicon_$forum[forumid]" />
HTML Code:
<if condition="$vboptions[customimg_enabled] == 1"> <if condition="$forum[customimg] == ''"> <img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" /> <else /> <img src="$forum[customimg]" alt="" border="0" id="forum_statusicon_$forum[forumid]" /> </if> <else /> <img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" /> </if> That should be it. To set catagory icons, just edit a forum, the image field is at the bottom. If you have any problems, just ask. If you use it, please click install. Thanks. Adrian Show Your Support
|
Comments |
#92
|
|||
|
|||
Im trying to setup this for my subforum image icons, only. However it's not working: http://www.doubleyellowcard.com/premiership/
Code:
<li style="margin-left: -10px;"><a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]""> <if condition="$vboptions[customimg_enabled] == 1"> <if condition="$forum[customimg] == ''"> <img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" /> <else /> <img src="$forum[customimg]" alt="" border="0" id="forum_statusicon_$forum[forumid]" /> </if> <else /> <img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" /> </if> </a></li> <if condition="$childforumbits"> <tbody> $childforumbits </tbody> </if> |
#93
|
||||
|
||||
This hack sounds totally great but is also not usable for me because the "new post" / "no new post" feature is more important then having own images for every forum.
I really would love to see this implemented. I would nominate this HOTM then |
#94
|
|||
|
|||
agree, cause the category icon must go after the "new post" icon like i say previously ...
|
#95
|
||||
|
||||
No replace the icons like it is now is ok with me
(that is exactly what I am looking for). We "simply" need to have the possibility to add 2 other graphics per forum. One for no new posts and one for closed Placing icons next to it can be done like this: Create your graphics and name them ForumID.png (e.g.: 2.png) Then place Code:
<img src="http://www.yourForum.com/images/statusicon/$forumid.png" alt="" class="sectionImages" /> Code:
<img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" /> forumhome_forumbit_level2_post forumhome_forumbit_level1_post forumhome_subforumbit_nopost forumhome_subforumbit_post depending on where you want it. If you want to modify something via css, create an additional css entry for .sectionImages Hope this helps StarBuG ps: I use this methode for my forum images here: http://www.patientenfragen.net Just the placement is a little different |
#96
|
||||
|
||||
Quote:
Someone please tell me how. For now, I just need an icon as default, and one when there are new posts. Thanks, |
#97
|
|||
|
|||
interesting but i do not understand one thing, i would have to repeat your modification for every forum that i have on my board? so after this i find in my templates too many lines how much forum that i have?
|
#98
|
|||
|
|||
where can I find loads of catergory icons free ? please PM me
|
#99
|
||||
|
||||
@admin0: no its not implemented yet. Only one Icon per forum
@KURTZ: you only need to install this hack once, but then you need to define an icon for every forum. @trickfly: google for free icon libraries or such |
#100
|
|||
|
|||
Quote:
thx for the suggestion Star but it's too much job for me, maybe in future ... anyway thx PS. i know the ctrl+c/ctrl+v function but i prefer a automated (or simly) hack |
#101
|
|||
|
|||
i tried this hack on v3.6.4 and the images are not showing up only the default ones and i have turned on the hack any help?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|