vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=253)
-   -   How to determine subcategory in vBulletin (https://vborg.vbsupport.ru/showthread.php?t=259830)

SiteTalkZone 03-04-2011 07:33 AM

How to determine subcategory in vBulletin
 
I create a structure forum on my host as following:

Code:

1. Main Category
          1.1 - Forum
                    1.1.1 - Forum
                    1.1.2 - Category
          1.2 - Category
                    1.2.1 - Forum
                    1.2.2 - Category

When I display the forum, icon of category and icon of forum is same as together.

I found and customize template for displaying forum and use bit cancontainthreads: $foruminfo[cancontainthreads] to check which forum is act as forum or act as category.

However, it seems to effect to level 1.1 & 1.2 (in above structure).
I tried to edit icon's link in forumhome_subforumbit_nopost (for category) and forumhome_subforumbit_post (for forum) but it's nothing to change.

So how to determine which sub-forum (level 1.1.1, 1.1.2, 1.2.1, 1.2.2) is act as forum or act as category.


Thanks!

Attitude5ire 03-05-2011 11:23 AM

When you make Add a Forum, there is an option where it says act as a category,
Ideally you should set those forums as categories which wont have text in them but they act as seprators for different categories.

I think for your structure.. Use

1. Main Category
- 1.1 Primary Main Forum
- 1.2 Secondary Main Forum

2. Second Category
- 2.1 Forum
- 2.2 Forum 2


All times are GMT. The time now is 01:11 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.01022 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
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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