View Full Version : Forum collasped on default?
Boofo
09-18-2005, 08:56 PM
Is there a way to have a forum be collasped as default instead of not collasped?
Marco van Herwaarden
09-19-2005, 03:56 AM
Better not. Users who don't have JavaScript enabled, would not be able to open the forums.
Boofo
09-19-2005, 04:58 AM
I don't want to use it on any forums. I have a hack I am making I was to use it on for me. I just want it to work like the forums do. ;)
Marco van Herwaarden
09-19-2005, 09:13 AM
Then just edit the template to make it collapsed by deafult.
Boofo
09-19-2005, 04:42 PM
If I knew how to do that I would have already done it by now and not needed this thread. LOL
Marco van Herwaarden
09-19-2005, 06:17 PM
In hook: forumbit_display
Put the following code, and play a bit with togling the collapse values.
global $depth, $tempext, $collapseobj_forumid , $collapseimg_forumid, $show;
if ($depth == 1 AND $tempext == '_nopost')
{
global $vbcollapse;
$collapseobj_forumid =& $vbcollapse["collapseobj_forumbit_$forumid"];
$collapseimg_forumid =& $vbcollapse["collapseimg_forumbit_$forumid"];
$show['collapsebutton'] = true;
}
Boofo
09-19-2005, 06:31 PM
That won't do me any good, but thank you, anyway. ;)
I'm trying to make a box collaspe that is not on the forums lsiting. That's why I was hoping to be able to do it in the template, but I tried for hours to get the collaspe code in the template to work right for it and had no luck. ;)
Marco van Herwaarden
09-19-2005, 06:34 PM
It is very easy, but you must use the correct prefixes for the collapsable ID and image.
Marco van Herwaarden
09-19-2005, 06:34 PM
PS You asked how to make a forum collapsed by default.
Boofo
09-19-2005, 09:15 PM
PS You asked how to make a forum collapsed by default.
Yes and in my second post I explained what I was asking for. I figured I could follow whatever way they did it for forums and use it elsewhere. ;)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.