Commit Graph

189 Commits

Author SHA1 Message Date
Tim Hunt fa8843c424 MDL-29548 allow message plugins to control message
defaults.

At the moment, each message_provider can specify defaults for
each message output, to say whether that message output should be
used for this type of message:
http://docs.moodle.org/dev/Messaging_2.0#Adding_new_message_type.

If the message provider does not set a default, this change allows
the message output to set the default.
2011-10-04 11:24:43 +01:00
Sam Hemelryk 34c46428f1 MDL-29189 mutlilang Reviewed the uses of course shortname and ensured things are being formatted consistently 2011-09-08 09:30:10 +12:00
Andrew Davis (andyjdavis) a47827691a MDL-27823 messaging: preventing html tags from being output to the UI 2011-08-22 15:28:30 +08:00
Andrew Davis (andyjdavis) d0752d358e MDL-28340 messaging: fixed a display issue when you search for and tried to view a conversation between two other users 2011-07-29 11:50:51 +08:00
Andrew Davis (andyjdavis) b38e2e28a1 MDL-27829 blocks: altered the algorithm used to find plugin page types 2011-06-27 12:27:41 +08:00
Sam Hemelryk 46d3b9be73 Merged branch 's7_MDL-26105_block_settings_master' git://github.com/andyjdavis/moodle.git with changes 2011-06-13 16:54:52 +08:00
Andrew Davis (andyjdavis) 35d725627c MDL-26105 blocks: added use of user friendly block settings to messaging 2011-06-10 13:52:53 +08:00
Ruslan Kabalin 838075147b MDL-27171 messages: some minor fixes in translate_message_default_setting function
Signed-off-by: Ruslan Kabalin <ruslan.kabalin@luns.net.uk>
2011-05-31 13:55:57 +01:00
Ruslan Kabalin bf0fb77293 MDL-27171 messages: avoid using depricated notification method.
Signed-off-by: Ruslan Kabalin <ruslan.kabalin@luns.net.uk>
2011-05-31 12:26:15 +01:00
Ruslan Kabalin 72e6af0344 MDL-27171 messages: fix static variable filtering bug in get_message_processors
Static $processors should contain the full list of processors only, when
filtering is required, the $processors variable should not be updated.

Lambda function refactoring is made as well.

Signed-off-by: Ruslan Kabalin <ruslan.kabalin@luns.net.uk>
2011-05-31 11:18:11 +01:00
Ruslan Kabalin e8fc7940a8 MDL-27171 messages: $defaultpreferences is an object, use isset instead.
Signed-off-by: Ruslan Kabalin <ruslan.kabalin@luns.net.uk>
2011-05-31 09:46:22 +01:00
Ruslan Kabalin ebe0c008ca MDL-27171 messages: commenting style changes and extra comments
Signed-off-by: Ruslan Kabalin <ruslan.kabalin@luns.net.uk>
Signed-off-by: Dan Poltawski <dan.poltawski@luns.net.uk>
2011-05-27 14:07:06 +01:00
Ruslan Kabalin 7a04c476a2 MDL-27171 messages: implement new syntax in messages.php and update processing
The new messaging default settings can be set in messages.php and deployed
during installation. This also ensures the removing of settings on plugin
uninstallation and contains the update script to populate current default
settings on the existing system when the new feature is introduced.

For security reason we have to avoid using library functions in upgrade
function, so we set defaults the blind way. At this point we do not expect
plugins to have individual messaging defaults presets anyway. The site
defaults are the same as were set for each user using
message_set_default_message_preferences function.

Signed-off-by: Ruslan Kabalin <ruslan.kabalin@luns.net.uk>
2011-05-27 14:06:56 +01:00
Ruslan Kabalin 814e373576 MDL-27171 messages: upgrade user profile messaging preferences interface
Existing user messaging preferences should accomodate default settings and
permissions.  This also includes some changes to default outputs preferences.

Signed-off-by: Ruslan Kabalin <ruslan.kabalin@luns.net.uk>
2011-05-27 13:49:28 +01:00
Ruslan Kabalin 1d72e9d441 MDL-27171 messages: add default message outputs management interface
This introduces the new page where admin may change the permissions and
defaults for particular combination of message processors and providers.

