Multiple times the same user online
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=6105
Printed Date: 03 April 2026 at 9:37am Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com
Topic: Multiple times the same user online
Posted By: wack
Subject: Multiple times the same user online
Date Posted: 02 October 2003 at 4:42am
|
Hi,
I am noticing a problem that sometimes a user is shown more then one time in the who's online list. how can i avoid this problem

i have altered my default.asp a bit to show these online users at the top. you can find my default.asp at http://users.pandora.be/WackJack/wack-onlinebox-mod.zip - http://users.pandora.be/WackJack/wack-onlinebox-mod.zip
thx in advance, wack
|
Replies:
Posted By: WebWiz-Bruce
Date Posted: 02 October 2003 at 5:59am
This has been posted on before and altered in version 7.5 to run an sql query to delete secound entries.
------------- 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: wack
Date Posted: 02 October 2003 at 6:17am
|
hmmz,
there's no little asp-code that i can insert into my board to get rid of this? the 7.1 version really fits my needs en i've altered it a lot so it's preferable for me that i stick with 7.1 version.
Anywayz thx for replying, greetz wack
|
Posted By: WebWiz-Bruce
Date Posted: 02 October 2003 at 6:32am
Use the file active_users_inc.asp from version 7.5 beta 1.
------------- 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: wack
Date Posted: 02 October 2003 at 7:42am
thx for the fast support
|
Posted By: whittibo
Date Posted: 02 October 2003 at 9:45am
|
WOWWWWW..
this is great. now let me make sure I can do this before I go messing somthing up..
I need to download the 7.5 beta version.. extract the files.. and replace my current active_users_inc.asp with the one from the 7.5 version?!
and that will get rid of all my duplicate users?! 
------------- Live and learn through trial and error ~ when all else fails, ASK!
|
Posted By: WebWiz-Bruce
Date Posted: 02 October 2003 at 10:02am
Thats correct, but make back-ups first incase things go wrong.
------------- 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: whittibo
Date Posted: 02 October 2003 at 10:08am
|
Thanks boRg cause I wouldn't have made backups.. see.. you already got me figured out.. 
I can't wait to try this.. and I am gaining loads of experience for when 7.5 is released so I can upgrade!! 
------------- Live and learn through trial and error ~ when all else fails, ASK!
|
Posted By: whittibo
Date Posted: 02 October 2003 at 11:06am
|
OK.. it's me again.. 
I downloaded the new one.. extracted the files.. replaced the old file with the new one (AFTER making a copy)
and here's an error I am getting..
Microsoft VBScript runtime error '800a01f4'
Variable is undefined: 'strTxtDataBasedOnActiveUsersInTheLastXMinutes'
/forum/active_users.asp, line 247
I looked up line 247 and here it is:
<br /><span class="text"><% = strTxtDataBasedOnActiveUsersInTheLastXMinutes %></span><br /><br /><%
sooooo.. where do I go from here? 
------------- Live and learn through trial and error ~ when all else fails, ASK!
|
Posted By: pam b
Date Posted: 02 October 2003 at 11:30am
LOL,
I tryed it too, and i got an error on line 63, so just took it off again lol.
------------- regards,pam
|
Posted By: whittibo
Date Posted: 02 October 2003 at 11:42am
|
PAM.. we can do this.. your gonna have to stick with me on this one!
I am determined to get this working..
I have tried taking that line out.. (that didn't work) tried changing that X to a number.. (that didnt' work) but I know boRg will be here and rescue me soon!! until then.. everything works.. just an error shows up at the bottom..
I am REALLY hoping it will get rid of my spy bot problems .. sometimess I can have 25 of those showing up at once. I like them there.. but don't need them all listed!! but maybe this won't even solve that problem.. but it WILL solve the AOL members who come on 5 -10 times..
------------- Live and learn through trial and error ~ when all else fails, ASK!
|
Posted By: WebWiz-Bruce
Date Posted: 02 October 2003 at 12:05pm
I looked at line 63 and it refernces a function not avialbale in 7.01.
Place this code at the top of the page in the asp tags:-
'******************************************
'*** Get users IP address ***
'******************************************
Private Function getIP()
Dim strIPAddr
'If they are not going through a proxy get the IP address
If Request.ServerVariables("HTTP_X_FORWARDED_FOR") =
"" OR InStr(Request.ServerVariables("HTTP_X_FORWARDED_FOR"), "unknown")
> 0 Then
strIPAddr = Request.ServerVariables("REMOTE_ADDR")
'If they are going through multiple proxy servers only get the fisrt IP address in the list (,)
ElseIf InStr(Request.ServerVariables("HTTP_X_FORWARDED_FOR"), ",") > 0 Then
strIPAddr =
Mid(Request.ServerVariables("HTTP_X_FORWARDED_FOR"), 1,
InStr(Request.ServerVariables("HTTP_X_FORWARDED_FOR"), ",")-1)
'If they are going through multiple proxy servers only get the fisrt IP address in the list (;)
ElseIf InStr(Request.ServerVariables("HTTP_X_FORWARDED_FOR"), ";") > 0 Then
strIPAddr =
Mid(Request.ServerVariables("HTTP_X_FORWARDED_FOR"), 1,
InStr(Request.ServerVariables("HTTP_X_FORWARDED_FOR"), ";")-1)
'Get the browsers IP address not the proxy servers IP
Else
strIPAddr = Request.ServerVariables("HTTP_X_FORWARDED_FOR")
End If
'Place the IP address back into the returning function
getIP = Trim(Mid(strIPAddr, 1, 30))
End Function |
------------- 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: wack
Date Posted: 02 October 2003 at 3:01pm
|
that's already cool but it will give another error now.
You also need to replace this code:
If Request.Cookies(strCookieName)("Hide") = "True" Then blnHideActiveUser = 1 Else blnHideActiveUser = 0 End If
|
with the old code
If Request.Cookies("Forum")("Hide") = "True" Then blnHideActiveUser = 1 Else blnHideActiveUser = 0 End If
|
|
Posted By: whittibo
Date Posted: 02 October 2003 at 3:04pm
|
I am soooo lost!!
do I need to do all those things PLUS still fix my error??? 
------------- Live and learn through trial and error ~ when all else fails, ASK!
|
Posted By: wack
Date Posted: 02 October 2003 at 3:20pm
wait,
download this active_users_inc.asp en unzip it to ur includes folder, tehn the problem must be solved
http://users.pandora.be/WackJack/active_users_inc.zip - http://users.pandora.be/WackJack/active_users_inc.zip
|
Posted By: whittibo
Date Posted: 02 October 2003 at 3:30pm
|
that didn't work.. I got a whole page error that time..
Microsoft VBScript runtime error '800a01a8'
Object required: 'rsCommon'
/forum/active_users.asp, line 115
so I saved the one I changed this morning.. (renamed it) and now went back to the original one.
anyone got any other suggestions? 
------------- Live and learn through trial and error ~ when all else fails, ASK!
|
Posted By: whittibo
Date Posted: 02 October 2003 at 3:32pm
|
DUAH... wait a second.. you said to put it in my "includes" file..
let me go check... cause I didn't put it there.. 
now do I leave the one from this morning up there then?! I'll try it both ways..
------------- Live and learn through trial and error ~ when all else fails, ASK!
|
Posted By: whittibo
Date Posted: 02 October 2003 at 3:39pm
|
ok.. I have the new includes/active_users.asp up there with the original forum/active_users.asp
no errors.. but dont' know yet if the duplication problem is solved or not because I won't know till I have a duplication..
thanks for all the help!!
------------- Live and learn through trial and error ~ when all else fails, ASK!
|
Posted By: fernan82
Date Posted: 02 October 2003 at 7:36pm
|
whittibo it's not active_users.asp the one you have to replace, it's active_users_inc.asp.
<edit> replace the one on the forum folder back with the original (i think you already did that), and replace the active_users_inc.asp on the includes folder with the one that comes on the includes folder on version 7.5 and do the changes Bruce stated above.
<edit> and also do the change that wack stated.
------------- FeRnAN
http://www.danasoft.com/">
|
Posted By: whittibo
Date Posted: 02 October 2003 at 7:46pm
|
THANKS Fernan!!
I think I have it the way it's supposed to be.. that DANG .inc.asp is what messed me up~ I switched the first one I saw..
so many files.. so little brain.. 
now.. I have my forum/active_users.asp back to it's original (thanks again to boRg for reminding me to backup!) and I have replaced my includes/active_users_inc.asp with the one Wack posted.. (thanks Wack!)
I haven't seen any duplicates yet.. so it must be working.. right?~ 
------------- Live and learn through trial and error ~ when all else fails, ASK!
|
Posted By: pam b
Date Posted: 03 October 2003 at 1:33am
Wow ,
Sorry i deserted ya yesterday babe, had to shoot off, will redo mine
again this morning, cheers guys for all the problem solving.
------------- regards,pam
|
Posted By: pam b
Date Posted: 03 October 2003 at 5:39am
Nah still cant get it to work, Perhaps its something to do with my portal that i'm using .
Never mind i can wait till the final is released and have it fixed then, as its not too annoying really.
------------- regards,pam
|
Posted By: whittibo
Date Posted: 03 October 2003 at 8:11am
|
Hey Pam.. I thought you said.. SHOOT UP... I had to read that post a couple times.. anyway.. I am assuming that 'shoot off' is WAY different?! 
Did you use the download that Wack posted? it was a snap for me.. (well.. after I put it in the right place anyway)
------------- Live and learn through trial and error ~ when all else fails, ASK!
|
|