<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : How to mass delete Banned members ?</title>
		<link>https://www.cotonti.com</link>
		<description>Neueste Themenbeiträge</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Fri, 01 May 2026 20:24:16 -0000</pubDate>

		<item>
			<title>Kaan</title>
			<description><![CDATA[<p>
	<strong>Mass Delete User:</strong> DELETE FROM sed_users WHERE `user_maingrp`='3'; </p>
]]></description>
			<pubDate>Fr, 02 Dez 2011 22:13:07 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=6641&d=0#post31785]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[<p>
	Here is the code from system/core/users/users.edit.inc.php:</p>
<pre class="brush:php;">
$sql = sed_sql_query("SELECT * FROM $db_users WHERE user_id='$id'");

			if ($row = sed_sql_fetchassoc($sql))
			{
				if ($cfg['trash_user'])
				{ sed_trash_put('user', $L['User']." #".$id." ".$row['user_name'], $id, $row); }
				$sql = sed_sql_query("DELETE FROM $db_users WHERE user_id='$id'");
				$sql = sed_sql_query("DELETE FROM $db_groups_users WHERE gru_userid='$id'");
				if ($ruserdelpfs) { sed_pfs_deleteall($id); }
				sed_log("Deleted user #".$id,'adm');
				header("Location: " . SED_ABSOLUTE_URL . sed_url('message', "msg=109&amp;rc=200&amp;id=".$id, '', true));
				exit;
			}</pre>
<p>
	What you need to change in your plugin is the main select query. Something like this:</p>
<pre class="brush:sql;">
SELECT * FROM $db_users AS u LEFT JOIN $db_users_groups AS g ON g.gru_userid = u.user_id WHERE g.gru_groupid = 3</pre>
<p>And of course changed if to while and remove sed_log/header/exit lines from the loop.</p>
]]></description>
			<pubDate>Fr, 02 Dez 2011 16:44:04 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=6641&d=0#post31778]]></link>
		</item>
		<item>
			<title>pieter</title>
			<description><![CDATA[<p>
	If you delete banned users, the users can make the same user and same IP.</p>
<p>
	Better is not to display that user anymore in the lists, except when you are an admin.</p>
]]></description>
			<pubDate>Fr, 02 Dez 2011 11:39:51 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=6641&d=0#post31769]]></link>
		</item>
		<item>
			<title>tensh</title>
			<description><![CDATA[<p>
	I see what you mean :)</p>
<p>
	Then the plugin would be okay. There was the usermanager plugin somewhere available, it had a couple of bugs but it would be a good base to start.</p>
]]></description>
			<pubDate>Fr, 02 Dez 2011 07:50:33 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=6641&d=0#post31767]]></link>
		</item>
		<item>
			<title>ez</title>
			<description><![CDATA[<p>
	There might be linked data in other tables ???????</p>
<p>
	Sure i can go to phpMyAdmin and do that....</p>
<p>
	There is more stuff... avatar, photo... etc...  (So it isnt THAT simple)</p>
]]></description>
			<pubDate>Do, 01 Dez 2011 21:27:42 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=6641&d=0#post31762]]></link>
		</item>
		<item>
			<title>tensh</title>
			<description><![CDATA[<p>
	I would say: go to phpmyadmin and execute a single sql query... There's no such way unless it's a self-made plugin.</p>
]]></description>
			<pubDate>Do, 01 Dez 2011 20:11:48 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=6641&d=0#post31761]]></link>
		</item>
		<item>
			<title>ez</title>
			<description><![CDATA[<p>
	How can I remove all banned members in 1 click... Genoa</p>
<p>
	 </p>
<p>
	thnx,</p>
<p>
	ez</p>
]]></description>
			<pubDate>Do, 01 Dez 2011 19:58:13 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=6641&d=0#post31759]]></link>
		</item>
	</channel>
</rss>