The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Subforum Panel Details »» | |||||||||||||||||||||||||
Description. This is a Mod to make sub-forums appear in a small panel that can be toggled on and off. I just feel the Subforum Drop-down Menu mod is not enough so I have made this one. Select either one as your liking!!
Screenshot. Step 1. Open: forumhome_forumbit_level1_nopost forumhome_forumbit_level1_post forumhome_forumbit_level2_nopost forumhome_forumbit_level2_post Find: Code:
<strong>$vbphrase[subforums]</strong>: $forum[subforums] Code:
<!-- Subforum panel ---------------------------------------> <div onclick="toggleSubforumList($forum[forumid],true)" style="cursor:pointer;font-weight:bold;">$vbphrase[show_forum_list] >></div> <div id="$forum[forumid]" class="vbmenu_popup" style="display:none"> <table> <tr> <td> $forum[subforums] </td> </tr> </table> <script type="text/javascript"> <!-- if(fetch_cookie($forum[forumid]) == 'Y') { toggleSubforumList($forum[forumid],false); } // --> </script> </div> <!-- Subforum panel ---------------------------------------> forumhome_subforumbit_nopost forumhome_subforumbit_post Replace the templates with: Code:
<!-- Subforum panel ---------------------------------------> <if condition="$forum[depth] == '3'"> </if> <img class="inlineimg" src="$stylevar[imgdir_statusicon]/subforum_$forum[statusicon].gif" alt="" /> <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a> <!-- Subforum panel ---------------------------------------> forumhome_subforumseparator_nopost forumhome_subforumseparator_post Replace the templates with: Code:
<!-- Subforum panel ---------------------------------------> <br /> <!-- Subforum panel ---------------------------------------> Common Templates Add to the bottom: Code:
<script type="text/javascript"> function getItem(id) { var itm = false; if(document.getElementById) itm = document.getElementById(id); else if(document.all) itm = document.all[id]; else if(document.layers) itm = document.layers[id]; return itm; } function toggleSubforumList(id,use_cookie) { itm = getItem(id); if(!itm) return false; if(itm.style.display == 'none') { var expireDate = new Date(); expireDate.setYear(expireDate.getFullYear()+1); itm.style.display = ''; if (use_cookie) set_cookie(id,'Y',expireDate); } else { itm.style.display = 'none'; if (use_cookie) delete_cookie(id); } return false; } </script> Caution. Some cookies will be generated when using this mod. The state of on/off is kept per-browser but not per-user. Non-cookie-enabled users cannot keep the state of on/off of the forum panel. Show Your Support
|
Comments |
#12
|
|||
|
|||
I agree, can it be left open?
|
#13
|
|||
|
|||
works! installed! clicked!
also...i modified it a bit, for one of my themes.. drop down box took on a dark background..lol no biggie editted this Quote:
|
#14
|
|||
|
|||
what are common templates?
|
#15
|
||||
|
||||
work ok in 3.5.2? jsut checking before i go editing all them templates!
is possible to put all this into a product/template? |
#16
|
||||
|
||||
wow o_o
|
#17
|
|||
|
|||
Nice hack,thanks.But one question: there's a "Done but with error on pages" in the bottom of my forumhome (but not in forumdisplay).It's really bugging me with that error.Anyone with the same problem or is it just only me?
|
#18
|
|||
|
|||
I like this hack. If my forum gets to where I have a large amount of sub-forums, I may go with this. for now, I will use the columns hack.
Nice Job |
#19
|
|||
|
|||
Can you tell me
Quote:
|
#20
|
|||
|
|||
Many Thanks.It's so nice.
|
#21
|
|||
|
|||
Very nice mod. I would install this if I could control it on a per-forum and/or per-usergroup basis, and if I could turn it off and on globally. Anyone feel like expanding this?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|