-
Pages
Twitter
- Looks like I've got 5 invites to Gravity. Anyone want to check it out? 4 hours ago
- P.S. The most interesting part of that issue of @SPINmagazine isn't the Cobain material. It's the ads, product reviews and festival guide. 5 hours ago
- After seeing @waxpancake link up the @SPINmagazine archive earlier, I had to dig up the Kurt Cobain memorial issue: http://boogah.org/29 5 hours ago
- @rapportive: Glad to hear it! I'll just deal with it for now, but at least I won't have to groan about it for much longer. 13 hours ago
-
Foursquare
Archives
- February 2010
- January 2010
- November 2009
- August 2009
- June 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
- April 2007
- March 2007
- February 2007
- January 2007
- December 2006
- November 2006
- October 2006
- September 2006
- August 2006
- July 2006
- June 2006
- May 2006
- April 2006
- March 2006
- February 2006
- January 2006
- December 2005
- November 2005
- October 2005
- September 2005
Rekismet
After examining a customer’s 150,000+ row wp_comments table at work yesterday, I realized that they’d managed to let WordPress approve a massive amount of spam. Since there was no way I was going back thru all of that by hand, I knew that I had to come up with something clever.
Fortunately, running your already approved comments thru Akismet is pretty easy. Well, that might be a bit disingenuous. It’s easy for the geeky types that are comfortable with the MySQL command line and raw queries. So if you manage to fall into that category, feel free to give this a go…
update wp_comments set comment_approved=’0′ where comment_approved=’1′;
This tells WordPress to take any comment already flagged as “approved” and set it to “pending”.
update wp_comments set comment_approved=’1′ where comment_approved=’0′;
This takes the “pending” comments and sets them back to “approved”.
If I can hack together a way to work around the PHP execution timeout issue, I’ll do my best to make this into a simple to use plugin. Since I’ve got a lot on my plate right now, I’d prefer it if the lazyweb could beat me to getting that done. Any takers?