| Author |
Topic Search Topic Options
|
whittibo
Groupie
Joined: 24 May 2003
Location: United States
Status: Offline
Points: 180
|
Post Options
Thanks(0)
Quote Reply
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? 
|
 |
pam b
Groupie
Joined: 10 April 2003
Location: United Kingdom
Status: Offline
Points: 117
|
Post Options
Thanks(0)
Quote Reply
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
|
 |
whittibo
Groupie
Joined: 24 May 2003
Location: United States
Status: Offline
Points: 180
|
Post Options
Thanks(0)
Quote Reply
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..
|
 |
WebWiz-Bruce
Admin Group
Web Wiz Developer
Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
|
Post Options
Thanks(0)
Quote Reply
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 |
|
|
|
 |
wack
Newbie
Joined: 10 May 2003
Status: Offline
Points: 20
|
Post Options
Thanks(0)
Quote Reply
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
|
|
 |
whittibo
Groupie
Joined: 24 May 2003
Location: United States
Status: Offline
Points: 180
|
Post Options
Thanks(0)
Quote Reply
Posted: 02 October 2003 at 3:04pm |
I am soooo lost!!
do I need to do all those things PLUS still fix my error??? 
|
 |
wack
Newbie
Joined: 10 May 2003
Status: Offline
Points: 20
|
Post Options
Thanks(0)
Quote Reply
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
Edited by wack
|
 |
whittibo
Groupie
Joined: 24 May 2003
Location: United States
Status: Offline
Points: 180
|
Post Options
Thanks(0)
Quote Reply
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? 
|
 |