Advertisement:

Author Topic: Issuing a warning  (Read 7647 times)

Offline Rs2armor

  • Jr. Member
  • **
  • Posts: 124
Issuing a warning
« on: March 22, 2008, 10:29:29 PM »
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?
« Last Edit: March 23, 2008, 12:36:02 AM by Rs2armor »

Offline codenaught

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 14,653
  • Gender: Male
  • Formerly Known As akabugeyes
Re: Issue'ing a warning
« Reply #1 on: March 22, 2008, 10:33:03 PM »
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

Offline Rs2armor

  • Jr. Member
  • **
  • Posts: 124
Re: Issue'ing a warning
« Reply #2 on: March 22, 2008, 10:41:41 PM »
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?

Offline codenaught

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 14,653
  • Gender: Male
  • Formerly Known As akabugeyes
Re: Issue'ing a warning
« Reply #3 on: March 22, 2008, 11:01:01 PM »
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: [Select]
$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:

Code: [Select]
$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

Offline Rs2armor

  • Jr. Member
  • **
  • Posts: 124
Re: Issue'ing a warning
« Reply #4 on: March 22, 2008, 11:09:46 PM »
Alright thanks, But im confused about the Doc Squad thing, How can I actually type something up?

Offline codenaught

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 14,653
  • Gender: Male
  • Formerly Known As akabugeyes
Re: Issue'ing a warning
« Reply #5 on: March 22, 2008, 11:17:43 PM »
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

Offline Rs2armor

  • Jr. Member
  • **
  • Posts: 124
Re: Issue'ing a warning
« Reply #6 on: March 22, 2008, 11:20:49 PM »
Nope, it does not show it for me.

Offline codenaught

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 14,653
  • Gender: Male
  • Formerly Known As akabugeyes
Re: Issue'ing a warning
« Reply #7 on: March 22, 2008, 11:22:33 PM »
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

Offline Rs2armor

  • Jr. Member
  • **
  • Posts: 124
Re: Issue'ing a warning
« Reply #8 on: March 22, 2008, 11:26:41 PM »
Ah,

And everything makes sence..

Thanks for everything =p

Btw just wondering what is the for?

Offline codenaught

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 14,653
  • Gender: Male
  • Formerly Known As akabugeyes
Re: Issue'ing a warning
« Reply #9 on: March 22, 2008, 11:35:00 PM »
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

Offline Rs2armor

  • Jr. Member
  • **
  • Posts: 124
Re: Issue\'ing a warning
« Reply #10 on: March 23, 2008, 12:23:25 AM »
okay so
Code: [Select]
$context['notify_types'] = array('spamming', 'offence', 'insulting'); was not in
Sources/Profile-Actions.php

Offline codenaught

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 14,653
  • Gender: Male
  • Formerly Known As akabugeyes
Re: Issuing a warning
« Reply #11 on: March 23, 2008, 12:43:38 AM »
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

Offline Rs2armor

  • Jr. Member
  • **
  • Posts: 124
Re: Issuing a warning
« Reply #12 on: March 23, 2008, 12:57:39 AM »
Alright great job =D