View Full Version : Number of threads in a section
Loget
12-31-2009, 10:29 PM
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.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.