View Full Version : Collapse Forum main page to not show Sub forums
Network.Larry
01-19-2011, 03:41 AM
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.
hbombers
11-08-2012, 09:12 PM
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;hos t-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>
brandondrury
01-17-2013, 03:34 AM
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.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.