85 Commits

Author SHA1 Message Date
Petr Skoda
4ad72c284d MDL-30548 support user suspended flag in admin UI
This patch includes:
* user management suspend UI tweaks and other coding style improvements
* suspended info in user profiles
* suspend option in advanced edit form
* suspended user filtering
* hidden user fields option for suspended field

Thanks Sam Hemelryk for valuable feedback.
2012-01-03 16:35:21 +01:00
Rajesh Taneja
dedb69a2a1 MDL-27896 editor - parent context will be respected by editor in case context is not created. 2011-08-12 11:33:21 +08:00
Rajesh Taneja
e9de1cf49c MDL-27896 context - Fixed editor context to observe filter status 2011-08-12 11:33:21 +08: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
Petr Skoda
8bdb31ed54 MDL-26564 fix regressions and other problems in csv user upload
This patch fixes incorrect password creating, updating and resetting, updating of user fields, unsupported auth plugins are correctly identified, modification of mnethostid is prevented, fixed problem with email duplicates, new password is generated for users without email, etc. It also includes coding style improvements, more inline docs, future TODOs and license information.
2011-02-28 08:27:31 +01:00
Petr Skoda
de2d81fad5 MDL-25459 removing option to set picture and tags in admin profile setup form, we can use these only after setup is finished 2010-12-03 05:26:17 +00:00
Petr Skoda
17c70aa007 MDL-16723 automatic redirects to https when loginhttps enabled - this solves accidental usage of http version + it also solves recent navigation regressions + fixed regression from PAGE conversions + deprecated old httpsrequired() and $HTTPSPAGEREQUIRED 2010-10-10 15:04:19 +00:00
Petr Skoda
bf718f50ac MDL-24321 switching to stdClass in /user/ 2010-09-21 08:27:29 +00:00
Petr Skoda
4f622c38a1 MDL-23774 only administrators may edit administartor accounts 2010-08-12 09:44:28 +00:00
Petr Skoda
a1248ca40e MDL-18964 moving the preloaded custom profile fields into $USER->profile array instead of injecting fields directly into $USER; unfortunately this is not consistent with other preloaded data such as preferences, we can not refresh it properly because we can inject the data only once, also we risk future collisions when adding new fields into user table + implemented reloading after the profile changes; change noted in release notes 2010-07-25 21:00:59 +00:00
Sam Hemelryk
5ac851fba1 messaging MDL-23223 Fixed navigation link being added when messaging disabled 2010-07-13 02:35:31 +00:00
Petr Skoda
64f93798d4 MDL-22950 adding new component column to the files table, unfortunately this change requires changes in all 2.0dev code, please review all custom code that was already upgraded to 2.0; fixing multiple problems and regressions in mod/assignment 2010-07-03 13:37:13 +00:00
Petr Skoda
6b8ad965dc MDL-16919 we have to really use the username cleaning only when manually adding new accounts, any sync with external system needs the exact match without any cleaning! 2010-06-06 14:06:30 +00:00
Martin Dougiamas
03d9401e7d My Moodle MDL-19124 New version of My Moodle, User profiles and Course profiles, all with block support
Thanks very much to Remote Learner Canada, especially Hubert Chathi and Olav Jordan, for their work on the bulk of this code, and also Mike Churchward for supporting them.  I worked on it after that (actually simplified it by removing a feature temporarily: multiple pages) to bring it more to what I was imagining, and to provide a base to build on and get all the navigation perfect.

