48 Commits

Author SHA1 Message Date
Dan Poltawski
a8134ff68b messaging: MDL-26960 Check correct users permissions
When on message profile page, the incorrect capability was checked
2011-06-09 15:18:43 +01:00
Ruslan Kabalin
60bbe7684a MDL-27171 messages: meet require_once usage gudelines
Signed-off-by: Ruslan Kabalin <ruslan.kabalin@luns.net.uk>
2011-05-31 15:16:17 +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
Andrew Davis
fa8f03efbb message MDL-25264 made it possible to edit another user's message preferences 2010-11-18 05:28:51 +00:00
Andrew Davis
7610341ab8 message MDL-24972 removed a table from the messaging config page 2010-11-01 09:09:58 +00:00
Andrew Davis
2509c0e94b message MDL-24771 moved common message settings out of the popup processor 2010-10-26 02:39:23 +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
a93cdf85ba message MDL-24584 made some UI strings more descriptive 2010-10-08 08:50:49 +00:00
Petr Skoda
8e803c3f9f MDL-24321 switching to stdClass in /login/ and /message/ 2010-09-21 08:18:23 +00:00
Petr Skoda
71666cf314 spelling fixes 2010-09-17 19:41:02 +00:00
Petr Skoda
1e72553540 fixed wrong admin detection 2010-09-17 19:35:21 +00:00
Petr Skoda
7b2e259c8c MDL-23856 fixed incorrect integer comparison, we should not use === or !== because one may be integer and the other string 2010-08-18 22:18:53 +00:00
David Mudrak
cb616be854 MDL-21695 Making old_help_icon() deprecated
Some of the callers have never been fully implemented (help file never existed)
so I just dropped the help icon. In other cases, new help_icon() is
used. The help icons support in the messaging must be reviewed by the
subsystem maintainer.
2010-08-16 15:29:46 +00:00
Petr Skoda
4f622c38a1 MDL-23774 only administrators may edit administartor accounts 2010-08-12 09:44:28 +00:00
Sam Hemelryk
5ac851fba1 messaging MDL-23223 Fixed navigation link being added when messaging disabled 2010-07-13 02:35:31 +00:00
Andrew Davis
be8e0d8a59 message MDL-23076 fixed up broken calls to get_string looking for pluignname instead of pluginname 2010-07-05 05:43:56 +00:00
Petr Skoda
55825877f1 fixed message plugin names
AMOS BEGIN
 MOV [email,message_email],[pluginname,message_email]
 MOV [jabber,message_jabber],[pluginname,message_jabber]
 MOV [popup,message_popup],[pluginname,message_popup]
AMOS END
2010-07-04 13:23:56 +00:00
Andrew Davis
c8621a0280 messaging MDL-22320 first commit for new messaging UI 2010-06-25 08:16:10 +00:00
Martin Dougiamas
99cca8470e MDL-19124 Continued misc user profile cleanups
- fixed user styles in base theme
    - added new divs for better control on user profile and user index pages
    - reduced data on course user profiles down to minimum
    - removed user/tabs.php completely and all uses of it
    - changed default user icon pix to something very bland (bye bye smiley cake)
