Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 Active Users Lite Code Question
 New Topic  Topic Locked
 Printer Friendly
Previous Page | Next Page
Author Previous Topic Topic Next Topic
Page: of 4

NiteOwl
Junior Member

Canada
403 Posts

Posted - 28 September 2003 :  21:17:38  Show Profile  Visit NiteOwl's Homepage
Are you kidding, this is great, I have learned a lot and it is peaking an interest. Not sure if that is good or bad! grin

Is it ok to leave this line the way it is?

Sub Session_OnStart
Session.Timeout = 20 '## minutes
Session("Start") = DateAdd("h",3,Now())

-=NiteOwl=-

Edited by - NiteOwl on 28 September 2003 21:20:09
Go to Top of Page

The Impact
Junior Member

Australia
398 Posts

Posted - 28 September 2003 :  21:28:42  Show Profile
Glad that you've learnt from this topic.

Problems and errors aren't as useless as them seem.

That session variable doesn't really need to be changed as it really has no job to carry out so you might even be able to remove it. I'd leave it in there as it is if your code is working fine though !

Nice job !
Go to Top of Page

NiteOwl
Junior Member

Canada
403 Posts

Posted - 28 September 2003 :  21:28:52  Show Profile  Visit NiteOwl's Homepage
whoops, its now displaying like this:

Active Users: 6 / Visits Today: 6
Highest Active Users: 6

All numbers rise together. grin

-=NiteOwl=-
Go to Top of Page

The Impact
Junior Member

Australia
398 Posts

Posted - 28 September 2003 :  21:45:22  Show Profile
Can you try this ? I think that code may be right so close your browser windows which are displaying your site. Don't go to your site for 25 mins or so. Then go back in and check to see if anything has incremented.

Hopefully all works well !
Go to Top of Page

NiteOwl
Junior Member

Canada
403 Posts

Posted - 28 September 2003 :  21:46:40  Show Profile  Visit NiteOwl's Homepage
Mind you maybe the numbers rising together makes sense, I will give it a bit of time to settle.

-=NiteOwl=-
Go to Top of Page

The Impact
Junior Member

Australia
398 Posts

Posted - 28 September 2003 :  21:53:13  Show Profile
Good idea. Got a site address I could have a look at ?
Go to Top of Page

NiteOwl
Junior Member

Canada
403 Posts

Posted - 28 September 2003 :  22:15:53  Show Profile  Visit NiteOwl's Homepage
Looks like they are all still going together, :) www.bcfmwu-forum.com

-=NiteOwl=-
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 28 September 2003 :  22:25:30  Show Profile
It is still possible to have numbers like this, but how many Active Users do you have online now ? (don't look at this, look at the AU mod). Also, the code that prints these details, what does it look like now ?
Go to Top of Page

The Impact
Junior Member

Australia
398 Posts

Posted - 28 September 2003 :  22:25:55  Show Profile
I've signed up, could you please accept my registration or create a test users so I can take a look in the forum. Want to check your AU page. Thanx !
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 28 September 2003 :  22:33:51  Show Profile
Looks like the number/s go up, but not down.
Go to Top of Page

NiteOwl
Junior Member

Canada
403 Posts

Posted - 28 September 2003 :  22:39:42  Show Profile  Visit NiteOwl's Homepage
ok, your up

I made change to the session Start and tried using the vbshort as opposed to the Now but all it does is reset al the numbers and starts over. I almost looks like it goes up in multiples of two.

-=NiteOwl=-

Edited by - NiteOwl on 28 September 2003 22:48:35
Go to Top of Page

The Impact
Junior Member

Australia
398 Posts

Posted - 28 September 2003 :  22:58:32  Show Profile
Ok, I'm looking around and am prety sure that it's not working.
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 28 September 2003 :  23:21:39  Show Profile
NiteOwl, it looks like your global.asa is fine, it's what you are doing with these details that needs investigating. It seems the numbers only ever go up, and are all the same number. Do you know how many active users to expect ?
Go to Top of Page

NiteOwl
Junior Member

Canada
403 Posts

Posted - 28 September 2003 :  23:24:21  Show Profile  Visit NiteOwl's Homepage
Active users would be somewhere in the neighbourhood of 650 per day

-=NiteOwl=-

Edited by - NiteOwl on 29 September 2003 23:16:08
Go to Top of Page

NiteOwl
Junior Member

Canada
403 Posts

Posted - 29 September 2003 :  00:36:56  Show Profile  Visit NiteOwl's Homepage
well, I am trying the following: grin and holding my breath!

==============================================================================
Sub Application_OnStart
        Application("ActiveUsers") = 0
        Application("HighestToDate") = 0
        Application("VisitorsToday") = 0
        Application("TodaysDate") = DateAdd("h","-3",vbShortDate)
End Sub

Sub Session_OnStart
        Session.Timeout = 20 '## minutes
        Session("Start") = Now
        Application.Lock
        Application("ActiveUsers") = Application("ActiveUsers") + 1
                Application("ActiveUsers") > Application("HighestToDate") then
                Application("HighestToDate") = Application("HighestToDate") + 1
        end if
         if Application("TodaysDate") = DateAdd("h","-3",vbShortDate) then
                 Application("VisitorsToday") = Application("VisitorsToday") + 1
        else
                Application("TodaysDate") = DateAdd("h","-3",vbShortDate)
               Application("VisitorsToday") = 1
        end if
        Application.UnLock
End Sub

Sub Session_OnEnd
        ' Decrease the active visitors count when the session ends.
        Application.Lock
        Application("ActiveUsers") = Application("ActiveUsers") - 1
        Application.UnLock
End Sub

============================================================================

Edited by - NiteOwl on 12 October 2003 19:28:34
Go to Top of Page
Page: of 4 Previous Topic Topic Next Topic  
Previous Page | Next Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.31 seconds. Powered By: Snitz Forums 2000 Version 3.4.07