The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
$totalposts in header template
hi,
a noob question. how can i display $totalposts in the header template? thx |
#2
|
|||
|
|||
You could try this, using hook parse_templates:
PHP Code:
but to be honest I'm not sure if it will work on every page (or at all - I haven't tested it). |
#3
|
|||
|
|||
hi, its dosent working. it shows 0.
i saw your post here: https://vborg.vbsupport.ru/showthrea...24totalthreads and here is to much other stuff and dont know if it makes querys: http://www.vbulletin.com/forum/forum...64#post3074564 is it possible for vb 3 but its important to not have querys? |
#4
|
|||
|
|||
lol, that was a long time ago, and I just noticed that you asked about $totalposts and I gave you code that calculates total threads. If you were trying $totalposts in your template, then try this:
PHP Code:
|
#5
|
|||
|
|||
ive tested with both. your code didnt work. also tested with original vb plug-in code
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|