The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
vB Category Icons Details »» | |||||||||||||||||||||||||
vB Category Icons vBulletin 3.5.0 RC 1 www.vBHackers.com What this does This will allow you to setup a icon to display by the title of each forum you have. The look of the icon depends on how you want to set it up in the templates. This will work for all levels of sub-forums. Note: This hack will work for vBulletin Version 3.5.0 RC-1 and RC-2 ONLY! To do list...
Template Edit Alot of people want to get there icon like my screenshot. So you have bugged me enough for me to post how. Enjoy! Replace Template: forumhome_forumbit_level1_post With The Folllowing: HTML Code:
<tbody> <tr align="center"> <td class="alt1Active" colspan="2" align="$stylevar[left]" id="f$forum[forumid]"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" /></td> <td><img src="$vboptions[cleargifurl]" alt="" width="9" height="1" border="0" /></td> <td> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td>$forum[forumhomeicon]</td> <td> <div> <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a> <if condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase>)</span></if> </div> <if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if> <if condition="$show['forumsubscription']"><div class="smallfont"><strong><a href="subscription.php?$session[sessionurl]do=removesubscription&f=$forum[forumid]">$vbphrase[unsubscribe_from_this_forum]</a></strong></div></if> <if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if> </td> </tr> </table> </td> </tr> </table> </td> <td class="alt2" nowrap="nowrap">$forum[lastpostinfo]</td> <td class="alt1">$forum[threadcount]</td> <td class="alt2">$forum[replycount]</td> <if condition="$vboptions['showmoderatorcolumn']"> <td class="alt1"><div class="smallfont">$forum[moderators] </div></td> </if> </tr> </tbody> <if condition="$childforumbits"> <tbody> $childforumbits </tbody> </if> HTML Code:
<tr align="center"> <td class="alt2"><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" /></td> <td class="alt1Active" align="$stylevar[left]" id="f$forum[forumid]"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td>$forum[forumhomeicon]</td> <td> <div> <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a> <if condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase>)</span></if> </div> <if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if> <if condition="$show['forumsubscription']"><div class="smallfont"><strong><a href="subscription.php?$session[sessionurl]do=removesubscription&f=$forum[forumid]">$vbphrase[unsubscribe_from_this_forum]</a></strong></div></if> <if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if> </td> </tr> </table> </td> <td class="alt2" nowrap="nowrap">$forum[lastpostinfo]</td> <td class="alt1">$forum[threadcount]</td> <td class="alt2">$forum[replycount]</td> <if condition="$vboptions['showmoderatorcolumn']"> <td class="alt1"><div class="smallfont">$forum[moderators] </div></td> </if> </tr> $childforumbits Please read carefully and make all the necessary changes as stated. This is will work if installed properly. PLEASE REMEMBER TO BACKUP BEFORE YOU BEGIN! If you like this hack Help & Support Before asking for support Please make sure you have done all necessary changes! If you still need support please post a reply here. Please post bugs and errors here. Hope you like, feedback welcomed. Show Your Support
|
Comments |
#32
|
|||
|
|||
The query is so you can store the <img> info inside the database. In order to run querys in the Admincp you need to edit the config.php file. Change the following line:
Find: PHP Code:
PHP Code:
|
#33
|
|||
|
|||
Thanks again.
|
#34
|
|||
|
|||
The following does essentially the same thing, but is easier and quicker to install, I think...
http://www.vbulletin.com/forum/showthread.php?t=114545 |
#35
|
|||
|
|||
As stated in my other thread about that post on vb.com. I personaly like to keep things as orginaized as possiable, so there for its eaiser for me to just edit the forum info in the ADMINCP. As if you have more then one style, you would have to edit every template that contains the icon information. My way, you would just edit one field and be done.
|
#36
|
||||
|
||||
Hi,
Please bear with my noobness, as I don't always know. But couldn't one add <img> tag to the forum description? I think this is a great tutorial. Now if I could only kill the default status icons... Anyone have any ideas? |
#37
|
||||
|
||||
Quote:
|
#38
|
||||
|
||||
@Live Wire
This Hack can be implemented without File Edits in RC 1 by using Hook forumadmin_edit_form, so you might want to update it |
#39
|
|||
|
|||
lol, thanks mate. Gonna update.
|
#40
|
||||
|
||||
figures I just installed this yesterday (LOVE IT AND showed support with "INSTALL" ), next day RC1 is out... heh. I take it I have to redo this if I update to RC1?
|
#41
|
|||
|
|||
All you will have to do is import a xml file from the admincp. Working on it now/
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|