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 / Current Version (Old)
 Cannot open certain post with some character
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

nalley
Starting Member

34 Posts

Posted - 30 June 2001 :  20:27:14  Show Profile
When the subject line in my forum has the chracter like "|", it will shop up some the following error message:

Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC SQL Server Driver][SQL Server]Invalid operator for data type. Operator equals boolean OR, type equals varchar.
/inc_top.asp, line 233

Please help me.


Edited by - nalley on 30 June 2001 20:29:42

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 01 July 2001 :  11:31:38  Show Profile  Visit HuwR's Homepage
Do you have the active users mod installed? since the error occurs in inc_top,
I am assuming that you do, since there is no code which processes the subject line in inc_top, other than this, so it may be a problem with that.

I have tested it here, and the error does not occur, do you have a URL I can look at.

Go to Top of Page

nalley
Starting Member

34 Posts

Posted - 01 July 2001 :  14:22:28  Show Profile
Yes, I did have active users installed. And I used another version with no active users installed. There won't have this problem at all. So, Should I change anything on active users code to make it work??
The url is http://queerbbs.com/forum.asp?FORUM_ID=13&CAT_ID=1&Forum_Title=test
You can test the post on the top with subject "abc |". Thanks a lot.




Edited by - nalley on 01 July 2001 14:23:55
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 01 July 2001 :  17:16:43  Show Profile  Visit HuwR's Homepage
could you mail me your inc_top.asp I'll take a look at it

Go to Top of Page

nalley
Starting Member

34 Posts

Posted - 01 July 2001 :  17:51:25  Show Profile
Sure, I just sent it to you. Please take a look at it for me. Thanks a lot

Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 01 July 2001 :  18:20:38  Show Profile  Visit HuwR's Homepage
Ok, in your inc_top.asp

look for this function

Function OnlineSQLencode(byVal strPass)
If not isNull(strPass) and strPass <> "" Then
strPass = Replace(strPass, "%", "'%'")
strPass = Replace(strPass, "'", "''")
strPass = Replace(strPass, "|", "'|'")
OnlineSQLencode = strPass
End If
End Function


Remove the two lines in red, they are not required

Go to Top of Page

nalley
Starting Member

34 Posts

Posted - 01 July 2001 :  19:34:57  Show Profile
Thank you, HuwR
Your method works perfect

Go to Top of Page
  Previous Topic Topic Next Topic  
 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.34 seconds. Powered By: Snitz Forums 2000 Version 3.4.07