Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 09 Mar 2010, 07:39
netcommander netcommander is offline
 
Join Date: Dec 2004
forum/category collapse is possible ?

hello
how can I collapsed some or any forums ? is it possible ?

Best regards
Attached Images
File Type: jpg Adsız.jpg (54.2 KB, 33 views)
Reply With Quote
  #2  
Old 10 Mar 2010, 12:47
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
That could lead to problems for users who have turned off JavaScript as they will never be able to expand it.
__________________
Marco van Herwaarden
Ex vBulletin.org Coordinator
Reply With Quote
  #3  
Old 11 Mar 2010, 06:03
netcommander netcommander is offline
 
Join Date: Dec 2004
thanks for answer Marco
but its not problem i'll change for any forum. my forum home page is very crowded.
i want to simplify home page
how can I do
best regards
Reply With Quote
  #4  
Old 19 Mar 2010, 08:04
netcommander netcommander is offline
 
Join Date: Dec 2004
any body is there ?
Please help
Reply With Quote
  #5  
Old 17 May 2010, 07:12
netcommander netcommander is offline
 
Join Date: Dec 2004
i've still waiting
is there any way ?
if is it possible i've want to one link on forum homepage and i dont want user dont see to subforum ..
best regards
Reply With Quote
  #6  
Old 08 Nov 2012, 21:13
hbombers hbombers is offline
 
Join Date: Mar 2012
If you want to default forum to be collapsed by default.. here is my code to do it for VB4

(NOTE: I borrowed the cookie editing javascript from here: http://www.quirksmode.org/js/cookies.html
Also NOTE: you'll need to change the category ids for c_catxx )


<script type="text/javascript">

//document.cookie = "vbulletin_collapse=c_cat22%0Ac_cat25%0Ac_cat21;host-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_cat25%0Ac_cat21',363);
}
</script>
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 00:34.

Layout Options | Width: Wide Color: