![]() |
Is there a way to show total registered members outside VB?
Hello everyone,
I'm running my business site with custom PHP pages + vBulletin 3.8.7, I want to display the vBulletin total registered members on my custom PHP homepage, is there a way to implement this? This is my first thread on vb.org... hope I can get solutions from some great guys! :-) Thanks a lot! Roy |
Anyone can help on this?
|
You could connect to the vb database and execute this query:
Code:
SELECT * FROM datastore WHERE title='userstats' The result will be one record where the 'data' column is a serialized array with 4 values: numbermembers, activermembers, newusername, and newuserid. |
Thanks for reply, could you give a full code solution?
|
Do your custom pages use vbulletin code at all?
|
Nope. Actually it's a blank PHP page... that's why I find it hard to work out...
Could you help on this? MANY MANY thanks... |
Well, one thing you could do is to do something like in this article: https://vborg.vbsupport.ru/showthread.php?t=228112 . Then if you were to change the $specialtemplates line like this:
Code:
$specialtemplates = array('userstats'); you should be able to use $vbulletin->userstats in the custom code. But that's a lot of overhead if all you want is those two numbers. You say the page is blank - what is the page for? What else will be on the page when you're done? |
"Blank" actually means it has nothing to do with VB initially... It looks like I have to do a lot of custom coding to get the "active members"...
Anyway, thanks a lot for your kind responses :-) |
I don't think it's that much, I was just trying to understand what the situation is. Give me a few minutes...
OK, hopefully this helps: PHP Code:
|
All times are GMT. The time now is 01:13 PM. |
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:
|