Quote:
Originally Posted by CharlieDelta
|
just do this for code
PHP 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");
if ($vbulletin->options["glowhostspamomatic_apikey"])
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="' . $vbulletin->options['vbstopforumspam_apikey'] . '"><input onclick="this.form.action=\'http://www.stopforumspam.com/add.php\';this.form.submit()" type="button" class="button" value="' . $vbphrase['submit'] . '"/>');
else
print_label_row('You need an API key from www.stopforumspam.com before you can submit to the database' ,'');
}
all he needed to do is use the settings from the product
is the old stopforumspam setting string for the other product he is using
PHP Code:
$vbulletin->options['vbstopforumspam_apikey']
this is glowhost setting string for stopforumspam api
PHP Code:
$vbulletin->options['glowhostspamomatic_apikey']