WordPress Plugin: Comment Author URL Stripper

As promised, I’ve created a plugin which removes the URL from a comment author if it contains any of the words specified in the Options screen. Too many people have been leaving comments and putting in yahoo, gmail, hotmail, etc. as their web site and I got tired of editing those comments all of the time. Now I simply put a few words into the Options screen and the plugin automatically does the work for me.

Comment Author URL Stripper

Could I have chosen a longer name for the plugin?

I had thought about including an option to prevent any previous comments with the specified words from displaying their URL, but decided against it. I used the following in phpMyAdmin to quickly do the work…

UPDATE `wp_comments` SET `comment_author_url`='' WHERE `comment_author_url` like '%PUTWORDHERE%'

* If you’re using a different table prefix, make sure to change wp_comments to reflect it.
* Replace PUTWORDHERE with hotmail as an example.


Comments

  1. 1. Cole Haan
    2/15/2008 at 8:39pm

    Thanks for the plugin! Couldn’t find anywhere else

  2. 2. Norman
    2/26/2008 at 11:11am

    Thanks a lot for this information, that what i was looking for to do in my blog but, I didn’t know what was the term for it. Well now i know and thanks for the tips.

  3. 3. hpguru
    2/27/2008 at 12:19pm

    Thanks for the great plugin. I use this in my sidebar. :)

    Thanks very mach. Good work.

  4. 4. hpguru
    2/27/2008 at 12:21pm

    Most Commented is very good.

  5. 5. Steve Madden
    4/26/2008 at 2:32pm

    Hi,
    I will definitely be downloading and activating
    this plugin. Many Thanks!

  6. 6. blogkosong
    5/13/2008 at 2:35pm

    Thanks for the plugin, I’ll try it on my own :D

Leave a Reply