Quote:
Originally Posted by Chadi
It would be awesome to have a convenient way to submit spam info directly from the vb admin panel to stopforumspam.com
|
There already is. I've posted this before:
1. You'll need the SFS API key. Replace "1234567890abcd" in last line below with valid API.
2.,
AdminCP >>
Plugins and Products >>
Add New Plugin
3. Details for plugin
Product: vBulletin
Hook Location: useradmin_edit_column1 (or useradmin_edit_column2 if you prefer)
Title: Submit to StopForumSpam.com
Execution Order: 5
Plugin PHP Code:
Code:
if (!is_member_of($user['usergroupid'], 6)) // dont ban admin account
{
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="1234567890abcd"><input onclick="this.form.action=\'http://www.stopforumspam.com/add.php\';this.form.submit()" type="button" class="button" value="' . $vbphrase['submit'] . '"/>');
}