vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Display Subforum Links on a Per Forum Basis (https://vborg.vbsupport.ru/showthread.php?t=113804)

kennn 04-23-2006 01:44 AM

Display Subforum Links on a Per Forum Basis
 
Is there a way to display subforum links on the forum home page on a per forum basis?

I would like to have subforum links displayed (by setting subforum display to 1) but I have one Archives forum that has nothing but subforums - a lot of them - and the forum home page looks like hell when subforum links are turned on.

Is there any way to turn on subforum links for all the other forums but leave them off for that one Archives forum?

Thanks!

Arngrim 07-30-2006 03:57 AM

I'd be quite interested in something like this as well; I usually have a couple of sub-forums per Forum, but nothing over the top. Though there are two distinct areas with a lot of them, where the place would look rather messy if they were displayed. If something like this already exists, a push in the right direction would be helpful. Here's hoping someone can do this.

SiriusBlack22 07-30-2006 04:44 AM

You could do it manually, as is what I do.

PHP Code:

<a href="URL">[title of sub forum]</a> | <a href="URL">[title of sub forum]</a> | <a href="URL">[title of sub forum]</a

Do something like that maybe?

kennn 07-30-2006 03:33 PM

Hi Arngrim...this is what I ended up using...

In the forumhome_forumbit_level2_post template, locate the existing line of code that displays subforums

Code:

<if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
...and change it to this:

Code:

<if condition="$show['subforums'] AND $forum[forumid] != 35 AND $forum[forumid] != 58"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
Note the "35" and "58" are the ID numbers of the forums I wanted no subforums to display on; you'll have to replace those IDs with the numbers of your specific forums where you want subforum links turned off. You can string more "AND $forum[forumid] !=XX" in the condition to exclude more than two forums if you need to. It works like a charm.


All times are GMT. The time now is 09:34 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.01572 seconds
  • Memory Usage 1,723KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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