vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Hide sub-forums for some forums on main page? (https://vborg.vbsupport.ru/showthread.php?t=215636)

amjadz4 06-08-2009 09:52 AM

Hide sub-forums for some forums on main page?
 
Is there any way to hide the subforums for a particular forum on the main page FORUM HOME only? For example I have a forum with a quite lot of subforums under it. I want to hide them and make that forum look as if it does not have any subforums ( on the home page ) but when you click it...the subforums show there normally as they would do.

Thanks in advance!

amjadz4 06-12-2009 10:20 AM

Anyone?

bartek24m 01-13-2011 11:54 PM

anyone ?

BirdOPrey5 01-16-2011 11:44 PM

There are 4 templates you have to edit for each style...

forumhome_forumbit_level1_post
forumhome_forumbit_level1_nopost
forumhome_forumbit_level2_post
forumhome_forumbit_level2_nopost

In each make this edit:

Find:
Code:

<if condition="$show['subforums']">
Replace With:
Code:

<if condition="$show['subforums'] AND $forum[forumid] != X">
Replace X with the forumid of the parent forum from which you don't want to show subforums on forumhome.

Inferno Dragon 01-15-2012 09:17 PM

sorry for digging this old thread, but I was searching for something similar and found this! which will comes handy. thanks for the tip.

MarkoP 10-29-2012 03:18 AM

Quote:

Originally Posted by BirdOPrey5 (Post 2150255)
There are 4 templates you have to edit for each style...

forumhome_forumbit_level1_post
forumhome_forumbit_level1_nopost
forumhome_forumbit_level2_post
forumhome_forumbit_level2_nopost

In each make this edit:

Find:
Code:

<if condition="$show['subforums']">
Replace With:
Code:

<if condition="$show['subforums'] AND $forum[forumid] != X">
Replace X with the forumid of the parent forum from which you don't want to show subforums on forumhome.


Thank you!

Simon Lloyd 10-29-2012 07:31 AM

You don't need to code anything, in your admincp>forum listings display options change this:

Depth of Sub-Forums
If you have forums below the depth specified in the 'Depth of Forums' settings above, you can display them as sub-forum links in each forum's display area.

Set this value to 0 if you want to display no sub-forums.


To zero :)

MarkoP 10-29-2012 07:53 AM

Quote:

Originally Posted by Simon Lloyd (Post 2376765)
You don't need to code anything, in your admincp>forum listings display options change this:

Depth of Sub-Forums
If you have forums below the depth specified in the 'Depth of Forums' settings above, you can display them as sub-forum links in each forum's display area.

Set this value to 0 if you want to display no sub-forums.


To zero :)


That applies to ALL forums. We're only wanting to not display the subforums of certain forums..

Simon Lloyd 10-29-2012 07:54 AM

My apologies, still bleary eyed this morning :)

MarkoP 10-29-2012 08:17 AM

Quote:

Originally Posted by Simon Lloyd (Post 2376769)
My apologies, still bleary eyed this morning :)

Me too :)


All times are GMT. The time now is 03:02 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.01015 seconds
  • Memory Usage 1,731KB
  • 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
  • (4)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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