Commit Graph

77 Commits

Author SHA1 Message Date
mjollnir_ 14f872baec Postgres doesn't happily convert NULL to 0 for int fields, so we set it manually. Credit: Patrick Li 2005-08-02 22:47:57 +00:00
moodler 27437410f4 file survey.php was added on branch MOODLE_15_STABLE on 2006-03-10 07:27:54 +0000 2005-04-05 20:54:43 +00:00
mjollnir_ a4f495bf86 Introducing: managed posted forums. Optional ability to 'throttle' forums by adding
three new settings: warnafter, blockafter and blockperiod.
Useful for tutors with big courses with some dominant students.
2006-01-16 08:42:09 +00:00
mjollnir_ 098d27d46e New forum type: question and answer: requires students to post their answer before being able to view other posts. After initial post, students can view & respond normally 2006-01-16 04:57:48 +00:00
moodler e746e4dd99 added missing semicolon in &nbsp (bug#4592) 2006-01-16 04:29:41 +00:00
moodler fa22fd5fff BIG FEATURE - MULTIPLE GROUPS
Users can now be assigned to multiple groups.  Thanks Yu!
Break out the Bob Marley!!

Otherwise groups work more or less like they did before.

This has been pretty well tested by Yu and myself, but since Yu started
uncovering lots of existing groups bugs it's possible there may be still
a few corner cases still lurking here and there.

Please help test this thoroughly for 1.6!!
2005-11-08 07:19:27 +00:00
mjollnir_ 67bbc9b7de Merged from MOODLE_15_STABLE: Postgres doesn't happily convert NULL to 0 for int fields, so we set it manually. Credit: Patrick Li 2005-08-02 22:48:20 +00:00
thepurpleblob 70e3da07fd Changed all optional_variable() and require_variable() to equivalent
optional_param() and required_param() for greater security.
2005-06-10 19:54:41 +00:00
mchurch eaf50aeff8 Added tracking settings per forum. 2005-04-26 16:27:51 +00:00
mchurch 45293cd330 More robust personal forum tracking logic. Added personal forum tracking
option setting to forum view page.
2005-04-25 14:02:00 +00:00
stronk7 3849dae80f Now the FIRST string working under CFG->filterall is done:
forum->name
(everything tested but email)

(I'm going to maintain a list of strings in Developers Wiki)
2005-03-26 01:57:40 +00:00
moodler b846ac39ff Standardise the intro box using an ID 2005-03-13 16:17:55 +00:00
defacer 6f1cc8d63c Simplified by removing two optional parameters from forum_print_search_form,
because everyone was using the same values for them!

Also renamed the function to simply forum_search_form, because in the end
noone was using it to PRINT html, it was just put into a variable.
2005-03-09 20:50:37 +00:00
moodler af328e4b14 Speed and beauty improvements when displaying discussion listings 2005-03-08 17:32:08 +00:00
moodler 8a38720662 Fixed a boo boo 2005-03-07 05:03:48 +00:00
moodler 41b47dd43a FIxed up some styles for the help links 2005-03-07 05:00:58 +00:00
mchurch be69cefb90 Removed debug lines inadvertently left in last commit. 2005-02-28 21:37:11 +00:00
mchurch 1051a2a4a0 Improved speed of database calls for read tracking. 2005-02-28 21:31:13 +00:00
moodler f0b8884d08 Added search help to the small search forms (big search form coming next) 2005-02-26 08:52:03 +00:00
gustav_delius 56c0715e77 The teacher forum has no coursemodule and this led to errors in particular in forum_print_latest_discussions(). 2005-02-18 06:41:12 +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 f51e8d7ed6 FIxed up styles and lots of quotes 2005-02-16 06:17:31 +00:00
moodler fb83bd5075 Fixed a notice 2005-02-15 17:44:02 +00:00
moodler 48b29ba423 Moved rsslib.php from the rss directory to the lib directory with the
other libraries
2005-01-25 06:09:31 +00:00
urs_hunkler 680afe2e26 _ added the DIV framework for new CSS 2005-01-19 13:16:29 +00:00
moodler c7e65290e4 Merged fix from stable for wrong function 2004-12-14 11:08:04 +00:00
moodler 61242972a3 Merged parameter checking from stable 2004-12-14 08:52:33 +00:00
stronk7 f4646b44c1 Now RSS links ae showed properly in SITE course when
user isn't logged.

Solve a problem with if($USER) under PHP5.
2004-10-05 23:21:38 +00:00
moodler c6d234a0ed Turning off "usexml" for forum/mod/view.php 2004-09-23 11:51:14 +00:00
gustav_delius 8f0cd6ef0f Resolved problems with previous replacement of
& to & and fixed redirect() to entity encode the
inut where needed.
Julian Sedding
2004-09-21 11:41: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 41905731b7 fixed capitalization and quoting of attribute values 2004-09-12 16:24:41 +00:00
stronk7 2e506e609b Notice out.
Merged from 14_STABLE
2004-08-26 11:18:28 +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
stronk7 f6bb7eaa39 Paging discussions is in CVS just now :-) 2004-08-10 09:37:02 +00:00
moodler 2862b309eb Merging changes from Moodle 13 Stable 2004-07-07 17:42:53 +00:00
moodler 52b201eeb5 Teacher forum never has groups 2004-05-19 06:43:22 +00:00
stronk7 8adcb49f8e First version of RSS System.
Discussion and post forum feeds supported.
Integrated in cron system.
Some strings missing.
Test, test, test...
2004-05-02 23:08:19 +00:00
moodler 68ddf8bc47 Make sure forcelogin is applied to forums at site level 2004-03-12 01:54:10 +00:00
gustav_delius 6ff27f32af fixed a typo in the URL produced by the group menu on forum/view.php 2004-03-02 22:11:48 +00:00
moodler 59c7115177 FIxed bug with forced languages by moving string definitions 2004-02-20 02:29:30 +00:00
moodler 2ab76925a2 Cleaned up group menus 2004-02-19 17:57:22 +00:00
moodler f064a3dfb9 WHAT!??
Why doesn't this work?

   if (!empty(trim($forum->intro))) {
   }

It gave blank screens on moodle.org!   Wierd.
2004-02-13 15:20:06 +00:00
moodler 51a55508e6 Use format_text on forum intros 2004-02-13 03:39:58 +00:00
moodler 69d79bc31f OK, some big improvements to the logs.
Logs now include a field called modid which contains the coursemodule id.

This makes it now possible to

   - see complete logs per-activity

   - do backup/restore of logs

The upgrade process will currently try to scan all the old logs and
rebuild this field based on available data (especially forums).

STILL TO DO:  alter all the non-forum modules to send the coursemodule id
2004-01-31 14:47:57 +00:00
moodler 5476a93df2 Fix the mode handling for "single" forums 2004-01-30 08:45:11 +00:00
moodler a33ba1367e Editing teachers can always get into forums 2004-01-17 06:49:18 +00:00
moodler e2c4f8e4dc Save forum log url in a more standard way 2004-01-15 07:26:52 +00:00
moodler 9197e1472f First version of support in groups in the forums.
Still needs plenty of testing.   There is no GUI yet for turning on
the groupmode just for the forum (this will be on the course page)
but you can put a 1 (visible) or 2 (separate) in the course_modules table.
2004-01-11 17:46:57 +00:00
moodler 5be7800c12 Switch to using global variables instead of defined values,
controlled using the button on the "Modules" configuration page.
2003-08-18 17:33:40 +00:00