Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Classic ASP versions(v3.4.XX)
 Microsoft JET Database Engine error '80040e57'
 New Topic  Topic Locked
 Printer Friendly
Previous Page | Next Page
Author Previous Topic Topic Next Topic
Page: of 3

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 22 November 2006 :  11:42:27  Show Profile
It's a change that needs to be made.




Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

welshman
Starting Member

United Kingdom
6 Posts

Posted - 29 November 2006 :  04:15:32  Show Profile
Hi again

...and many thanks! We now have happy people in Papua New Guinea and a couple of other places. Your mod clearly did the trick.

Best regards

David
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 29 November 2006 :  04:35:52  Show Profile
You're welcome


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 29 November 2006 :  05:25:18  Show Profile
If this a bug, can it be moved to the bug forum please?

Support Snitz Forums
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 29 November 2006 :  05:33:36  Show Profile
[Link]


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 29 November 2006 :  06:12:43  Show Profile
Oh. I knew I read something about this already.

Support Snitz Forums
Go to Top of Page

campinmom03
Junior Member

USA
190 Posts

Posted - 12 May 2007 :  07:52:26  Show Profile
Hello to all!

I take it from all the post that this issue is still a concern to all members. Is this something that should be implemented no matter what DB your (hopefully current version) Snitz Forum is running on?


Have a great day!
Terry
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 12 May 2007 :  09:46:12  Show Profile  Send ruirib a Yahoo! Message
Yes, the code changes need to be implemented, since no Snitz version incorporates the fix.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

campinmom03
Junior Member

USA
190 Posts

Posted - 12 May 2007 :  09:54:50  Show Profile
Ruirib thank you for the response. I will implement this asap.


Have a great day!
Terry
Go to Top of Page

campinmom03
Junior Member

USA
190 Posts

Posted - 12 May 2007 :  15:33:47  Show Profile
I think I have implemented this change correctly... no errors are showing. How can one test it to ensure it was done correctly? Are having no errors enough proof?

Have a great day!
Terry
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 12 May 2007 :  15:37:45  Show Profile  Send ruirib a Yahoo! Message
You can look at the IP's in the database. If they are ok, that's halfway done. As long as they keep being stored correctly, you will know the changes were added correctly.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

campinmom03
Junior Member

USA
190 Posts

Posted - 12 May 2007 :  20:03:50  Show Profile
In the edit member area? Am I looking at the initial IP's or the last IP? Sorry, not sure where you mean for me to look and or how the IP's should look.


Have a great day!
Terry

Edited by - campinmom03 on 12 May 2007 20:04:38
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 12 May 2007 :  20:12:45  Show Profile  Send ruirib a Yahoo! Message
I meant in the database itself. I'd suggest that you really don't bother much about it, unless you start getting errors related to this.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

campinmom03
Junior Member

USA
190 Posts

Posted - 12 May 2007 :  21:36:19  Show Profile
Ok, no problem. I'll look no touch. lol. Oh, and no errors yet...keeping fingers crossed!

Many thanks!

Have a great day!
Terry
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 14 June 2007 :  04:49:14  Show Profile
An additional change needs to made to the two files to handle IP addresses that may include the port number in them (e.g., 123.456.789.012:345) and I've also made a few minor tweaks to the previous chnages (replacing mid with left).

To implement these changes, find the UpdateLastHereDate function on line 575 of inc_func_common.asp and replace the entire function with the following:
function UpdateLastHereDate(fTime,UserName)
	UserIPAddress = Request.ServerVariables("HTTP_X_FORWARDED_FOR")
	If UserIPAddress = "" or Left(UserIPAddress, 7) = "unknown" Then
		UserIPAddress = Request.ServerVariables("REMOTE_ADDR")
	ElseIf InStr(UserIPAddress, ",") > 0 Then
		UserIPAddress = Left(UserIPAddress, InStr(UserIPAddress, ",")-1)
	ElseIf InStr(UserIPAddress, ";") > 0 Then
		UserIPAddress = Left(UserIPAddress, InStr(UserIPAddress, ";")-1)
	End If
	If InStr(UserIPAddress, ":") > 0 then
		UserIPAddress = Left(UserIPAddress, InStr(UserIPAddress, ":")-1)
	End If
	'## Forum_SQL - Do DB Update
	strSql = "UPDATE " & strMemberTablePrefix & "MEMBERS "
	strSql = strSql & " SET M_LASTHEREDATE = '" & fTime & "'"
	strSql = strSql & ",    M_LAST_IP = '" & UserIPAddress & "'"
	strSql = strSql & " WHERE " & strDBNTSQLName & " = '" & ChkString(UserName, "SQLString") & "' "
	my_conn.Execute (strSql),,adCmdText + adExecuteNoRecords
end function
Then find the following on lines 807 and 991 of post_info.asp and on line 409 of register.asp:
UserIPAddress = Request.ServerVariables("HTTP_X_FORWARDED_FOR")
if UserIPAddress = "" then
	UserIPAddress = Request.ServerVariables("REMOTE_ADDR")
end if
And replace it with the following:
UserIPAddress = Request.ServerVariables("HTTP_X_FORWARDED_FOR")
if UserIPAddress = "" or Left(UserIPAddress, 7) = "unknown" then
	UserIPAddress = Request.ServerVariables("REMOTE_ADDR")
elseif InStr(UserIPAddress, ",") > 0 then
	UserIPAddress = Left(UserIPAddress, InStr(UserIPAddress, ",")-1)
elseif InStr(UserIPAddress, ";") > 0 then
	UserIPAddress= Left(UserIPAddress, InStr(UserIPAddress, ";")-1)
end if
if InStr(UserIPAddress, ":") > 0 then
	UserIPAddress = Left(UserIPAddress, InStr(UserIPAddress, ":")-1)
end if

Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”

Edited by - Shaggy on 18 July 2007 04:40:23
Go to Top of Page
Page: of 3 Previous Topic Topic Next Topic  
Previous Page | Next Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.29 seconds. Powered By: Snitz Forums 2000 Version 3.4.07