![]() |
HELP - $vbulletin->userstats['numbermembers'] on non VB page
hello,
can someone tell me how I can get $vbulletin->userstats['numbermembers'] to show on a non VB page? I already have the following setup to get other info like userid, etc. however, I'm not able to get this particular figure. thanks in advance $curdir = getcwd (); chdir('forums'); require_once('global.php'); chdir ($curdir); |
Add
PHP Code:
|
THAT'S what I was looking for!!! thank you very much!!!!!
|
ok I need a bit more help here....as you might have guessed, $vbulletin->userstats['numbermembers'] is located in a common section of my website: the header. It does show total numbers of members on non VB pages no problem. it also works on index.php i.e.: FORUMHOME template. However, it does NOT show anything on any other VB page. can you suggest a fix? I need $vbulletin->userstats['numbermembers'] to work on ALL VB and NON VB pages, as it's located in the header.
thank you very much!!!! |
As above, you will need to add userstats to the special templates array for each PHP file.
|
hello,
I already did that. I have $specialtemplates = array('userstats'); require_once('global.php'); at the very top of an inc_common.php file which is included sitewide before the header. on VB pages, this is included creating a plug-in and referencing that. again, it works on FORUMHOME template, but not on other VB pages. thanks |
That would not work, as the vBulletin file has already included global.php, and require makes it so that it is only included once.
|
it works on FORUMHOME but it doesn't on any other VB page? can you suggest a workaround?
thanks |
any idea? anyone? thanks!
|
All times are GMT. The time now is 07:09 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|