The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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. |
#2
|
||||
|
||||
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.
|
#3
|
|||
|
|||
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. |
#4
|
||||
|
||||
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.
|
#5
|
|||
|
|||
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! |
#6
|
||||
|
||||
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. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|