2010-05-16 08:21:12 +00:00
Petr Skoda
596509e431 MDL-21695 renaming ->help_icon() to old_help_icon() and going to introduce new help_icon() with new parameters and detailed debugging - hopefully this will help during the conversion to new help 2010-04-13 20:34:27 +00:00
Petr Skoda
b3130713af MDL-21694 moving message processor strings to correct plugin location 2010-04-01 19:43:07 +00:00
Petr Skoda
a685593466 MDL-21233 moodle_url improvemewnts, code simplification, more diagnostics; fixed several regressions 2010-01-16 15:39:56 +00:00
Petr Skoda
4bcc51185c MDL-21217, MDL-21198 simplified/improved outputlib help icon related apis + several fixed regresions 2009-12-30 15:19:55 +00:00
Andrew Davis
fa24e8750e user profile MDL-18914 Clicking on username in breadcrumb trail on messaging preferences page now works 2009-11-18 02:49:00 +00:00
Petr Skoda
7c7d3afab5 MDL-20766 message_send() used intead of events, it will enable us to improve performance and solve db transactions issues independedntly from events, hopefully this will give us more options in future too because the events are designed specifically for communication "moodle-->external systems" 2009-11-07 10:27:57 +00:00
Petr Skoda
1d42298086 MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup 2009-11-01 12:22:45 +00:00
samhemelryk
eb5334ff48 message MDL-19801 Upgrade deprecated calls and added set_url calls 2009-09-29 03:54:14 +00:00
samhemelryk
91152a3518 navigation MDL-20216 Refactored add arguments
Moved $action argument from arg5 to arg2
2009-09-04 03:12:01 +00:00
samhemelryk
5a2940429d message MDL-19801 Upgraded print_header and build_navigation calls to use PAGE and OUTPUT equivilants 2009-09-03 08:58:41 +00:00
nicolasconnault
8f3b787b1d MDL-19799 Adding missing echo 2009-08-24 07:06:56 +00:00
nicolasconnault
aa9a686740 MDL-19799 Upgraded calls to helpbutton, print_simple_box* and notify 2009-08-18 05:20:12 +00:00
samhemelryk
a1b53dcf3f messages MDL-19664 Clean up the messages javascript code
I have cleaned up the message Javascript code, implementing the new PAGE methods
and at the same time implemented the new OUTPUT methods
2009-06-30 08:33:29 +00:00
skodak
93f66983cc MDL-17773 new get_login_url() function - fixes missing httpslogin tweaks 2009-01-02 22:56:48 +00:00
moodler
97844c1dda MDL-16267 Moved and tidied help files 2008-09-26 03:27:54 +00:00
moodler
305a014f8c MDL-16267 More cleanups, simplifications 2008-09-26 02:43:39 +00:00
lfrodrigues
13d974caf5 MDL-16267 added helpbutton for all the message providers 2008-09-25 17:10:01 +00:00
dongsheng
53e242f9d1 "MDL-14129, fixed hardcoded print_header" 2008-09-25 07:40:31 +00:00
moodler
df6853e8eb MDL-16267 Removed another table and added "th" for better readability. Removed hardcoded styles 2008-09-23 03:15:02 +00:00
moodler
f3d095f870 MDL-16267 and MDL-10107
I did some further work tidying up the form.  I also just treat the popup like another plugin and moved all the config into the plugin.
This still needs help buttons everywhere now!
2008-09-23 03:05:44 +00:00
moodler
14d70d26d2 MDL-10107 Some new text for Messaging interface and some tips for Luis to continue with 2008-09-23 02:27:57 +00:00
moodler
838a8eb146 MDL-16500 Removed the old Jabber class from the module and moved to a new one called xmpphp in core libraries
Also cleaned up some notices in message/edit.php
2008-09-15 05:55:58 +00:00
lfrodrigues
1c50df9f24 MDL-16268 User-User send messages now use new messaging system. 2008-08-30 17:53:30 +00:00
lfrodrigues
d18b1bbdec MDL-16267 done all items in list (html tidy, xhtml strict, plugins tidy) 2008-08-29 23:19:54 +00:00
moodler
b844d2b069 MDL-10107 Fixed (sort of) the messaging form ... it's still not quite right, but leaving it for Luis 2008-07-31 08:14:45 +00:00
moodler
120b375891 MDL-10107 Fixed the definition of message providers ... it now works through files very similar to those for events and capabilities, which makes them easy to add/remove/change as necessary 2008-07-31 08:01:46 +00:00
moodler
539dba3b52 MDL-10107 Fixing up navigation on edit page 2008-07-24 08:57:32 +00:00
moodler
3b120e464f MDL-10107 - First check-in of Messaging 2.0 code from Luis Rodrigues, GSOC student.
This new messaging system replaces all the various email_to_user() calls.
They are now replaced by events triggers, and the messages are then
processed centrally according to user preferences and sent to one or more
processors (email, popup, jabber etc...)

This code is not finished yet, a lot of work still has to be done on the
interface.  However, the basic structure is there and should be working.
Luis and I will be reviewing and polishing this heavily in the next few weeks.
2008-07-24 08:38:03 +00:00