Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Multiple times the same user online
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Multiple times the same user online

 Post Reply Post Reply Page  <123>
Author
whittibo View Drop Down
Groupie
Groupie


Joined: 24 May 2003
Location: United States
Status: Offline
Points: 180
Post Options Post Options   Thanks (0) Thanks(0)   Quote whittibo Quote  Post ReplyReply Direct Link To This Post 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?

Back to Top
pam b View Drop Down
Groupie
Groupie


Joined: 10 April 2003
Location: United Kingdom
Status: Offline
Points: 117
Post Options Post Options   Thanks (0) Thanks(0)   Quote pam b Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
whittibo View Drop Down
Groupie
Groupie


Joined: 24 May 2003
Location: United States
Status: Offline
Points: 180
Post Options Post Options   Thanks (0) Thanks(0)   Quote whittibo Quote  Post ReplyReply Direct Link To This Post 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..  

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: 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

Back to Top
wack View Drop Down
Newbie
Newbie
Avatar

Joined: 10 May 2003
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote wack Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
whittibo View Drop Down
Groupie
Groupie


Joined: 24 May 2003
Location: United States
Status: Offline
Points: 180
Post Options Post Options   Thanks (0) Thanks(0)   Quote whittibo Quote  Post ReplyReply Direct Link To This Post Posted: 02 October 2003 at 3:04pm

I am soooo lost!!  

do I need to do all those things PLUS still fix my error???

Back to Top
wack View Drop Down
Newbie
Newbie
Avatar

Joined: 10 May 2003
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote wack Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
whittibo View Drop Down
Groupie
Groupie


Joined: 24 May 2003
Location: United States
Status: Offline
Points: 180
Post Options Post Options   Thanks (0) Thanks(0)   Quote whittibo Quote  Post ReplyReply Direct Link To This Post 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?

Back to Top
 Post Reply Post Reply Page  <123>

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.