69 Commits

Author SHA1 Message Date
moodler
b846ac39ff Standardise the intro box using an ID 2005-03-13 16:17:55 +00:00
moodler
8f7dc7f1c7 Variety of small fixes, but mostly related to how the recent activity
block is constructed.  A new function exists to pump these notes out
in a standard way :  print_recent_activity_note.

Module dependencies also updated because of this.
2005-03-10 13:30:57 +00:00
gustav_delius
ec81373f50 In order to ensure that when a teacher hides a resource or an activity that students really can't get at it, even if they know the direct links to its pages, I have given an optional third argument $cm to the functions require_login() and require_course_login(). Pages showing information about a particular course module now pass the course module object in this third argument. The login functions will then test if either the course module is visible or the user is a teacher. If neither is the case then the user is redirected to the course homepage after being shown a message "Sorry, this activity is currently hidden".
(While I was at it I also turned the autologinguests off for most module pages, except on the index.php pages and the view.php pages for those modules that allow guests)
2005-02-16 10:40:48 +00:00
stronk7
95e72c12d0 Now retrieving only needed fields! 2005-02-13 00:42:29 +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
stronk7
e09087bc76 Some minor changes to each module to XHTMLise the restore process 2005-02-07 23:33:17 +00:00
stronk7
1082105205 Modify sesskey behaviour. SC#73 2005-01-22 18:53:44 +00:00
mjollnir_
7472315e3c Merged from MOODLE_14_STABLE: Fixed bug in dialogue where plain text email notification had no break between the url and the ---- that was causing GET requests like mod/dialogue/view.php?id=foo--------- and subsequent invalid sql 2004-11-24 23:51:04 +00:00
rkingdon
5c2b2dd83a User Pictures to dialogue headers. 2004-11-21 15:30:14 +00:00
rkingdon
7decbe4b12 Added vetting of conversationid; fixed bug 2194 (Problems with
backup/restore); Tidied Postgres table.
2004-11-21 04:01:10 +00:00
mjollnir_
1ef51a6c42 Replaced prefix_ with CFG->prefix for DROP of indexes before creation because of being inside execute_sql rather than modify_database - dialogue module 2004-11-18 02:40:24 +00:00
mjollnir_
62bf565657 Merged from MOODLE_14_STABLE: Indexes and version bump for dialogue 2004-11-18 01:35:32 +00:00
moodler
81b7339acf Merged change from stable 2004-11-04 07:06:28 +00:00
skodak
00548bfacf small fix for previous merge - I hope the last one :-( 2004-10-10 20:42:11 +00:00
skodak
de87c32835 one more cleaned - merged form 14_STABLE 2004-10-10 20:37:58 +00:00
skodak
d3b65a9bf5 fixed line endings broken by my WinMerge 2004-10-10 20:32:51 +00:00
skodak
59e2d6aa5f merged from 14_STABLE - cleaned text from forms 2004-10-10 17:37:48 +00:00
moodler
d7d21c383c Minor changes for XHTML compatibility 2004-10-08 13:58:33 +00:00
rkingdon
96ed00f636 In SEPARATEGROUPS mode the student's list of teachers is now limited to
those in the student's group.
2004-09-20 13:04:56 +00:00
rkingdon
dfeaa008d3 Added second argument ($cm) to groupmode() calls in
_get_available_students function.
2004-09-16 17:33:59 +00:00
gustav_delius
839f2456bb XHTML compliance
- fixed (hopefully) all <img> tags
- global replace on <br> to <br />
- &amp; in URLs
- got the forum module XHTML compliant
Julian Sedding
2004-09-16 17:13:57 +00:00
gustav_delius
b4510d5333 closed some input tags 2004-09-12 22:23:51 +00:00
gustav_delius
9a58f7cb85 towards XHTML compliance 2004-09-12 21:43:59 +00:00
gustav_delius
a9ef4a630a closed <input /> <br /> <hr /> 2004-09-12 14:41:49 +00:00
rkingdon
32dc4fe352 First stab at XHTML conformance. 2004-09-11 19:47:29 +00:00
rkingdon
414f3a1938 Change name of option from Mail default to Mail notification, fix bug
#1929. First stage XHTML conformance.
2004-09-10 18:48:51 +00:00
gustav_delius
222ac91bc9 removed unnecessary calls to get_site() 2004-08-29 14:15:40 +00:00
paca70
5586395f75 Postgresql wants 'as' be used. 2004-08-26 18:50:08 +00:00
gustav_delius
8f6b80b90c Merging from stable branch 2004-08-24 18:38:14 +00:00
gustav_delius
f950af3c43 All modules are now suitable for the site page. They now all follow the same rules, namely that any students enrolled in at least one course is considered to be a student on the site.
All the page headers work correctly also on the site course.

On the site page the modules don't require login unless necessary or required by $CFG->forcelogin.
2004-08-22 14:38:47 +00:00
gustav_delius
90fcc576ea Removed notices by introducing new function print_header_simple() which works on site as well as in courses without extra logic. 2004-08-21 20:20:58 +00:00
gustav_delius
067675c006 introduced the fullname() function in a lot of places. Still not complete though, especially in sorting. 2004-08-20 20:12:48 +00:00
rkingdon
3b42c6d8f1 Use of moodle's writing.html help rather than a "local" one. 2004-08-11 12:30:26 +00:00
rkingdon
20cfa94262 In Separate Group mode students now see only students in their own group. 2004-08-08 15:56:41 +00:00
rkingdon
1d8d55e7ed Improved handling of Groups. 2004-08-07 14:16:20 +00:00
stronk7
93dc66a6b3 Added one string to moodle.php
To be used in different places.
Bug 1646
(http://moodle.org/bugs/bug.php?op=show&bugid=1646)

Merged from MOODLE_13_STABLE
2004-07-19 18:18:21 +00:00
gustav_delius
43a4c024fb removed undefined notices showing on recent activity on site front page when no user logged in 2004-07-01 19:58:34 +00:00
rkingdon
16b56e5ef8 Dialogues can be started with groups of students. 2004-06-28 19:41:24 +00:00
rkingdon
db3e1a89f1 Fix the submission of null entries when using the HTML editor. 2004-06-24 17:11:51 +00:00
rkingdon
352ab98fa0 Dialogue entries now use the HTML editor. 2004-06-23 14:16:30 +00:00
rkingdon
6219cb1f07 Lists of names now use case insensitive sort (natcasesort);
Remove email flag setting from follow-up entry page, email is now a global option.
2004-06-21 17:12:41 +00:00
rkingdon
9af2f862cf Change to the mail option, now a global option. 2004-06-18 19:01:44 +00:00
rkingdon
bfe7932f0d Split lib.php into lib.php and locallib.php 2004-06-18 15:38:21 +00:00
gustav_delius
5e607236f3 fixed problems with undefined $USER->id in recent activity block when no user logged in. 2004-06-08 21:23:26 +00:00
moodler
070528fc79 MOdules are dependent on this version of course/mod.php 2004-06-04 07:28:34 +00:00
moodler
7613890851 BRANCH MERGE
These are the changes from MOODLE_13_STABLE, merged into trunk

The tag MOODLE_13_MERGED on the MOODLE_13_STABLE branch now refers to this point

The biggest changes here are the fixes for HTML editor in all standard modules
2004-06-04 06:17:30 +00:00
moodler
e730321594 FIxed some short tags 2004-05-10 17:46:35 +00:00
stronk7
f895027eeb Fix one SQL... 2004-04-05 22:49:23 +00:00
paca70
c13edeca6a Added default values 2004-03-27 13:08:21 +00:00
rkingdon
2f39268b3d Fixed Bug 1060: Error inserting second entry from the same input page.
Fixed bug #865.
2004-03-12 15:25:13 +00:00