<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ikailo &#187; Spam</title>
	<atom:link href="http://ikailo.com/tag/spam/feed/" rel="self" type="application/rss+xml" />
	<link>http://ikailo.com</link>
	<description>media solutions</description>
	<lastBuildDate>Fri, 04 Mar 2011 04:58:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>BB Press Users Cleanup</title>
		<link>http://ikailo.com/139/bb-press-users-cleanup/</link>
		<comments>http://ikailo.com/139/bb-press-users-cleanup/#comments</comments>
		<pubDate>Wed, 14 Oct 2009 05:14:41 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[BB Press]]></category>
		<category><![CDATA[Spam]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.ikailo.com/?p=139</guid>
		<description><![CDATA[I finally got around to removing all the bot-users (about 3100 in total) that had registered in my BB Press Forum. Here&#8217;s what I did. It&#8217;s not for the novice, and I don&#8217;t take responsibility for anything that blows up. Of course, always backup first. Step 1: Installed Human Test for BB Press Step 2: [...]]]></description>
			<content:encoded><![CDATA[<p>I finally got around to removing all the bot-users (about 3100 in total) that had registered in my BB Press Forum. Here&#8217;s what I did. It&#8217;s not for the novice, and I don&#8217;t take responsibility for anything that blows up. Of course, always backup first.</p>
<p>Step 1:<br />
Installed <a href="http://bbpress.org/plugins/topic/human-test/">Human Test for BB Press</a></p>
<p>Step 2:<br />
Used <a href="http://webdesign.anmari.com/plugins/users/">AmR-Users</a> to generate a CSV list of bot users by generating a report that excluded user levels of 0,1,2,3,4,5,6,7,8,9,10 and making the id visible.</p>
<p>Note &#8211; my BB Press installation is integrated with WordPress, so they share the same users tables. This method would only work in that case, because if the user doesn&#8217;t validate their email address, then it&#8217;s not set up with a role in WordPress.</p>
<p>Step 3:<br />
Used Excel to reformat the list &#8211; creating a list of all the ID&#8217;s, with a comma after.</p>
<p>Step 4:<br />
I wrote a quick script to actually delete the users. The array part was 3100 lines long, just a copy and paste from Excel.</p>
<pre class="brush: php; title: ;">&lt;?php
/*
Plugin Name: Bot Cleanup
Description: Get rid of BBpress bot users.
Version: 0.1
*/
function wphive_delete_now() {
    $ids = array(
        1856,
        1857,
        1234
    );

    if ($_REQUEST['delete'] == 'now') {
        require_once(ABSPATH.'/wp-admin/includes/user.php');
        foreach ($ids as $id) {
            wp_delete_user( $id );
        }
    }
}
add_action('init', 'wphive_delete_now');
?&gt;</pre>
<p>Step 5:<br />
Installed it as a plugin in WordPress and activated it. Don&#8217;t forget to uninstall it and delete it after you are done.</p>
<p>Step 6:<br />
Loaded up my website with the appropriate GET to activate it:<br />
http://domain.com/index.php?delete=now and Voila! all those spammy users disappeared. I actually had to load it twice because it timed out the first time after deleting about 2400 users.</p>
]]></content:encoded>
			<wfw:commentRss>http://ikailo.com/139/bb-press-users-cleanup/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

