vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Need to modify category widget (https://vborg.vbsupport.ru/showthread.php?t=287036)

bryanb 08-24-2012 04:01 PM

Need to modify category widget
 
I have quite a number of categories, and many have subcategories. I've created a categories widget that is specific to a section of the CMS. The problem that I am having is that all of the categories are being displayed without differentiating from the subcategories, for example - I have categories with subcategories like so:

Trucks
>Fords
>Chevys
>Nissan
>Dodge

When it's displayed it looks like this:

Chevys (10)
Dodge (7)
Fords (3)
Nissan (2)
Trucks (0)

I was hoping that the main categories would not have a number next to them (if they have subcategories) and expand to the subcategory list. I can't figure out how to make the categories more intuitive. At the moment, visitors would think there are 0 articles that have to do with trucks. There really shouldn't be a number there at all. And the subcategories ought to be listed together.

I posted this at the .com site, and they suggested that I edit one of the php files located here: packages\vbcms\widget\categorynav etc.

Could someone help out with the coding? I'm really not sure what to change. Thanks!

bryanb 08-28-2012 06:33 PM

Any assistance here will be greatly appreciated. Thanks!

bryanb 08-31-2012 12:13 PM

Anyone?


All times are GMT. The time now is 05:10 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.01028 seconds
  • Memory Usage 1,706KB
  • 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)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