Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 07 Jun 2012, 14:55
rguan rguan is offline
 
Join Date: Sep 2011
Question 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
Reply With Quote
  #2  
Old 10 Jun 2012, 05:33
rguan rguan is offline
 
Join Date: Sep 2011
Anyone can help on this?
Reply With Quote
  #3  
Old 10 Jun 2012, 09:31
kh99's Avatar
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
You could connect to the vb database and execute this query:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


The result will be one record where the 'data' column is a serialized array with 4 values: numbermembers, activermembers, newusername, and newuserid.
__________________
Please don't PM me - post your questions in the appropriate forum.
Please don't PM me to ask me to read your thread.
Reply With Quote
  #4  
Old 10 Jun 2012, 09:43
rguan rguan is offline
 
Join Date: Sep 2011
Thanks for reply, could you give a full code solution?
Reply With Quote
  #5  
Old 10 Jun 2012, 09:48
kh99's Avatar
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
Do your custom pages use vbulletin code at all?
__________________
Please don't PM me - post your questions in the appropriate forum.
Please don't PM me to ask me to read your thread.
Reply With Quote
  #6  
Old 10 Jun 2012, 09:52
rguan rguan is offline
 
Join Date: Sep 2011
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...
Reply With Quote
  #7  
Old 10 Jun 2012, 10:04
kh99's Avatar
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
Well, one thing you could do is to do something like in this article: http://www.vbulletin.org/forum/showthread.php?t=228112 . Then if you were to change the $specialtemplates line like this:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


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?
__________________
Please don't PM me - post your questions in the appropriate forum.
Please don't PM me to ask me to read your thread.
Reply With Quote
  #8  
Old 10 Jun 2012, 10:22
rguan rguan is offline
 
Join Date: Sep 2011
"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 :-)
Reply With Quote
  #9  
Old 10 Jun 2012, 10:23
kh99's Avatar
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
Please don't PM me - post your questions in the appropriate forum.
Please don't PM me to ask me to read your thread.

Last edited by kh99 : 10 Jun 2012 at 10:50.
Reply With Quote
Reply


Similar Threads
Thread Thread Starter Forum Replies Last Post
Total members registered TODAY 1.0 (Forumhome) psico vBulletin 2.x Full Releases 47 02 Feb 2004 01:29

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 18:59.

Layout Options | Width: Wide Color: