Print Page | Close Window

BUG. User Online Status.

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=16086
Printed Date: 13 April 2026 at 7:32pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: BUG. User Online Status.
Posted By: Detonator
Subject: BUG. User Online Status.
Date Posted: 04 August 2005 at 11:55am

Hello.

I don't know whether this has been posted before, but I decided to share with you just in case. Hopefully this this fix will be integrated in WWF 8, so I don't have to re-patch the pages every time I upgrade.

When a user chooses to login anonymously, she sets the Add me to Active Users list option to No, on the Login screen.
This removes her nickname from the Member(s) online, on the Forum Statistics at the bottom on the main page, and it also shows her as "Anonymous" on the Active Users page. But there is a couple of places (that I know of) where the user status is "exposed", even if she decided to login anonymously:

1. Right under the avatar on a recent post, you see "Online Status: Online"  (the Active Posts link makes this even easier).
2. On the User Profile popup, it shows "Online Status: Online".


So to fix this, add the code marked in red on the following two pages:

----------
1. On forum_posts.asp, change following lines:


For intArrayPass = 1 To UBound(saryActiveUsers, 2)
  If saryActiveUsers(1, intArrayPass) = lngUserID Then blnIsUserOnline = True
Next

like this:


For intArrayPass = 1 To UBound(saryActiveUsers, 2)
  If saryActiveUsers(1, intArrayPass) = lngUserID _
    And Not CBool(saryActiveUsers(7, intArrayPass)) Then blnIsUserOnline = True
Next

----------
2. On pop_up_profile.asp, change the following lines:


For intArrayPass = 1 To UBound(saryActiveUsers, 2)
  If saryActiveUsers(1, intArrayPass) = lngProfileNum Then blnIsUserOnline = True
Next

like this:


For intArrayPass = 1 To UBound(saryActiveUsers, 2)

  If saryActiveUsers(1, intArrayPass) = lngProfileNum _
    And Not CBool(saryActiveUsers(7, intArrayPass)) Then blnIsUserOnline = True
Next

----------

Hope this helps.

Bye.




Replies:
Posted By: WebWiz-Bruce
Date Posted: 05 August 2005 at 5:05am
This is how I originally wrote the online status to work, but people didn't like it and complained that it was a bug, so I changed it so that even if a user logged on anonymously there online status would be updated.

It seems I can not win either way.


-------------
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: Detonator
Date Posted: 06 August 2005 at 3:56am

Hello borg,

I appreciate your reply. I understand what you mean. What I don't understand, though, is how could people complain about this and call it a bug.
 
Take any instant messenger as an analogy. On MSN for example, if I switch to Appear Offline status, that means I don't want anybody see me. Now if there was a way around this and people was still able to see I'm online, then the whole purpose of this status would be defeated, and THAT would be a bug. Invisible mode on WWF, or any other forum for that matter, should work the same way, IMO.
 
A possible solution to make everyone happy would be a put a "Show Anonymous Users as Offline" option somewhere on the Forum Configuration, where one could choose the desired behavior.
 
Then the code for forum_posts.asp would look more or less like this (latest addition in bold):
 

For intArrayPass = 1 To UBound(saryActiveUsers, 2)

  If saryActiveUsers(1, intArrayPass) = lngUserID And (Not CBool(saryActiveUsers(7, intArrayPass)
Or bShowAnonymousUsersAsOffline)
Then blnIsUserOnline = True

Next
 
This will hide users who choose to login anonymously, AS LONG AS the "Show Anonymous Users As Offline" option is checked.
 
Just an opinion.



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