PDA

View Full Version : X online users - but on anotehr page


04 Jun 2000, 14:37
What I would really like to see is a hack that allows you to see how many other members and guests there are online. But not on the same page, for example, on forumdisplay, you can have a little sentence at the top saying: X users online.

08 Jun 2000, 19:59
Can this be done? Ed?

09 Jun 2000, 12:00
It should be as simple as putting

Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

wherever you want this displayed in whatever template you want it displayed in.

Unless you don't want the names displayed, just the total head count...?

09 Jun 2000, 15:12
Yup, just want the head count.

09 Jun 2000, 15:17
Wow, didn't realize I get asked for hacks :)

Just brainstorming out loud here:

If you wanted to do an online.cgi style thing, I think you'd need to add a profile field like "lastpage" that would give the URL for the last visited page (if you wanted to do it that way)

Or you could just do a simple version that would translate the last visited time to a readable version and display it on its own page... Pretty simple actually.

My next hack maybe? :D

09 Jun 2000, 22:55
theprof, if you just want a head count and none of the cool stuff Ed mentioned...

Open index.php and go to line 139 - find this:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



and add



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



in between the $numberinvisible and eval lines. Then call $headcount from whatever template you want it displayed in.

[Edited by leah r on 06-10-2000 at 06:57 AM]

11 Jun 2000, 22:43
Prof,

Is this what you want? http://www.gandmasti.com (the ability to display a list of users on another page which is not a part of the forum software?)

I'd posted it on

http://www.vbulletin.com/forum/showthread.php?threadid=958

Shri