The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Collapse Forum main page to not show Sub forums
For some reason all of a sudden my Sub Forums are expanded when I click in the main Forum. Not all the posts in them but as I will have 10 or so Forums with 5 to 10 Subs under each one I would like it to be collapsed to just show the primary list of Forums like it is on this site.
|
#2
|
|||
|
|||
Larry, I added this to my header file and it worked for VB4
<script type="text/javascript"> //document.cookie = "vbulletin_collapse=c_cat22%0Ac_cat25%0Ac_cat21;ho st-only=true"; function createCookie(name,value,days) { if (days) { var date = new Date(); date.setTime(date.getTime()+(days*24*60*60*1000)); var expires = "; expires="+date.toGMTString(); } else var expires = ""; document.cookie = name+"="+value+expires+"; path=/"; } function readCookie(name) { var nameEQ = name + "="; var ca = document.cookie.split(';'); for(var i=0;i < ca.length;i++) { var c = ca[i]; while (c.charAt(0)==' ') c = c.substring(1,c.length); if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); } return null; } function eraseCookie(name) { createCookie(name,"",-1); } var vbc = readCookie('vbulletin_collapse') if (vbc) { } else { createCookie('vbulletin_collapse','c_cat22%0Ac_cat 25%0Ac_cat21',363); } </script> |
#3
|
|||
|
|||
While I'm not much help here, I do know there is a setting in Settings > Options that allows you to control how many levels of subforums you want fully displayed on the mainforum page. I wish I could remember which menu it was under.
That's a clue at least. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|