The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
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 |
#2
|
|||
|
|||
![]()
Anyone can help on this?
|
#3
|
|||
|
|||
![]()
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. |
#4
|
|||
|
|||
![]()
Thanks for reply, could you give a full code solution?
|
#5
|
|||
|
|||
![]()
Do your custom pages use vbulletin code at all?
|
#6
|
|||
|
|||
![]()
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... |
#7
|
|||
|
|||
![]()
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? |
#8
|
|||
|
|||
![]()
"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 :-) |
#9
|
|||
|
|||
![]()
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:
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|