• Welcome to Simple Machines Community Forum. Please login or sign up.
October 20, 2021, 05:49:27 PM

News:

Follow SMF on Twitter.


Issuing a warning

Started by Rs2armor, March 22, 2008, 10:29:29 PM

Previous topic - Next topic

Rs2armor

March 22, 2008, 10:29:29 PM Last Edit: March 23, 2008, 12:36:02 AM by 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.
Dev Consultant
Former SMF Doc Coordinator

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:

$context['notify_types'] = array('spamming', 'offence', 'insulting');

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:

$context['notify_types'] = array('spamming', 'offence', 'insulting', 'too_funny');

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';

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).
Dev Consultant
Former SMF Doc Coordinator

Rs2armor

Alright thanks, But im confused about the Doc Squad thing, How can I actually type something up?

codenaught

At the bottom of the board index you should see a new board called "Documentation Help Squad". You are welcome to type drafts of anything you would like to be published on the Online Manual for peer and team review in that board.
Dev Consultant
Former SMF Doc Coordinator

Rs2armor

Nope, it does not show it for me.

codenaught

It really should. It's under the "Comments and Suggestions" category, so you need to click that to expand it first before you can see it. Probably should have explained that because perhaps you are using the default "wiki" theme over there.

Direct URL to the board:

http://docs.simplemachines.org/index.php?board=97.0
Dev Consultant
Former SMF Doc Coordinator

Rs2armor

Ah,

And everything makes sence..

Thanks for everything =p

Btw just wondering what is the for?

codenaught

hehe, it's something an SMF Customizer made for each member of the SMF Team.

He explains it a bit here:

http://www.simplemachines.org/community/index.php?topic=228890.msg1470738#msg1470738
Dev Consultant
Former SMF Doc Coordinator

Rs2armor

okay so $context['notify_types'] = array('spamming', 'offence', 'insulting'); was not in
Sources/Profile-Actions.php

codenaught

Sorry, that line of code is in the Themes/default/Profile.template.php file. :) Disregard the mention of the Profile-Actions.php file.
Dev Consultant
Former SMF Doc Coordinator

Rs2armor


Advertisement: