I did a test and here the user is moved to the banned category (at the mod options you can specify the id of the banned users, check it there)
and If I understood correctly: you want to change from:
Code:
$vbulletin->db->query_write("INSERT INTO " . TABLE_PREFIX . "userban (userid, usergroupid, displaygroupid, usertitle, customtitle,...) values (... value_usertitle, value_customtitle,...)
to
Code:
$vbulletin->db->query_write("INSERT INTO " . TABLE_PREFIX . "userban (userid, usergroupid, displaygroupid, customtitle,usertitle, ...) values (... value_customtitle,value_usertitle...)
well.. this modification dont change anything
the link to use one touch and ban from the profile has dissapeared, so I did a modification:
like Quarterbore said , you should find:
Code:
<if condition="can_moderate()">
<li class="thead"><a href="moderator.php?$session[sessionurl]do=useroptions&u=$userinfo[userid]">$vbphrase[edit_user_profile]</a></li>
</if>
after that, I added this:
Code:
<!-- one touch modification -->
<!-- insert_onetouch -->
<!-- one touch modification -->
then I changed the plugin "global_start" of this product to:
Code:
if (THIS_SCRIPT == 'member' AND $vbulletin->options['spamer_ban_enable'] AND (is_member_of($vbulletin->userinfo, explode(",", $vbulletin->options['spamer_ban_can_use'])) OR ($vbulletin->userinfo['userid'] != 0 AND in_array($vbulletin->userinfo['userid'], explode(",", $vbulletin->options['spamer_ban_can_use_user'])))))
{
$findend = "<!-- insert_onetouch -->";
$replace = '<li class=\"thead\"><a href=\"misc.php?$session[sessionurl]do=spamcleanconfirm&u=$userinfo[userid]\">$vbphrase[spammer_ban_member]</a></li>';
$vbulletin->templatecache['MEMBERINFO'] = str_replace("$findend", "$replace$findend", $vbulletin->templatecache['MEMBERINFO']);
}
this will insert the option to the user profile if the user has permission to see the link