vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Displaying main categories only. (https://vborg.vbsupport.ru/showthread.php?t=190558)

milonguero 09-10-2008 01:30 PM

Displaying main categories only.
 
I want to display a list of main forum categories as html links. Not like forumjump listbox. How can I do that?

Lynne 09-10-2008 02:10 PM

If you just want them as plain html links, then just:

HTML Code:

<a href="/forums/forumdisplay.php?f=xx">Forum Name</a>
Is that what you are asking? :confused:

milonguero 09-10-2008 05:48 PM

I want them as plain html links but I want the links to be generated automatically.

(Also post counts for each category would be nice)

Guest190829 09-10-2008 06:14 PM

You're going to need some knowledge of SQL and PHP to do this, you could probably use the forum cache as a way to calculate the total post count of each categories...but it all depends where you want this data.

Lynne 09-10-2008 06:33 PM

As Danny said, you'll have to write some code for that. There are so many factors that would go into which categories to grab - do you need to worry about permissions, order, only top level categories or all, etc. You could use the datamanager/datacache (which I don't know how to do), but you have to define exactly what variables you want to consider when spitting them out.

milonguero 09-10-2008 06:48 PM

I tried to use forumjump variables but they don't work on forumhome.
I searched the addon forum. It seems that there are no addons for this.

Lynne 09-10-2008 06:57 PM

There is an add-on to add a forumjump menu to the navbar. That code may help you out.

Navbar Forumjump- Adds a DHTML "Forum Jump" menu to your Navbar

milonguero 09-10-2008 08:15 PM

Thanks but this addon doesn't work on version 3.7.3

Collapsible navbar menu function works but table menu doesn't work.


All times are GMT. The time now is 11:01 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.01108 seconds
  • Memory Usage 1,721KB
  • 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_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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