Signed-off-by: Ruslan Kabalin <ruslan.kabalin@luns.net.uk>
2011-05-27 13:49:28 +01:00
Ruslan Kabalin 75c34c23a4 MDL-27171 messages: add message outputs management interface page
This introduces the page for management message outputs (processors) where
admin may enable/disable them and jump to configuration pages.
2011-05-27 13:49:28 +01:00
Eloy Lafuente (stronk7) b47dcdf0de MDL-27471 minor fixups 2011-05-23 12:42:15 +02:00
Andrew Davis (andyjdavis) 19c5532b5d MDL-26436 message: reviewed use of recordsets in messaging 2011-05-10 16:37:06 +08:00
Andrew Davis (andyjdavis) 7e98f60bfb message MDL-26077 fixed up a problem with html tags being stripped out 2011-03-24 11:30:12 +08:00
Sam Hemelryk 9d61397181 Merge branch 'MDL-26607_search_error' of git://github.com/andyjdavis/moodle 2011-03-21 11:54:20 +08:00
Andrew Davis (andyjdavis) b6e526585a message MDL-26607 fixed sql error when searching for users and limiting search to your courses 2011-03-16 10:58:07 +08:00
andyjdavis 25bd5c75ab message MDL-26433 refactored the constants in messaging 2011-03-06 22:03:49 +08:00
Eloy Lafuente (stronk7) a8ccca5325 MDL-26404 messages - move textlib instance out from loop 2011-02-28 10:35:21 +01:00
Andrew b2bce32ff0 message MDL-26404 trimming course short to prevent long names messing up the UI 2011-02-23 11:00:41 +08:00
andyjdavis 731f8516bc message MDL-26435 removed commented out code 2011-02-17 11:03:18 +08:00
Eloy Lafuente (stronk7) c04c06dc8e Merge branch 'MDL-25616_recent_messages' of git://github.com/andyjdavis/moodle
Conflicts fixed:
	message/index.php
	message/lib.php
2011-02-15 19:26:21 +01:00
andyjdavis 3a00a167c6 message MDL-26119 fixed up the logged URL 2011-02-15 14:24:13 +08:00
andyjdavis bcab42daf2 message MDL-25616 adding recent conversations and recent notifications screens 2011-02-15 11:17:38 +08:00
Petr Skoda 8afc38bd39 Merge branch 'MDL-25708' of git://github.com/stronk7/moodle 2011-01-31 14:21:53 +01:00
Petr Skoda 31da70cce4 MDL-26158 fix form printing and processing 2011-01-29 18:04:50 +01:00
Eloy Lafuente (stronk7) 20222a3d7b MDL-25708 recordsets - fix message/lib.php 2011-01-25 19:59:00 +01:00
Andrew Davis 156205fc97 message MDL-25380 preventing html tags appearing in emailed messages when a message is sent to course participants 2010-11-24 04:17:52 +00:00
Andrew Davis 536a56e771 message MDL-25359 now specifying message recipient in IM email notification footer link to avoid weirdness on servers with autologin as guest turned on 2010-11-22 01:44:10 +00:00
Andrew Davis 2846b9a6a2 message MDL-25240 made filters work when displaying messages 2010-11-17 06:36:26 +00:00
Andrew Davis 943630292a message MDL-25148 fixed a bug with my popup availability bug fix 2010-11-11 09:17:47 +00:00
Andrew Davis d38755249d message MDL-25148 using method on $PAGE to allow or disallow popup notifications 2010-11-11 06:11:43 +00:00
Andrew Davis f38325960e message MDL-25095 increased the size of the message fragment displayed in the message search 2010-11-08 03:10:30 +00:00
Andrew Davis 4090a30fa2 message MDL-24972 removed some no longer required references to tabs 2010-11-02 07:58:16 +00:00
Andrew Davis 4ffa1463ec message MDL-24972 made sure all strings in messages are in the message recipient's language 2010-11-02 07:37:25 +00:00
Andrew Davis 08cd70cf48 message MDL-24972 integrated message search into /message/index.php instead of having it happen on a separate page. This removed the need for contacts.php to exist. 2010-11-02 06:09:10 +00:00
Andrew Davis f20b0afabb message MDL-24972 removed the repeated restatement of your search terms in the search results 2010-11-02 03:09:56 +00:00
Andrew Davis a402c30923 message MDL-24972 made search box smaller and added highlighting of currently selected user 2010-11-02 03:05:11 +00:00
Andrew Davis 31c532d0c8 message MDL-24972 removed the new search button and moved blocked users to last position in the messaging nav box 2010-11-01 09:01:45 +00:00
Andrew Davis 06d30c430c message MDL-24970 removed some commented out code and removed a reference to discussion.php 2010-11-01 07:34:32 +00:00
Andrew Davis 33bd52f3e9 message MDL-24935 a fix to prevent notifications of your own actions appearing in your own messaging history 2010-11-01 02:27:34 +00:00
Andrew Davis 14a0e7ddff message MDL-24771 another big commit of messaging fixes 2010-10-26 08:00:29 +00:00
Andrew Davis a813a74843 message MDL-24771 a big commit that fixes a whole bunch of small issues with messaging 2010-10-25 09:29:34 +00:00
Andrew Davis 32ef43e1eb message MDL-24786 infrastructure changes to add paging support to messaging 2010-10-21 06:40:15 +00:00
Andrew Davis 6ee2611c63 message MDL-24563 altered messaging so that forum post notifications aren't so overwhelming when viewed on /message/index.php 2010-10-15 06:59:02 +00:00
Andrew Davis 01e8532695 message MDL-24635 fixed a small bug that was preventing some tooltips from being included 2010-10-13 03:28:16 +00:00