Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - re Ver 7.6
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

re Ver 7.6

 Post Reply Post Reply Page  12>
Author
Webber View Drop Down
Groupie
Groupie


Joined: 08 November 2003
Location: United States
Status: Offline
Points: 42
Post Options Post Options   Thanks (0) Thanks(0)   Quote Webber Quote  Post ReplyReply Direct Link To This Post Topic: re Ver 7.6
    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

Back to Top
MadDog View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 01 January 2002
Status: Offline
Points: 3008
Post Options Post Options   Thanks (0) Thanks(0)   Quote MadDog Quote  Post ReplyReply Direct Link To This Post Posted: 23 November 2003 at 12:16pm
Why so long??
Back to Top
Webber View Drop Down
Groupie
Groupie


Joined: 08 November 2003
Location: United States
Status: Offline
Points: 42
Post Options Post Options   Thanks (0) Thanks(0)   Quote Webber Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
wistex View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 30 August 2003
Location: United States
Status: Offline
Points: 877
Post Options Post Options   Thanks (0) Thanks(0)   Quote wistex Quote  Post ReplyReply Direct Link To This Post 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.



Edited by wistex
Back to Top
Webber View Drop Down
Groupie
Groupie


Joined: 08 November 2003
Location: United States
Status: Offline
Points: 42
Post Options Post Options   Thanks (0) Thanks(0)   Quote Webber Quote  Post ReplyReply Direct Link To This Post 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



Edited by Webber
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Webber View Drop Down
Groupie
Groupie


Joined: 08 November 2003
Location: United States
Status: Offline
Points: 42
Post Options Post Options   Thanks (0) Thanks(0)   Quote Webber Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.