Commit graph

175 commits

Author SHA1 Message Date
moodler
39ee02a3b1 Various old fixes that had not been checked in 2006-01-05 07:09:35 +00:00
thepurpleblob
ac04332685 Removed check for student/teacher on submit and replaced with check for (not)
guest, as (a) it didn't stop guests and (b) it broke the studentview mode
2005-09-20 09:22:06 +00:00
danmarsden
3ddb684e57 Fixes for Bug #3876, Bug #3816 2005-08-14 21:59:09 +00:00
thepurpleblob
440dcd3123 require_variable() changed to required_param(). 2005-08-09 12:07:09 +00:00
danmarsden
af834f3e7c Bug #3623 - doesn't like when $value = 0 2005-06-27 00:58:24 +00:00
thepurpleblob
07bc47e0e5 require_variable() replaced with required_param() 2005-06-10 11:09:39 +00:00
danmarsden
9e1fc2da9c XHTML fix, 2005-05-23 22:13:15 +00:00
danmarsden
5634beeaa5 -shouldn't have been using Javascript there! - few more fixes coming. - choice mod limit function doesn't seem to be working properly - doesn't seem to display results anymore! 2005-05-18 21:50:45 +00:00
moodler
51e041f42e Prettied up choice with some styles (could use work) 2005-05-05 18:34:20 +00:00
moodler
232b51bb7b SPacing fixes 2005-04-22 19:17:06 +00:00
thepurpleblob
86cc5db12a get_record(...)->field generates a parse error on my machine, so I split
it into two steps where it occurs.
2005-04-15 08:13:27 +00:00
danmarsden
cabf7c2397 show user what selection they made when updates are not allowed. 2005-04-15 01:40:22 +00:00
danmarsden
c9ff813c41 new limit feature in choice. 2005-04-14 21:10:39 +00:00
moodler
7f3f41ecfb Added some reportlink classed to the report links 2005-04-13 07:45:47 +00:00
danmarsden
7b056dd39a problem with "not answererd yet" column on anon responses page. - diplaying admins and hidden teachers. 2005-04-12 20:49:51 +00:00
danmarsden
03ff2092c4 $options used by something else. 2005-04-07 22:22:22 +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
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
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
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
ad7660be65 FIxes in vertical format 2005-03-30 18:48:42 +00:00
moodler
5550ae839e Working view of choices (needs XHTML work yet) 2005-03-30 17:32:23 +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
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
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
a9d5f810b2 Less $THEME, more white chocolate 2005-02-09 17:15:27 +00:00
moodler
d526e68ee7 XHTML and accessibility compliance 2004-10-22 07:45:58 +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
1c61c8d6bc fixed capitalization and quoting of attribute values 2004-09-12 15:06:29 +00:00
gustav_delius
a9ef4a630a closed <input /> <br /> <hr /> 2004-09-12 14:41:49 +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
moodler
d30772b256 Added new feature to restrict time for this activity.
Cleaned up logic by adding a separate menu for publishing vs privacy.
2004-07-01 12:52:15 +00:00
stronk7
e47543451e Avoid some division by 9 warnings when showing anonymously
and no answers have been introduced.
2004-03-14 01:22:28 +00:00
stronk7
2e89715bc2 Small typo causing some warnings. $theme ----> $THEME 2004-03-14 01:18:54 +00:00
moodler
a12f686b62 Function name change ... hope it doesn't break any third-party code,
sorry if it does!

  get_users_in_group --->  get_group_users

  ... more consistent with other functions
2004-03-13 14:24:34 +00:00
moodler
abcc3a17b9 Fixed up some logging 2004-02-17 14:39:15 +00:00
moodler
b6ee2d82ea Groups support for choice module 2004-02-15 08:17:45 +00:00
moodler
bd115b3f82 Caters for the case when nothing was selected 2004-02-04 13:40:20 +00:00