918 Commits

Author SHA1 Message Date
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
defacer
dffd4bb948 You know you are beyond hope of redemption when you make "API uniformity" changes. ;-) 2005-03-02 05:56:24 +00:00
defacer
664923229c Since $PAGE knows where the adminblock should be printed, let it do the printing. 2005-03-02 05:47:39 +00:00
mjollnir_
53dc7cc606 Course/import.php should check for teacher 2005-03-02 05:38:47 +00:00
defacer
3615b2b259 Simplifying to death using the new blocks_setup() 2005-03-02 05:19:47 +00:00
martinlanghoff
e0003dfa08 Merged from MOODLE_14_STABLE - loglive now has a proper footer and the links in header & footer open in new windows 2005-03-01 02:53:27 +00:00
mchurch
89c0e63faa Changed call for unread posts to new library function. 2005-02-28 21:34:37 +00:00
moodler
fd5b9188bd removed explicit style-adding for user login string 2005-02-25 06:23:46 +00:00
martinlanghoff
b935c832ec Merged from MOODLE_14_STABLE - Provide an explicit sortorder for new courses in empty categories, and run fix_course_sortorder() after adding the course to make sure its in the appropriate range for the category. This mege adds fix specific to HEAD: it reverts an earlier bad fix. 2005-02-24 21:22:06 +00:00
martinlanghoff
008621712f Fixes for null sortorder on empty categories. 2005-02-22 03:23:41 +00:00
fiedorow
5f357fb67b Updated guest shortcut code with Mike's loginas fixes 2005-02-19 21:02:33 +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
moodler
77f69e7bcf Better fix for the group image uploading 2005-02-17 07:14:28 +00:00
moodler
6d96007293 FIxed error when there is no image file 2005-02-17 06:32:41 +00:00
mchurch
fc960bc7ef Bug #2133 - Fixed group caching for loginas. 2005-02-16 13:49:22 +00:00
fiedorow
542a04353b hook for redirecting to externally hosted courses 2005-02-16 13:41:37 +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
9df665e7bf When updating we don't always want to change visibility and groupmode bug 2561 2005-02-16 03:11:52 +00:00
moodler
ee350ee9a3 FIxed a string name 2005-02-14 16:06:50 +00:00
moodler
6cba878db8 Bring weekly into line with topics 2005-02-14 16:02:32 +00:00
moodler
c4bff2fb73 Missed a spot there 2005-02-14 16:01:45 +00:00
moodler
549f7213e4 Tiny cleanups to bring into line with "weeks" format 2005-02-14 15:59:34 +00:00
moodler
06959cfca2 New shorted class names, better nested 2005-02-14 15:36:46 +00:00
gustav_delius
be495e2097 Only course creators can move courses to a different category. This fixes bug 2065. 2005-02-13 22:52:20 +00:00
gustav_delius
8dc93b9445 Invisible sections are no longer shown in jump menu, see bug 2085 2005-02-13 22:23:45 +00:00
gustav_delius
8a6e783ff0 small fix 2005-02-13 21:43:43 +00:00
gustav_delius
db837a6645 Fixed behaviour of groups.php in the case of an empty group, see bug 2346 2005-02-13 19:38:10 +00:00
gustav_delius
f1cc0382a2 Clicking on the icons controlling a section brings you back to the same section, see bug 2433 2005-02-13 15:22:04 +00:00
moodler
c46f27a34f A large clean up of the topics format to
- remove most of the table properties
   - add new classes where necessary to let CSS in
   - rewrote all the PHP strings using '' for speed.
2005-02-13 14:38:59 +00:00
gustav_delius
a10464d6cd Moved visibility code to make sure that activities added in hidden sections are hidden. 2005-02-13 09:35:40 +00:00
moodler
5ebb746b91 $course is now optional for new mod.html functions 2005-02-13 06:31:01 +00:00
moodler
99349afc9a Fixed logic for new course modules 2005-02-13 06:24:21 +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
defacer
a3f24f7cc5 Improvements in how incoming parameters are handled, how $editing is handled.
More consistency across course formats for editing stuff, using $PAGE.

Also a "bugfix": when turning editing off, cancel moving an activity if you
were in the middle of doing so.
2005-02-12 13:09:18 +00:00
defacer
ff0c7de0b0 Removed dead code. 2005-02-12 12:49:46 +00:00
defacer
446390fb47 Lots of improvements in markup and styles for courses.
Finalized and correctly distributed the calendar styles.
2005-02-12 12:40:04 +00:00
defacer
e96ba29d6f Vastly improved styles, lots of inline styles removed, markup improved. 2005-02-12 11:37:09 +00:00
moodler
32e2b30209 This more or less completes the PHP side of the 1.5 themes
Added $user->theme and $course->theme choices, controlled by admin
variables on the main config variables page.

By default this is all turned off, since multiple themes can be
a little disorienting.

A hidden feature is session themes ... you can change the theme
on any page by passing theme=xxxx as a parameter.  By default this
requires sesskey (so that people don't change theme on each other),
but this security can be switched off using a hidden variable
$CFG->allowthemechangeonurl = true;   Good for quick tests.
2005-02-10 10:28:27 +00:00
moodler
816acb46d3 Support course idnumber as a way to call courses
http://moodle.org/mod/forum/discuss.php?d=18442
2005-02-09 13:20:24 +00:00
moodler
9f7bf72393 Zap old file 2005-02-09 03:46:44 +00:00
moodler
19221c7e06 Removed old script 2005-02-09 03:45:17 +00:00
stronk7
fff86611a2 Small typo (bug 2512)
(http://moodle.org/bugs/bug.php?op=show&bugid=2512)

Merged from MOODLE_14_STABLE
2005-02-08 01:07:45 +00:00
defacer
685416485b This is now automatically done, no need to do it twice. 2005-02-08 00:12:11 +00:00
mjollnir_
a45ee54ee1 Removing PHP notice in metacourse assign courses page (bug 2479) 2005-02-07 21:10:25 +00:00
mjollnir_
832e87dfd8 Fixing formatting problem (extraneous <p>) 2005-02-07 21:04:53 +00:00
mjollnir_
a5849937b4 More bug fixing - #2479 2005-02-07 01:00:57 +00:00
gustav_delius
0e2851b998 Avoid using <p> tags because different browsers treat them differently (e.g in firefox if a table cell starts with a <p> it will start with an empty line, in IE it will not). Use <div> instead. 2005-02-06 18:18:44 +00:00