View Full Version : Make forums non-collapsible?
SPEEDKILLZ
10-22-2013, 05:28 AM
Is there a way to make the forums non collapsible? as well as the sideblock?
ozzy47
10-22-2013, 09:18 AM
In the template, forumhome_forumbit_level1_nopost find this bit of code.
<vb:if condition="!$show['collapsable_forums']">
<a class="collapse" id="collapse_c_cat{vb:raw forum.forumid}" href="{vb:raw relpath}#top"><img src="{vb:stylevar imgdir_button}/collapse_40b.png" alt="" /></a>
</vb:if>
Change it to this.
<vb:comment><vb:if condition="!$show['collapsable_forums']">
<a class="collapse" id="collapse_c_cat{vb:raw forum.forumid}" href="{vb:raw relpath}#top"><img src="{vb:stylevar imgdir_button}/collapse_40b.png" alt="" /></a>
</vb:if></vb:comment>
SPEEDKILLZ
10-22-2013, 05:07 PM
worked great for forums ozzy. anyway to do it on shoutbox and sidebar/blocks?
ozzy47
10-22-2013, 07:14 PM
Now you are asking for waaay to much. :p
Undo the previous template edit, and add this to your additional.css
/* Start remove collapse */
.blocksubhead img
{
display: none;
}
.blockhead img
{
display: none;
}
.forumbit_nopost .forumhead a.collapse img
{
display: none;
}
/* End remove collapse */
That way it takes care of all you want, and is safe from upgrades.
SPEEDKILLZ
10-22-2013, 08:12 PM
LOL thanks, that took care of everything except side bar
ozzy47
10-22-2013, 09:41 PM
The sideblocks in the forumhome, it should have. Unless they are custom ones?
SPEEDKILLZ
10-22-2013, 10:25 PM
They could be part of the new theme? What if i just delete the button image?
ozzy47
10-22-2013, 10:38 PM
No it looks the same as a regular style, so in theory the code should work.
Maybe it coded in a different way, you could try deleting the img and see what happens, but I think that would cause issues with the page trying to load them.
--------------- Added 1382485375 at 1382485375 ---------------
Lets try this way, add this in the previous code.
#sidebar_container a.collapse
{
display: none;
}
SPEEDKILLZ
10-22-2013, 11:05 PM
That did it for the collapse. But the arrow is still there.
Did i mention your a beast :D
ozzy47
10-22-2013, 11:15 PM
Ok that one too, add this to the above code.
#sidebar_button
{
display: none;
}
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.