Matt,
Thanks for the feedback, I want to ask you a few questions. Can you elaborate further on the leading space? I really would like to avoid that problem.
Also you said once the text is edited the replacement text will be rendered and you'll end up with HTML. I understand that this will happen if you are just using plain replacement but what if it was modified to work with vB code? So even if the user went to edit his msg, deleted the vB code still once it was submitted the keyword would be re-linked again.
This also can be made a little more interesting, once the keywords are found instead of being replaced with the direct link to the site, they could be replaced with something like
www.yoursite.com/redirect.php?site_id=google this way you have a nice way of tracking clicks, changing re-direct url and etc.. all out of a database. I have this setup on my site for other reasons and it's a great way to track and update urls.
I also want to make this smart and not only search for 1 keyword then check what is the next word.. Like I said earlier google and google toolbar would have two different redirects.
Quote:
Originally Posted by memobug
I would appreciate something like this but for a different reason. I have used the Replacements for this with some success. Adding a leading space to each replacement will help avoid problems with URLs getting messed up if someone has a keyword in a URL.
However, when a post is edited, the replacement text is rendered and you wind up with HTML in your message body that doesn't display properly.
So I think you have a good idea here, and I can think of a lot of uses for it.
Regards,
Matt
|