The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Query for forum(s) thread count
I would like to display the thread count for one or more forums in my "Articles" page which is a modified "showgroups" page (3.6.x).
Currently the number assigned to "Available Articles:" is hand coded and I'm trying to automate the process. I'm would also like to display the number of threads in each forum next to the respective category. Does anyone know what query(s) I could use to do this? Thank you for any help you can offer. |
#2
|
||||
|
||||
Quote:
PHP Code:
|
#3
|
||||
|
||||
Quote:
I tried adding this code to the template without success: {$vbulletin->forumcache[$forumid == 167][threadcount]} |
#4
|
||||
|
||||
Quote:
$vbulletin->forumcache[167][threadcount] I used $forumid because I assumed you were using some kind of template_bit to generate the forum links. |
#5
|
||||
|
||||
When I past that code into the template this is the output: Array[167][threadcount]
|
#6
|
||||
|
||||
Probably need to play around with quotes and braces
30 seconds with google later, I found this... https://vborg.vbsupport.ru/showthread.php?t=98009 Code:
Object-Type" Variables ($vbulletin->GPC['somevar']). Do use single quotes, but wrap such variables into figure brackets. One valid example is {$vbulletin->GPC['somevar']}. If you attempt using $vbulletin->GPC['somevar'] or $vbulletin->GPC[somevar], you will get an error |
#7
|
||||
|
||||
Thank you for your help. I do appreciate it.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|