PDA

View Full Version : how to hide the button "collapse" on forum category in the main page?


ofir24
10-21-2011, 03:38 PM
how to hide the button "collapse" on forum category in the main page?
i have vbulletin 4.1.7

Lynne
10-21-2011, 04:12 PM
Perhaps...
a.collapse {display: hidden;}

ofir24
10-21-2011, 04:41 PM
a.collapse didn't found on the homepage

Lynne
10-21-2011, 05:18 PM
Huh?

ofir24
10-21-2011, 09:06 PM
i don't understand, i'm noobie, what should i do? where to go? i have no clue.

Lynne
10-21-2011, 10:32 PM
That's just some CSS. You can put it into the additional.css template.

ofir24
10-21-2011, 10:37 PM
i try to search it on the edit style-forum home templates-forum home, didn't found it , as far as i know it's supposed to be there.

nerbert
10-22-2011, 12:46 AM
To eliminate it only on the forum home page go to forumhome.css and put in

a.collapse {visibility:hidden;}

at the top. I think that will do it.

ofir24
10-22-2011, 01:17 PM
strange thing, quate from my forumhome style:
"{vb:cssfile forumbits.css,forumhome.css,widgets.css,sidebar.cs s,options.css,tagcloud.css}"
when i looking for the file "forumhome.css" on my website folder, the search can't find the file.

nerbert
10-22-2011, 02:09 PM
AdimCP > Styles & Templates > Style Manager > Edit Templates > [<<>>](expand button) > forumhome.css

ofir24
10-22-2011, 03:16 PM
AdimCP > Styles & Templates > Style Manager > Edit Templates > [<<>>](expand button) > forumhome.css

didn't find it, that's what i found "Customize Template: FORUMHOME", that's the closest.

nerbert
10-22-2011, 03:38 PM
All the css templates are in a group, so you won't find forumhome.css right after FORUMHOME. Scroll about 25% down the list.

If modifying forumhome.css doesn't change anything try forumbits.css and forumbits-ie.css

ofir24
10-22-2011, 07:41 PM
not working , never mind, i a second thought it's better that way. thanks.

Simon Lloyd
10-22-2011, 10:27 PM
You could look in the forumhome_forumbit_level1_nopost template and look for <vb:if condition="!$show['collapsable_forums']">
and replace the whole of the<tbody> tag for this<tbody id="collapseobj_forumbit_$forumid" <vb:if condition="$forumid == 1">style="display: none" <vb:else /> style="{$collapseobj_forumid}"></if></if>
$childforumbits
<vb:if condition="!$show['collapsable_forums']">
</tbody>
Don't forget to change the forum id :)

ofir24
10-23-2011, 01:18 PM
i don't familier with that program language, but i think you lil bit confuse with:
<vb:else /> --><vb:else>
</vb:else>--></if>

Simon Lloyd
10-23-2011, 03:32 PM
You're right, i don't have vb4, but all you need to do is change the IFs and ELSEs to the right format for vb4 and all will be good :)

ofir24
10-23-2011, 04:28 PM
i try it, didn't work.

Lynne
10-23-2011, 04:50 PM
You tried what? Post *exactly* what you did and what the result was or we cannot help.

ofir24
10-23-2011, 06:40 PM
i don't familier with that langauge, i try everything, the tag if / else, i switch position to all of them, didn't work, it's just show nothing, and 1 time, i don't know wich time cause i try a lot,
it work except that "$childforumbits" was where the name of the category was, i thought it may be cause i didn't change the id, which i don't know how to do that, i didn't even thing about guessing,
guessing it's not for me, i want my forum to be perfect, not some guessing which will make me lot's of problems.
if you don't know i prefer to leave that as it is.
thanks.

Simon Lloyd
10-23-2011, 06:47 PM
That code i provided (without the vb: added) worked perfect for me when i added it to my vb3.8 forum, the forum id i chose was collapsed by default!

ofir24
10-23-2011, 07:30 PM
i don't think i should put id, if i will not put id it will effect all the forums.

Simon Lloyd
10-23-2011, 08:17 PM
i don't think i should put id, if i will not put id it will effect all the forums.What are you talking about?, look it would be best if you either posted your template code complete with the code added so we can see what you have done or just abandon this thread.

ofir24
10-23-2011, 11:11 PM
<li class="forumbit_nopost {vb:raw forum.statusicon} L1" id="cat{vb:raw forum.forumid}">
<div class="forumhead foruminfo L1 collapse">
<h2>
<span class="forumtitle"><a href="{vb:link forum, {vb:raw forum}}">{vb:raw forum.title}</a></span>
<span class="forumlastpost">{vb:rawphrase last_post}</span>
<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="" title="{vb:rawphrase collapse_this_category}" /></a>
</vb:if>
</h2>

<vb:if condition="$show['forumdescription'] OR $show['subforums']">
<div class="forumrowdata">
<vb:if condition="$show['forumdescription']"><p class="subforumdescription">{vb:raw forum.description}</p></vb:if>

<vb:if condition="$show['subforums']">
<div class="subforums">
<h4 class="subforumlistlabel">{vb:rawphrase subforums}:</h4>
<ol class="subforumlist commalist">
{vb:raw forum.subforums}
</ol>
</div>
</vb:if>
</div>
</vb:if>
</div>
<vb:if condition="$childforumbits">
<ol id="c_cat{vb:raw forum.forumid}" class="childforum">
{vb:raw childforumbits}
</ol>
</vb:if>
</li>