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: MOD Implementation
 Search Highlight mod
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Hamlin
Advanced Member

United Kingdom
2386 Posts

Posted - 14 May 2002 :  17:22:44  Show Profile
Er not sure if this is the correct forum for this but....

With the search highlight mod has anyone else noticed that it crashes with a HTTP 500.100 - Internal Server Error - ASP error when the user search's with "," like
"win, test, seagasf"
The url ends up like: blah?SearchTerms=win,,test,,seagasf

i get an Invalid procedure call or argument: 'Mid' error

or have i installed it incorrectly, i did notice that one line i was suppose to have was not in my code any more , some poll mod code was there instead , on topic.asp i think.

.:: Brother Beyond::.

Edited by - brother beyond on 14 May 2002 18:12:17

masterao
Senior Member

Sweden
1678 Posts

Posted - 14 May 2002 :  17:47:19  Show Profile  Visit masterao's Homepage
I recieve the same error, which reads like this:

Microsoft VBScript runtime error '800a0005'

Invalid procedure call or argument: 'Mid'

/forum/topic.asp, line 1019

That is a line in the function SearchHighlight(fStrMessage):


if bInHTML <> True then
for i = 0 to UBound(fArr)
#1019 if lcase(mid(fStrMessage, iPos, len(fArr(i)))) = lcase(fArr(i)) then
bChange = True
strBuffer = strBuffer & "<span class=""spnSearchHighlight"">" & _
mid(fStrMessage, iPos, len(fArr(i))) & "</span>"
iPos = iPos + len(fArr(i)) - 1
end if
next
end if



Master AO
===========
FR Portal | FR Portal Forums
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 14 May 2002 :  19:48:23  Show Profile
why are they putting commas in between search words?
Go to Top of Page

Hamlin
Advanced Member

United Kingdom
2386 Posts

Posted - 14 May 2002 :  20:07:15  Show Profile
quote:

why are they putting commas in between search words?



er....dunno to seperate the search words, thats how i do it some times in search engine's .

Who knows why users do anything, the only thing a user will do for sure is what you dont want them to do!

.:: Brother Beyond::.
Go to Top of Page

Nathan
Help Moderator

USA
7664 Posts

Posted - 14 May 2002 :  21:43:02  Show Profile  Visit Nathan's Homepage
Actually if they put a comma in the search then it will only find posts that have a comma after the word. (Richard, you might want to make an adjustment in search.asp for the sillys who think they need to delimit their search items with commas)

And it does cause an error when hilighting. I'll have a look at it tonight.

Nathan Bales
Snitz Exchange | Do's and Dont's

Edited by - Nathan on 14 May 2002 21:43:57
Go to Top of Page

masterao
Senior Member

Sweden
1678 Posts

Posted - 15 May 2002 :  02:54:37  Show Profile  Visit masterao's Homepage
Thanks Nathan!

I don't think any of my members/guests have tried to search with commas, atleast I haven't gotten any emails about it.

When I addded the mod, I only tested it with single words and a short phrase, and it worked perfectly.

Master AO
===========
FR Portal | FR Portal Forums
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.48 seconds. Powered By: Snitz Forums 2000 Version 3.4.07