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.

16 Comments

  1. Posted February 15, 2008 at 8:39 pm | Permalink | Reply

    Thanks for the plugin! Couldn’t find anywhere else

  2. Posted February 26, 2008 at 11:11 am | Permalink | Reply

    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. Posted February 27, 2008 at 12:19 pm | Permalink | Reply

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

    Thanks very mach. Good work.

  4. Posted February 27, 2008 at 12:21 pm | Permalink | Reply

    Most Commented is very good.

  5. Posted April 26, 2008 at 2:32 pm | Permalink | Reply

    Hi,

    I will definitely be downloading and activating

    this plugin. Many Thanks!

  6. Posted May 13, 2008 at 2:35 pm | Permalink | Reply

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

  7. trevor
    Posted May 23, 2008 at 6:39 pm | Permalink | Reply

    We maintain quite a few blogs and this might help us seriously clean up a few recurring themes, lol.

    Thanks again.

  8. Chris
    Posted June 30, 2008 at 2:46 pm | Permalink | Reply

    I have been looking for a plugin to do this. This is great because I get annoyed with those url’s also.

  9. gamer
    Posted July 4, 2008 at 5:08 pm | Permalink | Reply

    excellent plugin to use on my wordpress blogs. I guess it works on WP 2.5 right?

    Thanks a lot

  10. Posted July 7, 2008 at 9:56 pm | Permalink | Reply

    Nice little plugin…thanks!

  11. David
    Posted July 9, 2008 at 1:08 pm | Permalink | Reply

    I love this plugin great job. I will use this on my blogs.

  12. Posted July 29, 2008 at 12:56 pm | Permalink | Reply

    i just found this plugin. i wanna try it asap in my blog. thanks.

  13. elena
    Posted August 3, 2008 at 7:10 pm | Permalink | Reply

    really it is a great plugin..i may use this to my blogs.thanks for the information.Nice site

  14. Posted August 18, 2008 at 1:53 am | Permalink | Reply

    Hey, that’s a nice plugin..

    thanks for sharing

  15. TigerTom
    Posted September 13, 2008 at 2:55 pm | Permalink | Reply

    Sounds good, but I’m surprised such a thing doesn’t already exist, like in Akismet?

    I dislike the amount of work you have to do to get WordPress usable, and as for the constant security upgrades ….

  16. Posted September 22, 2008 at 8:55 pm | Permalink | Reply

    Was trying to Google for this tidbit, and I found this little gem of a WP hack… Thanks!

Post a Comment

Your email is never shared. Required fields are marked *

*
*