vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB5 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=262)
-   -   Sub forums? (https://vborg.vbsupport.ru/showthread.php?t=307561)

flyrib 01-27-2014 11:44 AM

Sub forums?
 
I´m looking for possibility to hide subforums on the index page and I´d like them to be visible when entering the main forum.
Both in vB4 and vB3 it has this solution, but where do I find it here?

thank you very much in advance

Lynne 01-27-2014 06:33 PM

Template edit to display_Forums_list

change this line:
HTML Code:

<vb:if condition="!empty($forum['subchannels']) ">
to this:
HTML Code:

<vb:if condition="!empty($forum['subchannels']) and $root <> 2">
If that doesn't work, then at the top of the template, add this line to find out what your $root is and then you can delete it after you get the number:

HTML Code:

root = {vb:raw root}

flyrib 01-27-2014 08:09 PM

thank you very much Lynne, will try this.

--------------- Added [DATE]1390930000[/DATE] at [TIME]1390930000[/TIME] ---------------

Thanks again Lynne, the first replacement worked perfect!!


All times are GMT. The time now is 11:50 PM.

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.01010 seconds
  • Memory Usage 1,708KB
  • 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
  • (3)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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