66 Commits

Author SHA1 Message Date
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
moodler
037f99aa2d Upgraded add_to_log to send cm->id 2004-01-31 15:22:04 +00:00
moodler
263a473593 New setting makes it optional to show column of people who didn't answer 2004-01-01 06:35:22 +00:00
moodler
b3679ca436 Display names using fullname function 2003-11-28 15:41:18 +00:00
moodler
51600d9dab Fixed some accidental lowercasing 2003-07-07 11:52:05 +00:00
moodler
353d033843 get_course_users now calls get_site_users if the course is a site.
There is something wrong with this SQL still though ... it mostly works
but I'm still getting wierd behaviour with small numbers of users.

Need some help here ...  for example just look at get_site_users()
on your test site.

It's supposed to return a list of users who are admins, creators,
teachers or students
2003-05-20 09:33:30 +00:00
moodler
8b50d2a76e Some fixes to make choice reports work better when used at site level.
PLus some HTML lowercasing
2003-05-17 06:17:10 +00:00
moodler
3a4c2fd089 I knew there was something else I'd forgotten!
Added a check to all modules (well view.php anyway) to check whether a
module is hidden or not.  If it is, then students get a message.
2003-05-15 18:03:22 +00:00
moodler
c897eac5e4 Some small robustness things, and a new style for quiz feedback text 2003-01-08 09:08:05 +00:00
moodler
b0e3a92523 Clean sweep through all the important changing all include(), include_once()
and require() to require_once()
2003-01-05 14:19:20 +00:00