PDA

View Full Version : Number of users on another page


JohnBradshaw
08-13-2001, 06:06 PM
Hi,

I was wondering if there is a piece of PHP code that I can use to display the number of users, and maybe the newest user, on a totaly seperate page to vbulletin?

Any ideas?

mjames
08-14-2001, 06:44 PM
Search the Released Hacks forum, I'm sure there is one released.

drives_fast
09-11-2001, 03:03 AM
I have searched the entire hacks forum and cannot find this. I am wanting to put the "$loggedinusers" on my chat thread (integrated jIRC hack/mod) using the "forumdisplay" in the new style and templates so I modified the code in the "forumhome_loggedinusers" and called it with the "$loggedinusers" but nothing shows up....well.....the number of users doesn't show up.

Any help would be appreciated on this one.

Thanks in advance...drives

Xube
03-18-2002, 10:31 PM
Originally posted by mjames
Search the Released Hacks forum, I'm sure there is one released.

I'm looking for something exactly like this myself. Anyone here seen a hack that addresses this? (Or have any of you been successful at getting your boards to show loggedinusers on some page other than the main forums page?)

:) Thanks if anyone can help or knows the location of a successful hack on this.

stark427
03-17-2003, 09:11 AM
Hello there.

I also need to find a way to put at my non-vb page, the number of registered users.

For the time being I do *not* want the online users.....
I just need the number of the registered users diplayed at that page.

I have found this hack :

https://vborg.vbsupport.ru/showthread.php?threadid=12010

but it adds too many things and I'm not sure I want that.

Could anyone give us any ideas?

thanx

stark427
03-18-2003, 06:56 PM
Ermm ok
I have never bumped a thread before... but this hack is really needed.

I mean we have here people who have awesome skills on doing hacks much more complicated than this, right?

Pretty please... :) :o

mr e
03-20-2003, 12:07 AM
if you just want the number of registered users i think you can just do


$numregistered = $DB_site->query_first("SELECT COUNT(*) FROM user WHERE userid=2");

stark427
03-20-2003, 09:34 AM
Today at 02:07 AM mr e said this in Post #7 (https://vborg.vbsupport.ru/showthread.php?postid=369682#post369682)
if you just want the number of registered users i think you can just do


$numregistered = $DB_site->query_first("SELECT COUNT(*) FROM user WHERE userid=2");


Thanx for the reply.
However I'm kinda confused about how to use this.

I mean ... the only thing I have to do is just put this code at that NON-VB page? :paranoid:

Could you elaborate please ? :)