Quote:
Originally Posted by Superorb
How do I ban a user, remove all posts, submit to Akismet, etc when the user has not made a single post yet?
|
Go to admincp/plugin & products/add new plugin
Product = vBulletin
Hook location = useradmin_edit_column1
Title = Submit to StopForumSpam.com
Execution order = 5
plugin php code
Code:
if (!is_member_of($user['usergroupid'], 6)) // we dont want to ban our admin account now do we
{
print_table_break('', $INNERTABLEWIDTH);
print_table_header("Submit to StopForumSpam");
print_label_row('Submit these details to www.stopforumspam.com ban list<BR><table><tr><td>Username:</td><td><input type="text" name="username" size="30" value="'.
$user['username'] . '"></td></tr>
<tr><td>Email:</td><td><input type="text" name="email" size="30" value="' . $user['email'] . '"></td></tr><tr><td>IP: </td>
<td><input type="text" name="ip_addr" value="' .$user['ipaddress'] . '"></td></tr></table>
<input name="api_key" type="hidden" value="INPUT SPAM O MATIC CODE HERE"><input onclick="this.form.action=\'http://www.stopforumspam.com/add.php\';this.form.submit()" type="button" class="button" value="' . $vbphrase['submit'] . '"/>');
}
Make sure input your spam o matic code in the above code
Active = Yes
If you want I have another custom plugin that works in a different way just pm me if you want it but adding this helps