Web Wiz - Green Windows Web Hosting - Celebrating 25 Years!

  New Posts New Posts RSS Feed - BUG. User Online Status.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

BUG. User Online Status.

 Post Reply Post Reply
Author
Detonator View Drop Down
Newbie
Newbie


Joined: 23 June 2005
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote Detonator Quote  Post ReplyReply Direct Link To This Post Topic: BUG. User Online Status.
    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.



Edited by Detonator - 06 August 2005 at 3:58am
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: 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.
Back to Top
Detonator View Drop Down
Newbie
Newbie


Joined: 23 June 2005
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote Detonator Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply

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.