590 Commits

Author SHA1 Message Date
patrickslee
5390cbb7fc On a rare case courses will have duplicate sections those have the same id. Added some code to re-order sections if this is found when moving sections (Merged from MOODLE_15_STABLE) 2005-10-14 03:12:41 +00:00
moodler
4a7948ce16 Ported handy button from 1.5 that somehow didn't get merged before 2005-10-05 08:21:50 +00:00
martinlanghoff
9d866ae0f1 Merged from MOODLE_15_STABLE - make_categories_list(): initialize variables correctly to cover up for broken call convention. Passing unset variables by ref to be populated is a BAD idea. Do The Right Thing and Return your function output or there'll be no dessert for you. 2005-09-06 22:29:16 +00:00
mjollnir_
1807d0a953 Merged from MOODLE_15_STABLE: Backing out a previous patch of mine - bad merge with our local copy 2005-09-06 21:23:38 +00:00
mjollnir_
f871698811 Reworked my moodle overview api to be more efficient. Note that this changes how mod_print_overview is called 2005-09-05 01:31:08 +00:00
mjollnir_
c9169822b2 In course overview in my moodle page, dim hidden courses 2005-09-04 22:37:46 +00:00
mjollnir_
3509dd97f0 Merged from MOODLE_15_STABLE: Fixing up a bug in the log selector to do with optionally showing all users in the dropdown when over COURSE_MAX_USERS_PER_DROPDOWN 2005-09-04 21:07:36 +00:00
mjollnir_
861efb1937 Allow moving courses and editing courses and stuff from the course results search page (now has turn editing on button) 2005-09-01 04:48:22 +00:00
thepurpleblob
814f88c093 Removed $printfunction variable, which seems completely unused anyway (and isn't
a parameter for the function anyway)
2005-08-17 08:36:31 +00:00
mjollnir_
0705ff843b Course request feature. Allows normal users to 'request' courses they would like created,
and admins can approve or reject pending courses.

Also, contains the ability to restrict activity modules on a per course basic. Strict config options:
  enable restricting modules at ALL (for all courses, no courses, requested courses), what to do by default for newly created courses
  as well as what modules to enable for above category by default.

This feature was created for the aim of building a community side to moodle - for institutes that have strict courses and enrolments, allowing normal users to request interest courses is a good feature,
but some modules may be redundant (assignment, lesson, quiz etc)

  Please test!
