vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Number of threads in a section (https://vborg.vbsupport.ru/showthread.php?t=231787)

Loget 12-31-2009 10:29 PM

Number of threads in a section
 
Hello,

I was wondering whether anyone could tell me what the code is to show the number of threads for a specific section.

Thanks.

Lynne 01-01-2010 02:55 PM

What do you mean 'the code'. The variable used is $vbulletin->options['maxthreads']. You can search the files for "maxthreads" and I'm sure you'll find how it's used.

Loget 01-01-2010 03:39 PM

Hey,

I thought maybe there was a 'code' to show how many threads in a specific section.
It's hard to explain but let's say I have a ''Post reports'' section and the amount of threads which are created in that section will show up under Private messages.

So something like this;

Private messages
Post Reports (XX)

XX - The number of threads in that section.

Would you know how to do it? Post reports was an example only.

Lynne 01-01-2010 05:27 PM

I'm sorry, but I don't understand what you are trying to do.... you want the total number of threads for a section? Like what shows up on the index.php page? The code for that is on the bottom of the index.php file.

Loget 01-01-2010 05:35 PM

Hey,

Yes I want the total number of threads for a section, but I'd like to know whether I could put the total number of threads for a section below the private messages bit.

For example;
If the total number of threads are 50 in X section and I want the total number of threads in that section to show below Private messages like this;

Private Messages
Section Name (Number of total threads)

I hope you understand!

Lynne 01-01-2010 07:54 PM

Private Messages up in the header? An image always helps to show this stuff.

You can put it up there but you will need to write a plugin to get the total number of threads in that section. The code you will want to add is going to be *based* on what is on the bottom of the index.php page - that way you may use the forumcache and not to a query.


All times are GMT. The time now is 06:59 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.01020 seconds
  • Memory Usage 1,713KB
  • 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
  • (6)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