vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   how to hide the button "collapse" on forum category in the main page? (https://vborg.vbsupport.ru/showthread.php?t=272491)

ofir24 10-21-2011 03:38 PM

how to hide the button "collapse" on forum category in the main page?
 
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...
HTML Code:

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

Quote:

Originally Posted by nerbert (Post 2260155)
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
Quote:

<vb:if condition="!$show['collapsable_forums']">
and replace the whole of the<tbody> tag for this
Quote:

<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

Quote:

Originally Posted by ofir24 (Post 2260648)
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>


All times are GMT. The time now is 08:07 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01266 seconds
  • Memory Usage 1,758KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_html_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (23)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete