73 Commits

Author SHA1 Message Date
Sujith Haridasan
73d604369d MDL-71062 core: Step 1 deprecation of print_error function 2022-07-13 08:20:54 +05:30
Ryan Wyllie
17d982d751 MDL-63303 message: message/edit.php opens setttings in message drawer 2018-11-15 14:43:21 +08:00
Ryan Wyllie
14501b1c13 MDL-54698 message: add preferences pages to breadcrumbs 2016-10-07 16:26:40 +08:00
Ryan Wyllie
8c125526f1 MDL-54698 message: move notifications prefs into own page 2016-10-07 16:26:40 +08:00
Ryan Wyllie
a0eabdd3c8 MDL-54698 message: make preferences page ajax save 2016-10-07 16:26:40 +08:00
Russell Smith
1fcf0ca8a5 MDL-35628 performance: Remove dirname() where possible.
dirname() is a slow function compared with __DIR__ and using
'/../'.  Moodle has a large number of legacy files that are included
each time a page loads and is not able to use an autoloader as it is
functional code.  This allows those required includes to perform as
best as possible in this situation.
2016-06-10 08:06:49 +10:00
Ankit Agarwal
36bbb0b70a MDL-49931 preferences: Add cancel button to forms 2015-05-05 10:32:14 +05:30
Adrian Greeve
06347532f0 MDL-49412 navigation: Isset check on email setting.
The messaging preferences doesn't always seem to show the
email settings during behat tests and when updating details
will throw a warning.

Part of MDL-45774.
2015-04-10 17:18:24 +08:00
Damyon Wiese
e9f1284929 MDL-45774 Navigation changes: Extra cleaning for mailformat setting 2015-04-10 17:18:23 +08:00
Damyon Wiese
479fa47d0b MDL-49632 User preferences: Move preferences out of edit profile form.
This is a super confusing place to change your default text editor. Lets
make these things easy to find.

Part of MDL-45774
2015-04-10 17:17:08 +08:00
Adrian Greeve
f495187da7 MDL-48935 navigation: Update the user nav breadcrumbs.
Part of MDL-45774.
2015-04-10 17:17:07 +08:00
Adrian Greeve
880c50731f MDL-48930 navigation: Using user headers in user pages.
Pages that are percieved to be in a user context are now
using a user context for the header.

Part of MDL-45774
2015-04-10 17:17:07 +08:00
Dave Cooper
59d5228465 MDL-48776 core_message: Fixed userid check.
Thanks to Oleg Demeshev for providing the patch.
2015-01-19 15:20:15 +08:00
Petr Škoda
d5814f4e22 MDL-41811 simplify the admin tree detection logic and fix navigation in multiple areas 2013-10-21 14:17:55 +08:00
Andrew Davis
9279cae63b MDL-37962 core_message:reimplemented the beep on new message functionality from 1.9 2013-08-06 10:30:07 +07:00
Andrew Davis
058dadb059 MDL-36162 core_message: string clean up 2012-11-19 09:16:25 +08:00
Andrew Davis
5e008d36ee MDL-36162 core_message: removed the unnecessary and confusing course URL parameter as well as fixing the broken breadcrumb 2012-11-19 09:16:25 +08:00
Andrew Davis
26e02d7586 MDL-34367 core_message: removed the call to $PAGE->set_popup_notification_allowed from message/lib.php 2012-10-01 11:00:48 +08:00
Andrew Davis
c6841df4df MDL-34406 message: removed an unnecessary string creation 2012-08-24 08:05:50 +08:00
Ankit Agarwal
2d9c05b930 MDL-34471 libraries: Remove unused context calls 2012-08-02 15:37:41 +08:00
Ankit Agarwal
bf0f06b1be MDL-34471 libraries: Replace all uses of get_context_instance() with respective context_XXXX::instance() method 2012-08-02 15:37:38 +08:00
Andrew Davis
ff038e4bae MDL-28187 message: fixed up $PAGE->set_url() in /message/index.php so the nav highlighted properly 2012-03-17 11:41:06 +07:00
Andrew Davis
6fbd60ef57 MDL-30987 message: updated phpdocs for /lib/messagelib.php and /message 2012-02-21 10:57:55 +07:00
Andrew Davis
f6ce2eb25a MDL-30544 message: prevented the temporarily disable notifications checkbox from erasing your messaging preferences 2011-12-01 16:54:48 +08:00
Andrew Davis (andyjdavis)
bb3546f3c2 MDL-22232 messaging: added the ability to temporarily disable notifications to a particular user 2011-09-12 14:05:14 +08:00
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