Java Script - 'current users online'

They have: 5,633 posts

Joined: Jan 1970

does anybody have a script they can share for 'current users online' sort of like what vbulletin uses here in the 'whos online' but just for another page of my site with no vbulletin.

TIA

Rick
http://www.decodernews.com

dk01's picture

He has: 516 posts

Joined: Mar 2002

I am guessing that you mean Java code? If you meant Javascript then you must be mistaken because javascript is a language that runs on the users computer's browser and is not actually parsed by the server. If you mean Java code (ie .jsp) then I'm sorry but i won't be any help.
-dk

Abhishek Reddy's picture

He has: 3,348 posts

Joined: Jul 2001

Yes, vB uses a server-side language (PHP). It'd be possible to make your script using any of PHP, ASP, CGI/Perl, JSP and what not... Wink

Try hotscripts.com and sourceforge.net for server-side scripts.

They have: 5,633 posts

Joined: Jan 1970

Quote: Originally posted by dk01
I am guessing that you mean Java code? If you meant Javascript then you must be mistaken because javascript is a language that runs on the users computer's browser and is not actually parsed by the server. If you mean Java code (ie .jsp) then I'm sorry but i won't be any help.
-dk

I guess thats what I mean, never been formally trained in this stuff, just learn as I go.

They have: 5,633 posts

Joined: Jan 1970

Quote: Originally posted by Abhishek Reddy
Yes, vB uses a server-side language (PHP). It'd be possible to make your script using any of PHP, ASP, CGI/Perl, JSP and what not... Wink

Try hotscripts.com and sourceforge.net for server-side scripts.

thanks, i'll check those links!

They have: 5,633 posts

Joined: Jan 1970

sorry for sounding stupid, but I cant write scripts, can anyone give me a simple script that calculates 'online users' preferbly a java code, since I wouldnt know how to install anything else? I've searched the freeware sites and havent found anything.

Regards

Rick

Abhishek Reddy's picture

He has: 3,348 posts

Joined: Jul 2001

Are you already using some sort of member control system (forums, registration/member database)? If you do, then it'd be a good idea to stick to whatever language that scipt is written in so it'll be easier to integrate with.

Or do you just want to show how many users (incl. guests) are active?

Smiling

They have: 5,633 posts

Joined: Jan 1970

yes, i'm using vbulletin for my forum, but I just want to add a 'current online' from the users on the rest of the site (ie. the home page) to that.

Abhishek Reddy's picture

He has: 3,348 posts

Joined: Jul 2001

Check out this hack: http://www.vbulletin.org/hacks/index.php?action=showhack&hackid=94

It allows you to show who is online on a page outsite your BB.

If you need help setting up the hack, you can register with vbulletin.org and use the (official) support thread (link is on the hack page).
I have'nt installed the hack, so I don't know if there's a help file with it.
'Course we'd be glad to help you at TWF too. Wink

They have: 5,633 posts

Joined: Jan 1970

cool! Thanks man, i'll check it out!

You guys are a great help here Smiling

They have: 5,633 posts

Joined: Jan 1970

unfortunately i cant download that hack Sad

Abhishek Reddy's picture

He has: 3,348 posts

Joined: Jul 2001

Why not? Confused

They have: 5,633 posts

Joined: Jan 1970

its asking for a 'membership'. I'm not a member there. And It wont let me join

If you can email it to [email protected] I'd appreciate it. Wink

Thanks

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

If you have a registered copy of vbulletin, you have access. If you don't, is your copy legal?

They have: 5,633 posts

Joined: Jan 1970

of course its legal, i just dont know how to join, can you send me the file?

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

no.

They have: 5,633 posts

Joined: Jan 1970

wow...thanks for nothing!

Not sure what the problem is with my request, but you could be a little nicer...

Abhishek Reddy's picture

He has: 3,348 posts

Joined: Jul 2001

I don't see why you can't register. I don't even use or own vB but I could register there...

There must be a reason why that board won't let you get the hack without you having to register. I think you should respect that and get the code the way you should. Wink

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

Quote: Originally posted by decoder
wow...thanks for nothing!

Not sure what the problem is with my request, but you could be a little nicer...

The problem with the request is that it is asking me to bypass the rules of a forum for your benefit.

You asked. I answered. I could put it a lot more rudely, but I thought a simple no would suffice.

They have: 5,633 posts

Joined: Jan 1970

Quote: Originally posted by Suzanne

it is asking me to bypass the rules of a forum for your benefit.

i heard that you could be locked up for that:D

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

*rolling eyes*

nike_guy_man's picture

They have: 840 posts

Joined: Sep 2000

Wow that was a pretty evil response, Suzanne...
If people are signing in, you could have the signin script write to a file or DB, then when they sign out, the names could be removed...
the 'who is online' part would read from that file or DB and print the results... simple it seems
You could also use sessions in PHP
Just some ideas...

Laughing out loud

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

evil?

Because I won't steal something that he could get legitimately?

Some curious reasoning you have there.

They have: 5,633 posts

Joined: Jan 1970

hi nike_guy, thanks for the constructive advice. I just wish I knew how to write scripts, looking for a ready-made one. Wink

suzanne, 'steal something'!?!?! wow, you really have quite the imagination...lol:D I never asked you to steal anything, simply asked for a file, not sure why you are reacting like this.Roll eyes

nike_guy_man's picture

They have: 840 posts

Joined: Sep 2000

Decoder... I'd be glad to write this for you... send me an email or an IM and we can talk... [email protected] ymessenger: nga_president AIM: PaInMD87 ICQ: 44907087

Suzanne: He didn't ask you to steal anything... and by evil response I meant that you just said 'no' you didn't even give a reason... I didn't mean any offense but I just thought that your response was rude

Laughing out loud

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

If he has vbulletin, he should have access to the hacks from vbulletin. So yes, asking me to go get them for him, and email him, is asking me to steal. He was given a number of suggestions for getting the information himself.

As for being rude? If that's how you see it, that's your perogative. I prefer to think of it as being direct. Too many people allow themselves to be cajoled into doing things against their best interests because they cannot say no without having a raft of excuses behind it.

No means what it means. Can you do this for me? No.

End of story.

They have: 5,633 posts

Joined: Jan 1970

suzanne, your pm box is full

They have: 5,633 posts

Joined: Jan 1970

Quote: Originally posted by nike_guy_man
Decoder... I'd be glad to write this for you... send me an email or an IM and we can talk... [email protected] ymessenger: nga_president AIM: PaInMD87 ICQ: 44907087

Suzanne: He didn't ask you to steal anything... and by evil response I meant that you just said 'no' you didn't even give a reason... I didn't mean any offense but I just thought that your response was rude

YGM Laughing out loud

nike_guy_man's picture

They have: 840 posts

Joined: Sep 2000

Quote:
YGM:D

Whats that?
Anyways, just contact me somehow and I'll help you out

Mark Hensler's picture

He has: 4,048 posts

Joined: Aug 2000

Sorry I didn't catch this sooner...

I sent an email to [email protected] with his url. If it is an illegal copy, they'll take care of it.

If you want any support for vBulletin, decoder, you'll have to inquire at http://www.vbulletin.com or http://www.vbulletin.org. We cannot provide support for this software, and certainly not distribute files.

Thread Closed.

Mark Hensler
If there is no answer on Google, then there is no question.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.