I must warn a member yesterday. Therefor I made a new template for the message which was send to this member. Today I can't find the place in the admin center where I can edit and make new templates. Can aynone help please?
?action=moderate;area=warnings;sa=templates
moderation panel > logs > warnings > custom templates
So not in the admin panel, but in the moderation one.
Since I guess you are admin, the moderation panel is accessible from the dropdown of the admin menu, then last entry. ;D
Ah, now I found it. This is kind of hidden. Can you think about changing this? I had to click 4-5 times to reach this section.
Where would you put it?
4-5 clicks? Do you have the menus open on click?
Nope. Okay, two clicks: First on "admin" button, which changes to "moderate". Then move mouse to "protocols", "warnings", "templates".
I didn't think about looking for templates in the protocol section. I searched in the admin panel for them ("safety" or "members")... O:-)
As far as I can see its on the right position. Warnings are moderation activities. For me it is consequential.
Yes, you can use the template in your moderation activities. I agree with you there. But you can create templates there too, and only there. That's not what every moderator should be capable of (in my opinion).
Hmm. Staff member schould be qualified persons. If not, you have to train so. ;)
Actually, even though this is technically true, the menu is not the only way to reach it: when you are issuing a warning, next to the dropdown to select a template, there is a "new template" button that takes you automatically to the correct page. And this looks like the easiest way to reach that page.
Good point, NetFlag! :D
I can live with it as it is. Now I know where to search.
Ca you tell me please where the templates are saved in the database? I want to hide the standard templates and hopefully can do this in the database.
Sorry, I marked that as unread, but I lost it.
At the moment I can't have access to a database, so I can't say for sure, but I feel that three may be in the language files... or not. xD
Hm. I want to erase the possibility to choose them from the list. This has to be made in the database or is it not?
Good question.
I'll not be able to check until at least this afternoon.
I'm so sorry I left this open for so long!! :-[
As I said they are text strings (that is not a very good design TBH... something to track), and are loaded in ProfileAccount.controller..php at about line 369 there is this block of code:
// Setup the "default" templates.
foreach (array('spamming', 'offence', 'insulting') as $type)
{
$context['notification_templates'][] = array(
'title' => $txt['profile_warning_notify_title_' . $type],
'body' => sprintf($txt['profile_warning_notify_template_outline' . (!empty($warning_for_message) ? '_post' : '')], $txt['profile_warning_notify_for_' . $type]),
);
}
just remove it and the default templates will disappear.
In the future there is to handle that part a little better, thanks for bringing it to the attention! :D
ETA: tracked https://github.com/elkarte/Elkarte/issues/2029