Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Comment Filter Hook
There seems to be a lot of clammor for this, how did that one guy put it? Chew off his arm or something...anyway, if you look under the Smilies discussion, the SmartyPants thread, and so on, a lot of people are interested in writing extensions that filter comments after a formatter has done its thing.
I can think of several good reasons to want to do this:
- Comment spam -- filter URLs in links to viagra/gambling/porn sites.
- Filter language -- what if my site is rated G?
Smilies and Smartypants are two more good examples.
Help Mr. Vanilla Guru, help!
0
This discussion has been closed.
Comments
Whoa! I guess then I was correct after studying your code Mark, I really thought I was missing some simple way of doing this.
Oh well, too much work for a universal comment filter. Perhaps as you develop the system some more you'll come up with an easier way to do this sort of thing.
Thanks.
BTW, my favorite feature so far is the external style URL. I can come here and it's formatted exactly the same way as it is on my own site. That rocks.
If you want to chain together text, html, and markdown formatting, take the code that is already written and include them all into one formatter. It's EASY.
A comment filter should be independant of whatever formatter the user chooses to use.