SMF Support > SMF 2.0.x Support
Issuing a warning
Rs2armor:
This is not a bug btw, a question
When I go to issue a warning, and how I can select to "Send a notification" where it has the drop down menu of 3 options, is it possible to add my own pre-set notification?
codenaught:
You can select any of the options and then edit the box below with whatever text you want. You can even select the "------------------------" option and that will allow you to fill it in with it having nothing filled into it initially.
Rs2armor:
I know that but is there anyway to add your own, so like you dont have to type it everytime
BTW i pm'ed you like a week ago about the Document center thing.. Have you looked at it by chance?
codenaught:
Oh sorry for the misunderstanding.
About the PM, I added you to the Doc Help Squad right after you PMed me, sorry for never replying back letting you know that I did though.
To add your own preset, you would have to modify some code:
Sources/Profile-Actions.php:
--- Code: --- $context['notify_types'] = array('spamming', 'offence', 'insulting');
--- End code ---
Change that to include a keyword for each preset you want to add, so if you just wanted to add a 'too_funny' option you would make that:
--- Code: --- $context['notify_types'] = array('spamming', 'offence', 'insulting', 'too_funny');
--- End code ---
The only other thing you will have to do is add somewhere in Themes/default/languages/Profile.english.php:
--- Quote ---$txt['profile_warning_notify_for_too_funny'] = 'You were too funny so you have been warned for being too silly.';
$txt['profile_warning_notify_title_too_funny'] = 'Too Funny';
--- End quote ---
Notice the too_funny part corresponds with what you added to the other part.
Note: You will have to clear your cache before the changes will work (Admin > Forum Maintenance > Empty the file cache).
Rs2armor:
Alright thanks, But im confused about the Doc Squad thing, How can I actually type something up?
Navigation
[0] Message Index
[#] Next page
Go to full version