MyBB Community Forums

Full Version: Warning users
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
When warning a user, you must enter an administrative note. How can I change that?
When you warn an user you must select how many points you give him
and below you add the administrative note
I know.. what I'm asking is how do I remove the need to enter an admin note.
Oh, sorry, i didn't read it well..

mmm i think that could be something related to the template.. but if you remove it, it will ask you anyway for it
I really don't know. sorry
You could remove the checks for the admin note field.
From line 102 of ./warnings.php:

if(!trim($mybb->input['notes']))
{
	$warn_errors[] = $lang->error_no_note;
}

Remove that.
Thank you. That worked.
I've just thought of two more things I need assistance with. New thread or post here?
New threads are better, easier to keep track of Smile
to avoid core file edits, would it not be easier to edit the template? in warning_warn change

			<td class="trow1"><textarea name="notes" cols="60" rows="4">{$notes}</textarea></td>

to

			<td class="trow1"><textarea name="notes" cols="60" rows="4">*{$notes}</textarea></td>

inserting the * will automatically populate the field some something so the core code will not produce the error message and upgrades will be easier (not that it matters with no more 1.4 releases planned)
Could do but people might remove it when submitting the form if they see it there.