Well anyway here is the hack…

This is a hack for WP 1.3+ only

There is now a version for 1.2+

Go here and get it.

Now that I have found the bug and squashed it, here is a little ditty that will make it easier to delete large amounts of spam in one fail swoop.  Mass Comment Delete.

While it is true that there is mass deleting already built into WP 1.3, I didn’t care for it that much, and the amount of time it takes to use it when you get hit by 260+ spams at once.  The most efficient way to deal with that much spam is to issue SQL commands against your database, unfortunately for a lot of our users this is a bit much to ask, so enter my newest hack.  Here is a screenshot:

image of mass_delete

Mass Spam Delete is a system that allows you to delete all comments in the database by IP, Name, URI or email.  I have tried to make it as easy as possible to use, providing a condensed listing of comments awaiting moderation on the page for you.  I say condensed, because I am grouping the comments by IP, so you will only see one entry for every IP, regardless of the number of comments associated with that IP.  That is all there is too it really, pretty straightforward.

You will find two files within the download, mass_delete.php which is where all the magic happens and mass_delete_ph.php, this is a “plugin” file; all this really does is give you a link to the main file from a central location.  If you can remember the name of the file and don’t mind typing it everytime, you don’t need the plugin file.  To install this hack, simply drop mass_delete.php in your wp-admin folder and mass_delete_ph.php in your plugins folder.  That’s it.

Well that is about it for now, I am off to bed and then off to restore what I can of my comments.  Oh well, maybe I will just start over with my comments instead of restoring from my stale backup.

  1. personal avatar Michael
    Stroll on over and visit Michael
    March 1, 2007

    Having just fought off a spam invasion, I can truly appreciate the coolness of this! I’ll be sure to implement it once I go 1.3.

  2. personal avatar Chris J. Davis
    Stroll on over and visit Chris J. Davis
    March 1, 2007

    If you want it now, I could go ahead and hack a version up that will run on 1.2 seeing as how you are such a nifty member of the community and all.

    The second release of mass delete is about to go live, which includes visual feedback and the number of comments that are grouped in each IP group.

    Let me know if you want that refactored, it would not be that big of a deal.

  3. personal avatar ross
    Stroll on over and visit ross
    March 1, 2007

    It would be much coolo if you could hack it over to 1.2, I just got hit with a buncha spam and I’d like to try this out for my 1.2 install. thanks :)

  4. personal avatar Scribe
    Stroll on over and visit Scribe
    March 1, 2007

    Hi

    I downloaded your hack for WP 1.2 but the names are different to what you’ve mentioned above and I’m not sure which file to put where. The two files I have are: cjd_delete.php and cjd_delete_menu.php

    What do I do?

    Thanks for your help. This spam is driving me crazy!

Leave a Reply