"Number of Visitors Online" script?

They have: 81 posts

Joined: Jun 1999

I'd love to know of any script that would do this. Does anyone have any idea?

It looks to me like it tells the visitor how many other people are currently at the site and how long they've been there?
http://www.poserforum.com/index.ez

------------------
Yours digitally,
Suzanna

They have: 166 posts

Joined: Jan 2000

Suzanne,

I think somebody that frequents these forums has a script like that on their page. I'll eagerly sit here with you until someone posts the script.

(Not that any of the pages that I do attract such large numbers of visitors at once, I just want to know how it's done)

John

interwovendesign.com
Quality web site design without the monthly maintenance fees!

They have: 31 posts

Joined: Dec 1999

I believe that you need a webserver supporting ASP. I am not sure if it can be done with PHP (I guess it can, though).

Unfortunately It seems that I cannot find the scipt in my hd...anyway...go to http://www.aspin.com and check the tutorials.

This script actually counts how many Application Sessions are active.

Coddy

They have: 152 posts

Joined: Dec 1999

I don't know of an actual script, but I'll tell you HumanClick is one of the best programs around that deals with web site interactivity. It will tell you who is online and on your web site and you can chat with them without them having to download anything. Go to http://www.humanclick.com and get it. It's great!

------------------
-RJ D'Angelo
http://www.dangelowebdesign.com
http://sopranos.virtualave.net
AOL: dangelofly
AIM: flying cow 1016
Email: [email protected]

They have: 81 posts

Joined: Jun 1999

Thanks folks, I'll check the aspin site, Coddy, looks like a bunch of good stuff there. And I d/l Human Click, btw. Boy, am I in for an education. One thing though, I cannot get my sound to work, so I can "hear" when someone comes into my site. But it sure is a fantastic tool ... highly recommend it, folks. Thanks so much, dangelo.

Any suggestions? No, my sound isn't muted. Yes, everything is plugged in correctly. No, I cannot hear any CD music either. But in Windows media player, I can hear .wav files. Whatz up with this now? (Unfortunately, I haven't had my speakers plugged in for quite some time. Didn't realize I had a problem.) Sigh.

------------------
Yours digitally,
Suzanna

They have: 296 posts

Joined: Sep 1999

SuzzanaNet

sounds like your CD Audio cable has not been plugged in to your soundcard. If you feel safe taking the lid off your PC check that there is a thin grey cable going from your CD Rom to your soundcard. If not then that is your problem. If Wav files work audio cd's would work too so its not a driver issue though it could be muted

~Vy~

They have: 81 posts

Joined: Jun 1999

Thanks vy22,

I'll pop the ole cover (not a fav thing of mine to do) and check it out. I had a friend install a CD writer a couple months ago, after that I didn't hook the sound back up. Now that I did, I cannot hear any sound from either CD ROM drive nor any ICQ uh-ohs or HumanClick opening doors. The only way I can hear sound is if I double-click on the wav file and it opens into Windows Media Player.

I realize this isn't the place to discuss this. Are there any boards (including but not limited to this one) that are "good", have high traffic, and deal with hardware issues? TIA! Will let you know the outcome ...

------------------
Yours digitally,
Suzanna
www.digitalwebgold.com
www.digitalaffects.com
www.suzanna.net

Peter J. Boettcher's picture

They have: 812 posts

Joined: Feb 2000

Suzanne,

Insert this into the global.asa

Sub Application_OnStart
Application("CountUsers") = 0
End Sub

Sub Session_OnStart
Session.Timeout = 15
Application.Lock
Application("CountUsers") = Application("CountUsers") + 1
Application.Unlock
End Sub

Sub Session_OnEnd
Application.Lock
Application("CountUsers") = Application("CountUsers") - 1
Application.Unlock
End Sub

Then insert this into the ASP page where you want to see how many people are on your site.

<%=Application("CountUsers")%>

DISCLAIMER:

Be very, very careful when working in the global.asa file, one wrong move and your site could be inaccessible.

Regards,
Peter J. Boettcher

PJ | Are we there yet?
pjboettcher.com

They have: 231 posts

Joined: Feb 2000

This topic was covered a while back and I think it is possible to do with PHP & PERL as well. You might find it in the CGI & PERL forum.

Peter B: Could you tell me what the lines "Application.Lock" & "Application.Unlock" do in your code? Do you need them for the script to work?

:: Lloyd Hassell :: http://www14.brinkster.com/lloydh ::

Peter J. Boettcher's picture

They have: 812 posts

Joined: Feb 2000

Lloyd,

Because the application object is shared between all visitors it should be locked when a change is made and then unlocked when finished. This keeps the number accurate.

It's sort of like 2 users trying to update the same database record, you'll get bad results.

Regards,
Peter J. Boettcher

PJ | Are we there yet?
pjboettcher.com

They have: 231 posts

Joined: Feb 2000

Peter,

Thanks for your info. I guess you would only see bad results if you had heavy traffic. Do you code ASP in VB ot JS?

Peter J. Boettcher's picture

They have: 812 posts

Joined: Feb 2000

Lloyd,

You're right, the script would work without locking the application, but the results wouldn't be reliable.

I do all my ASP in VBScript, simply because I find doing IF Else End Statements easier to do (and keep track of) than if(){ else } etc.

Keeping track of nested tables is one thing, but keeping track of nested tables AND nested If Else statements, now that's a party!

Regards,
Peter J. Boettcher

PJ | Are we there yet?
pjboettcher.com

They have: 52 posts

Joined: Nov 1999

Greetings,

I'm kinda new to JS and I've been trying to find the solution to the problem below for several hours now. My question is how can i convert the variable integer into a string?

Thanks in advance
Boris http://echodev.com/

http://EchoWebHQ.com
WIN cash, free web hosting and up to 50,000 button exposures at http://echodev.com/contest/ in less than 60 seconds. EVERYONE IS A WINNER (seriously)!

They have: 231 posts

Joined: Feb 2000

Peter,
I don't find it too hard keeping track of nested if/else statements in JS. You just have to develop a strong coding technique. I have a little ASP exp. and I have always coded in JS. I find this hard though because all ASP tutorials are written in VB.

echoweb,
See your discussion.

:: Lloyd Hassell :: http://www14.brinkster.com/lloydh ::

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.