Connecting Tech Pros Worldwide Forums | Help | Site Map

Instr(?) problems

Newbie
 
Join Date: Jun 2007
Posts: 1
#1: Jun 5 '07
I'm currently creating a marquee on a home page that links to a forum, so that the most recent 5 posts can be seen. This has gone well so far, what i'm having problems with is when someone is quoted within the forum environment. The return is an ugly "[quote:da7991cf7d" (of which the code is variable) followed by the message. I'd like for this to be removed, whats the best way?

7 of 9's Avatar
Newbie
 
Join Date: May 2007
Posts: 23
#2: Jun 5 '07

re: Instr(?) problems


Quote:

Originally Posted by MFurze

I'm currently creating a marquee on a home page that links to a forum, so that the most recent 5 posts can be seen. This has gone well so far, what i'm having problems with is when someone is quoted within the forum environment. The return is an ugly "[quote:da7991cf7d" (of which the code is variable) followed by the message. I'd like for this to be removed, whats the best way?

I had this problem before. The way I solved it was by searching for the Apostrophe when the user creates it and replacing (') with &#39 which is ' in ACSII. Then on the page that retrieves the text with the Apostrophe do the opposite, search for &#39 and replace it with '. I know there are much better ways of doing it but that’s the way I went around it
Reply


Similar ASP / Active Server Pages bytes