There's still work to do.  Some blocks don't quite work as expected, and some of the code still needs upgrading to bring it fully into line with 2.0.  We also could use a much better course overview block and better CSS styling of the profile pages.  But it's definitely more usable this it was, I think.
2010-05-04 13:04:35 +00:00
Martin Dougiamas
8cb89f5bd5 Added a heading when editing a user as admin 2010-05-04 02:27:02 +00:00
Sam Hemelryk
3406acdef9 navigation MDL-22044 Major navigation structure changes.
Navigation has now been re-ordered in accordance with http://docs.moodle.org/en/Development:Navigation_2.0_structure.
This has led to several changes in the way in which navigation is generated included API changes, most notably using the
navigation_nodes add method now returns the newly added node rather than the key.
At the same time the global_navigation_tree block has been renamed to navigation and settings_navigation_tree to settings.
2010-04-19 06:30:30 +00:00
Petr Skoda
61ef8f9f88 MDL-20204 removing deprecated admin headers 2010-03-31 08:05:53 +00:00
Petr Skoda
4f0c2d0009 MDL-21655 big scary enrolment and roles improvements - see tacker for list of changes, includes other minor fixes too 2010-03-31 07:41:31 +00:00
Rossiani Wijaya
d3d393ab37 MDL-21226 - add 'timecreated' column to user table. During an update, the column will copy the value from 'firstaccess' column. if the account never been access, it will be set to current time of the update.
also, modified the files for signup, add new user, and upload user to initialize the value of timecreated field.
2010-02-03 04:25:20 +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
Rossiani Wijaya
07ed083e4e MDL-16919 - Allow username to contain alphanumeric lowercase characters, underscore (_), hyphen (-), period (.) or at symbol (@) 2010-01-13 06:23:54 +00:00
Petr Skoda
78946b9bdb MDL-20204 first batch of major theme changes, some regressions are still there, expect more changes and improvements soon; see tracker for details and list of subtasks 2009-12-16 18:00:58 +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
aa6c1ced0a MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup 2009-11-04 08:11:02 +00:00
Sam Hemelryk
8bdc9cacad files MDL-20601 Conversion of many of the uses of print_textarea, and the mforms htmleditor to the new editor
Please forgive me if I have missed converting any output statements. If you do find an output statement that is not formatting correctly please refere to the table I added to this bug in regards to how it should be formatted.
2009-11-04 06:14:06 +00:00
samhemelryk
ce221eb52d user MDL-19825 Added set_url calls, replaced deprecated functions, and boilderplate 2009-09-25 04:02:46 +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
caa8363f83 user MDL-19825 Upgraded print_header and build_navigation calls to use PAGE and OUTPUT equivilants 2009-09-02 08:36:16 +00:00
nicolasconnault
5e61d1a4a2 MDL-19825 Converted print_box* to $OUTPUT->box* 2009-08-10 05:50:10 +00:00
nicolasconnault
0ab75c34ba MDL-19825 Converted all print_footer() calls 2009-08-06 14:08:20 +00:00
nicolasconnault
8fa89bfd04 MDL-19825 Migrated calls to print_heading 2009-08-06 08:15:05 +00:00
tjhunt
320c5e7b5a themes: MDL-19077 - Incorrect initialisation order for user/editadvanced.php 2009-07-13 04:21:15 +00:00
tjhunt
d4a03c00ea themes & blocks - MDL-19077 & MDL-19010 blocks are now printed by the theme
The code to print blocks in now in theme layout.php files. (Or in
moodle_core_renderer::handle_legacy_theme)

Code for printing blocks everywhere else has been stripped out.
(Total diffstat 1225 insertions, 2019 deletions)

The way the HTML for a block instance is generated has been cleaned
up a lot. Now, the block_instance generates a block_contents
object which gives a structured representation of the block,
and then $OUTPUT->block builds all the HTML from that.

How theme config.php files specify the layout template and block
regions by page general type has been changed to be even more flexible.

Further refinement for how the theme and block code gets initialised.

Ability for scrits to add 'pretend blocks' to the page. That is,
things that look like blocks, but are not normal block_instances.
(Like the add a new block UI.)

Things that are still broken:
 * some pages in lesson, quiz and resource. I'm working on it.
 * lots of developer debug notices pointing out things that
   need to be updated.
2009-07-09 07:35:03 +00:00
samhemelryk
f7813100a5 user MDL-16706 This was not the solution, removing YUI call here 2009-06-26 08:12:50 +00:00
samhemelryk
c6620f3a4a user-adduser MDL-16706 Included YUI event using requires yui_lib 2009-06-26 04:00:51 +00:00
tjhunt
52eab6669b MDL-19631 replace deprecated function usage. 2009-06-26 02:23:19 +00:00
skodak
29750da13d MDL-17458 fixing installation regressions - can not edit new admin properly 2009-06-07 09:40:27 +00:00
skodak
2a7eff41ad MDL-18293 $DB->something is using exceptions, no need for ifs there, removing useless strings 2009-06-03 20:37:28 +00:00
skodak
770f0cea30 MDL-17458 fixed headers used during installation 2009-02-01 17:45:32 +00:00
skodak
e8656befac MDL-17942 more session refactoring 2009-01-18 18:00:44 +00:00
skodak
88fdd846f6 MDL-17942 fixed gc regressions, added gc after deleting users and similar cases 2009-01-18 12:20:55 +00:00
tjhunt
c060fc6a12 blog / tags: MDL-17900 Use the new tags field type to tag users' interests. 2009-01-16 07:14:39 +00:00
tjhunt
eff819c37a admin tree: MDL-13104 - fix another external page so there are not problems when you click the blocks editing on/off button. 2008-12-22 03:16:57 +00:00
skodak
12fab7081e fooMDL-16698 formslib filenamager element: forum converted to use new filemanaer element (no JS/picker integration for now sorry) 2008-11-19 21:53:37 +00:00
skodak
c6800efef1 MDL-16368 commenting out unfinished code for now 2008-09-06 22:04:42 +00:00
scyrma
98bc644685 MDL-15405: add more (still partial) support for inline files in user profiles. 2008-09-05 11:02:48 +00:00
lfrodrigues
818dc096d1 MDL-10107 - added missing error translation string 2008-08-02 00:13:10 +00:00
lfrodrigues
2044a2b26f MDL-10107 - Removed old email_to_user with we still arround and added default message processor for user,
adminuser and on messagelib
2008-08-02 00:04:29 +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
scyrma
e7134583d7 MDL-14237: Removing all remaining tag-related uses of html_entity_decode (merge from 1.9) 2008-07-07 07:45:51 +00:00