Skip to main content
Topic: warning templates - where to find? (Read 4033 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

warning templates - where to find?

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?

Re: warning templates - where to find?

Reply #1

?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
Bugs creator.
Features destroyer.
Template killer.

Re: warning templates - where to find?

Reply #2

Quote from: emanuele – 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.

Re: warning templates - where to find?

Reply #3

Where would you put it?

4-5 clicks? Do you have the menus open on click?
Bugs creator.
Features destroyer.
Template killer.

Re: warning templates - where to find?

Reply #4

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:-)

Re: warning templates - where to find?

Reply #5

As far as I can see its on the right position. Warnings are moderation activities. For me it is consequential.

Re: warning templates - where to find?

Reply #6

Quote from: NetFlag – Warnings are moderation activities.

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).

Re: warning templates - where to find?

Reply #7

Quote from: Jorin – 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. ;)

Re: warning templates - where to find?

Reply #8

Quote from: Jorin – But you can create templates there too, and only there.
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.
Bugs creator.
Features destroyer.
Template killer.

Re: warning templates - where to find?

Reply #9

Good point, NetFlag!  :D

I can live with it as it is. Now I know where to search.

Re: warning templates - where to find?

Reply #10

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.

Re: warning templates - where to find?

Reply #11

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
Bugs creator.
Features destroyer.
Template killer.

Re: warning templates - where to find?

Reply #12

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?

Re: warning templates - where to find?

Reply #13

Good question.
I'll not be able to check until at least this afternoon.
Bugs creator.
Features destroyer.
Template killer.

Re: warning templates - where to find?

Reply #14

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:
Code: [Select]
		// 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
Bugs creator.
Features destroyer.
Template killer.