2005-08-16 06:15:49 +00:00
mjollnir_
0d6b9d4f4d MyMoodle: new /my/ page, contains course overview (module based, forum done). User defined blocks on /my/ page, admin defined stickyblocks. Needs lots of testing. Held off bumping version.php for blocks because of the postgres upgrade fixes Patrick is putting in. 2005-08-16 00:25:39 +00:00
moodler
19374e76a5 Added currency retrieval from database bug 3838 2005-08-09 15:09:29 +00:00
moodler
7eca967cd5 Logs now call new iplookup plugin 2005-07-18 08:07:00 +00:00
thepurpleblob
96dcfb5621 Replaced require_variable() and optional_variable() with required_param() and
optional_param(). Fixed notice when doing a sort in recent activity.
2005-06-13 19:06:28 +00:00
thepurpleblob
21283ddc98 Tidied up logs HTML a bit, to make it more readable. 2005-06-13 11:19:19 +00:00
gustav_delius
7bbe08a267 Merged from stable 2005-06-04 09:58:35 +00:00
ikawhero
4920d2387c Fix for Bug 3036.
Merged from STABLE
2005-06-03 10:31:31 +00:00
moodler
1548978def Improvements to basic log display (much prettier) 2005-05-12 08:04:47 +00:00
defacer
d33d0cda79 Better appearance for section add menus in vertical mode. 2005-05-10 00:31:32 +00:00
defacer
1c46eb0334 Improved markup for print_section_add_menus, without tables. 2005-05-10 00:17:22 +00:00
moodler
393e360dd4 Adding c.cost to course retrievals (see bug 3102) 2005-05-04 06:39:42 +00:00
mchurch
94a6a70f6f Allow handling of per forum configured tracking. 2005-04-26 16:34:49 +00:00
moodler
a2d71d8edd Fixed notice on home page and some efficiency with read trackking 2005-04-26 15:44:39 +00:00
mchurch
2bc9f15ac8 More robust personal forum tracking logic. 2005-04-25 14:00:29 +00:00
mchurch
9e2b1877e0 Added enable/disable forum tracking in a user profile. 2005-04-24 19:46:13 +00:00
mchurch
4877707e52 Added display logic for user forum tracking preferences. 2005-04-24 13:41:46 +00:00
moodler
552afaf1ee Handle forum tracking on forums on home page 2005-04-24 04:45:01 +00:00
defacer
29b5920693 Fix for bug 2933. Just tidying up HTML. 2005-04-20 00:44:02 +00:00
moodler
959ae82499 Better version of previous fix 2005-04-19 12:40:00 +00:00
moodler
99738fa5b8 Handle hidden modules more cleanly without any notices 2005-04-19 12:37:59 +00:00
stronk7
235a4ee8c8 Now course/recent.php is workink with filterall. 2005-04-02 10:10:07 +00:00
moodler
5eafd94811 One extra option for the format of the site home page so that we can just have a
single topic section (allowing plain HTML in the middle and/or a list of activities)
2005-04-02 09:29:59 +00:00
stronk7
d11c7c9b34 Now, the list of activities in course/log.php supports filter all.
Why this function uses its own code to build the menu where we have
the "standard" navmenu() function? Cannot it be resused with a simple
modification to add the "All Activities" item?
The navmenu() function seems to be better.
2005-04-02 00:46:31 +00:00
gustav_delius
75f087b6e7 converted & to & 2005-04-01 22:59:30 +00:00
moodler
290130b3f8 Some clean up of the styles used in the course listings on the front page 2005-03-28 06:47:54 +00:00
stronk7
c8b0a50b7b Now log records support filterall. 2005-03-27 22:31:54 +00:00
stronk7
a92d95b1de Now activities names in course main page support filterall. 2005-03-26 11:59:53 +00:00
stronk7
5847b26744 Now the recent_activity block supports filterall. 2005-03-26 11:49:01 +00:00
moodler
37a88449a6 make_editing_buttons now has styles and a lot less string processing!
bug 2739
2005-03-14 19:05:39 +00:00
moodler
6ee8277fc1 Moved print_headingblock to proper place 2005-03-13 14:54:24 +00:00
moodler
27bf9e2083 Better styles 2005-03-10 14:09:45 +00:00
moodler
24e1eae4a2 Implemented bug 2676 - jump back to working section after clicking
on an activity modification link in course view...
2005-03-05 05:19:26 +00:00
mchurch
89c0e63faa Changed call for unread posts to new library function. 2005-02-28 21:34:37 +00:00
moodler
90b127fff6 FIxed some dodgy SQL code in the wrong place 2005-02-19 03:00:46 +00:00
gustav_delius
1ee55c41d9 Give groupmode selection to mod.html for all modules that use groupmode. Also fix bug 2576 2005-02-17 19:19:21 +00:00
gustav_delius
5f39034289 Don't show groups icons for resources and labels, see bug 2538 2005-02-16 12:50:11 +00:00
moodler
5ebb746b91 $course is now optional for new mod.html functions 2005-02-13 06:31:01 +00:00
moodler
1f15db9dee Changed the wording again .. should be easier to scan I hope 2005-02-13 06:15:12 +00:00
moodler
da2224f83d Change the string for the hide/show ... showimmediately makes sense
on a new creation but not when editing an activity
2005-02-13 06:07:06 +00:00
gustav_delius
48e535bc35 Activities can now be hidden/shown from the activity editing page. Also for modules that know about groups the groupmode can be set from there. See bug 2533. This required adding to the mod.html files calls to new functions print_visible_setting() and print_groupmode_setting() which are combined in print_standard_coursemodule_settings().
The visibility of coursemodules is now always set through the function set_coursemodule_visible() in order to make sure that the associated events get updated in the calendar appropriately.

If moving a coursemodule to a hidden section then the module is set to hidden as well and its events are hidden in the calendar.

If deleting a coursemodule its events are deleted from the calendar.

The function choose_from_menu() has an extra optional argument $disabled which, when set to true, will disable the menu.

For the sake of consistency the function set_groupmode_for_module has been renamed to set_coursemodule_groupmode and the functions show_course_module() and hide_course_module() have been combined to set_coursemodule_visible().
2005-02-12 21:41:22 +00:00