Print Page | Close Window

re Ver 7.6

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=7527
Printed Date: 06 April 2026 at 10:37am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: re Ver 7.6
Posted By: Webber
Subject: re Ver 7.6
Date Posted: 23 November 2003 at 11:19am

Presently the active users time line is set for the last 10 minutes. Is there a way to change this setting like for the last 60 or 120 minutes?

If so, which asp pages and which syntax do I need to alter?

Thanks in advance,

Robin




Replies:
Posted By: MadDog
Date Posted: 23 November 2003 at 12:16pm
Why so long??

-------------
http://www.iportalx.net" rel="nofollow">


Posted By: Webber
Date Posted: 23 November 2003 at 2:27pm
I run a Community Site for our City and the powers to be would like to see the 60 to 120 minutes of user activity.


Posted By: wistex
Date Posted: 23 November 2003 at 5:23pm

I asked the same question a couple months ago.  Go here:

http://forums.webwiz.net/forum_posts.asp?TID=5504&a mp;a mp;KW=active+users+10+minutes

And to answer why they might want to do that:

  1. It makes their site look more busy than it really is.
  2. It's for the government.  They like tracking people.

I'm just kidding.

...

Maybe not.



-------------
http://www.wistex.com" rel="nofollow - WisTex Solutions
http://www.caribbeanchoice.com/forums" rel="nofollow - CaribbeanChoice Forums


Posted By: Webber
Date Posted: 23 November 2003 at 6:02pm

Thank you Wistex for the url....It's for a different version - the closest thing I could find in the active_users.inc was this:

'Iterate through the array to remove old entires and double entries
For intArrayPass = 1 To UBound(saryActiveUsers, 2)

 'Check the IP address
 If saryActiveUsers(4, intArrayPass) < (CDbl(Now()- 6.95000000167871E-03)) OR intActiveUsersDblArrayPos = intArrayPass Then

Do I change the bolded part to show active users longer?

(edited to add:  the only thing I can tell that this bolded syntax changes is the actual time logged by the member on the active forum page - still states this data is based on active uses in past 10 minutes -  I am unable to alter this syntax to any number that will give me the 120 minutes of active users that I need).

Thank you advance for your help.

Robin



Posted By: WebWiz-Bruce
Date Posted: 24 November 2003 at 8:45am
Changing the number in bold will mean that the users will be removed from the active users list after a different time span other than 10 minutes.

The text at the bottom, is just static text, if you change the time in bold it won't automatically change the text at the bottom as no clever calculations are done to get this text.

You will need to change the text in the language file to say sometjing different.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: Webber
Date Posted: 24 November 2003 at 10:35am

Hi,

Ok I'm confused. So the snippet of code above (in bold) is what I change to increase the time that active users show?

I ask because I have tried many different numbers to get active users who were online in the last 120 minutes to show in the active list but I can't get the number to change any higher that 14 minutes.

Please advise and thanks in advance,Robin



Posted By: WebWiz-Bruce
Date Posted: 25 November 2003 at 9:07am
You will have to change the number in bold to the double interger number representing 120 minutes.

Sorry wouldn't have clue what the number would be.

The way I worked it out was to write some code that took the present date/time, turned it into a double interger using Dbl() and then subtracted a number from it, then turned it back into a date and time using FormatDate() of course this all took many hours to work out right and I dleted the code so I don't remeber exactly waht it was.



-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: Webber
Date Posted: 25 November 2003 at 11:22am

I've been working on this too long!! LOL I'm getting crossed eyed.

Someone suggested that I do this:

If saryActiveUsers(4, intArrayPass) < (CDbl(Now()* 9.00000167871E-03)) OR intActiveUsersDblArrayPos = intArrayPass Then

My concern is that a) I'm not getting the active users for the last 120 minutes and what else does this syntax affect within the forum?

There has got to be an easier way to allow for the increase of time of active users.

I'm new at asp and not sure what to actually change. Will this feature be added in future versions?

Thanks in advance for your help. Robin



Posted By: WebWiz-Bruce
Date Posted: 25 November 2003 at 11:45am
Really you should leave the active users time at ten minutes as 120 minutes will effect server performance, not to mention that the server will be set to time out sessions at 20 minutes which means if no-one looks at the site for 20 minutes the active users list will be dropped after this time.

If you want to see activity going back furher why not just look at the server log files, or use a statistics program.

The statistics progarm would be able to give you far more data such as refererer, search words used, browser, time spent on site, etc. and would be much more accurate than a real time active users page in ASP as it is nver 100% accurate becuase HTTP is asessionless state protocol so there is no accurate way to track users.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: ljamal
Date Posted: 25 November 2003 at 1:17pm
Well, you can also change the session timeout on the server, but I don't know why any one would want to do this. Borg is right just use the server log stats.

-------------
L. Jamal Walton

http://www.ljamal.com/" rel="nofollow - L. Jamal Inc : Web/ Print Design and ASP Programming



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net