The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Total members registered in showthread template
HI,
I want to show how many registered members my forum have on SHOWTHREAD template, so how do I show it ? |
#2
|
|||
|
|||
Any help for v4.2 for this ?
I guess its rightly to bump this thread.. |
#3
|
||||
|
||||
You mean this on FORUMHOME?
Members: 488,651, Active Members: 14,718 |
#4
|
|||
|
|||
Not really, I am actually looking to say something on Showthread to guest..
Join community of 40382+ members and counting .... preferably in area where we say welcome guest.... login or join ... blah blah.. |
#5
|
|||
|
|||
If you create a plugin using hook location init_startup and code like this:
Code:
$new_datastore_fetch[] = 'userstats'; The you should be able to use {vb:raw vbulletin->userstats.numbermembers} If you want the number formatted with commas, then you need another plugin. Maybe at hook showthread_complete and code like: Code:
$numbermembers = vb_number_format($vbulletin->userstats['numbermembers']); vB_Template::preRegister('SHOWTHREAD', array('numbermembers' => $numbermembers)); |
Благодарность от: | ||
mokujin |
#6
|
|||
|
|||
Thanks, though I have decent knowledge of PHP and related thing, I am almost NIL in vbcoding and template system.
Is there any quick guide etc to learn vb template and plugin system ? EDIT. Thanks, I got it working as was trying to play Add new plugin thing.. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|