Quote:
Originally Posted by beano33
Our other system is all done manually. We recorded the info in usernotes and in a private forum. There's zero importablility. Past bans would have to be entered manually. Ideally there should be a field for this similar to the reputation field in User Manager in AdminCP that's editable by admins or others with permission. It's no biggie, this is going to save us a lot of time and work regardless of whether we can add in prior bans. 
|
Oh, then it's easy. Do the following changes in your admin/user.php file.
Search for:
PHP Code:
// PROFILE FIELDS SECTION
print_table_header($vbphrase['user_profile_fields']);
$profilefields = $DB_site->query("SELECT * FROM " . TABLE_PREFIX . "profilefield ORDER by displayorder");
while ($profilefield = $DB_site->fetch_array($profilefields))
{
print_profilefield_row($profilefield, $userfield);
}
Right below that, add:
PHP Code:
print_table_break('', $INNERTABLEWIDTH);
print_table_header("Warnings Information");
print_input_row('Warning Level', 'user[warning_level]', $user['warning_level']);
print_input_row('Bans', 'user[warning_bans]', $user['warning_bans']);
Two more fields are added, in the page you get when you are looking at the details of one of your users, the Warning Level of the user at that moment, and how many bans he has already. Edit to your heart's desire.
I hope this helps.
Rgds