149 Commits

Author SHA1 Message Date
danmarsden
abd7dfb38c this is all wrong - will try to clean up later tonight 2005-04-06 04:10:27 +00:00
mjollnir_
173a1cb5ef Some syntax fixes for postgres upgrade for choice. Still failing though, I am about to create a bug report for it 2005-04-06 01:55:52 +00:00
stronk7
524d7b9a7b One missing string to make choice->name works under filterall
(showing anonymous results)
2005-04-05 23:08:00 +00:00
danmarsden
f6eb109943 updating old choices didn't work. 2005-04-05 21:53:08 +00:00
danmarsden
90572dbb90 Fix for Bug #1901 - now "greys out" the privacy of results select if "do not publish" is selected. 2005-04-05 02:04:54 +00:00
danmarsden
af40722cc5 Fix for Bug #2435 - Hidden teachers and site admins are shown in no response list. 2005-04-05 00:35:05 +00:00
danmarsden
9bf3c5de4f Bug #2084 - Choice module has no "save my choice" for admin - missed a bit.... :-) 2005-04-01 03:33:44 +00:00
danmarsden
869366ec5c options[] is full of other values! 2005-04-01 03:30:12 +00:00
danmarsden
bd3ba1ddaf Bug #2084 - Choice module has no "save my choice" for admin 2005-04-01 03:26:35 +00:00
danmarsden
1c49ca9a09 Fix for Bug #2452 - Choice shows a bad number of answers 2005-04-01 02:37:19 +00:00
danmarsden
74550a3cbd this time..... :-) 2005-03-31 23:58:37 +00:00
danmarsden
649084b1e8 backing out previous fix - didn't get that right! 2005-03-31 23:02:39 +00:00
danmarsden
9ca8056ae0 don't add <p></p> tags when in vertical display mode. 2005-03-31 22:48:43 +00:00
stronk7
948cd185cb Fixed typo restoring choice_answers->userid 2005-03-31 07:45:19 +00:00
stronk7
73c1c663a3 Now restore of choices seems to work fine. It accept both 1.5 and
older choices. Please, test it with some 1.4 course with more than 1
choice. I haven't any in my battery of tests! (yep, I know I can
make it but... :-) )
2005-03-31 01:02:28 +00:00
stronk7
619be18379 Minor changes to and some typo to choice's backup.
Next step, choice's restore.
2005-03-31 00:00:34 +00:00
stronk7
dfde3b2069 alt tags in radio buttons were breaking display it they contain
lang tags. Now they are filtered against strip_tags() and processed
by format_text().

In vertical display, format_text() was using format_text (FORMAT_PLAIN),
not sure why and it was breaking multilang support, replacing all <> to
their htmlentities().
2005-03-30 23:34:04 +00:00
moodler
4094acdcc3 First very quick cut at fixes for backup (Eloy!!!) 2005-03-30 18:59:18 +00:00
moodler
ad7660be65 FIxes in vertical format 2005-03-30 18:48:42 +00:00
moodler
411362b268 FIx some notices 2005-03-30 18:47:57 +00:00
moodler
d1a673622a Fixed the rest of the basic interface now 2005-03-30 18:33:56 +00:00
moodler
bfe97ca600 Report works 2005-03-30 18:17:58 +00:00
moodler
5550ae839e Working view of choices (needs XHTML work yet) 2005-03-30 17:32:23 +00:00
moodler
864e30c968 Removed some unnecessary stuff 2005-03-30 17:07:09 +00:00
moodler
95836079dc Small fix: not crucial, but prevents some empty fields 2005-03-30 17:06:20 +00:00
moodler
a77a600994 First cut at new lib.php 2005-03-30 16:26:36 +00:00
moodler
3a925837fe Argh, typo in new field name 2005-03-30 16:24:19 +00:00
moodler
669dfa715a An emergency checkin to prevent Choice dataloss for anyone who may
be upgrading.

The module itself currently doesn't work at all ... I'm going
through and re-writing it.
2005-03-30 16:14:49 +00:00
moodler
5a9726e7ab This module is completely broken .... I'm working on it.
Here are some cleanups to start with
2005-03-30 04:32:36 +00:00
danmarsden
6fd87e3bc7 Improved coice mod, allows an unlimited number of choices. 2005-03-29 23:46:17 +00:00
stronk7
c61d50b800 Now choice->name and choice->answerxx work under filterall. 2005-03-27 17:33:16 +00:00
gustav_delius
cd8d4471c8 Print course in footer 2005-03-17 15:12:07 +00:00
moodler
646d5a0281 Strip and slash alt tags on input radio buttons 2005-03-17 11:37:31 +00:00
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
bawjaws
4db5de0dfa make Choice respect text formatting selection 2005-03-09 09:50:07 +00:00
moodler
2ef4dd5eb0 Merged format fix from stable 2005-02-25 14:21:37 +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
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
moodler
373d5f2083 Choice doesn't have groups 2005-02-13 06:31:37 +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
moodler
a9d5f810b2 Less $THEME, more white chocolate 2005-02-09 17:15:27 +00:00
stronk7
e09087bc76 Some minor changes to each module to XHTMLise the restore process 2005-02-07 23:33:17 +00:00
mjollnir_
f63a559570 Fixing bug #2419 - missing global $CFG in upgrade for choice resulting in missing prefix 2005-01-27 02:17:35 +00:00
moodler
d3c8056258 Changes for XHTML and accessibility compatibility.
Tidied up layout and other minor changes.
2005-01-25 09:39:29 +00:00
stronk7
1082105205 Modify sesskey behaviour. SC#73 2005-01-22 18:53:44 +00:00
moodler
f3f7d9e409 Changes for XHTML and accessibility compatibility. General tidy up. 2005-01-21 05:07:51 +00:00
mjollnir_
782fe16bbc Replaced prefix_ with CFG->prefix for DROP of indexes before creation because of being inside execute_sql rather than modify_database - choice module 2004-11-18 02:39:16 +00:00
mjollnir_
15e0081234 Merged from MOODLE_14_STABLE: Indexes and version bump for choice 2004-11-17 23:03:56 +00:00