The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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); |
#2
|
||||
|
||||
Add
PHP Code:
|
#3
|
|||
|
|||
THAT'S what I was looking for!!! thank you very much!!!!!
|
#4
|
|||
|
|||
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!!!! |
#5
|
||||
|
||||
As above, you will need to add userstats to the special templates array for each PHP file.
|
#6
|
|||
|
|||
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 |
#7
|
||||
|
||||
That would not work, as the vBulletin file has already included global.php, and require makes it so that it is only included once.
|
#8
|
|||
|
|||
it works on FORUMHOME but it doesn't on any other VB page? can you suggest a workaround?
thanks |
#9
|
|||
|
|||
any idea? anyone? thanks!
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|