Commit Graph

127 Commits

Author SHA1 Message Date
vyshane 593d5992c0 Fix for MDL-8431 "In qanda forum: Undefined property: object::$id" 2007-02-13 05:24:32 +00:00
vyshane d976a7d9dc Fix for MDL-8146. Clicking on "No" when asked to confirm deletion of a post will now always take the user back to that post in the relevant discussion. 2007-01-12 05:03:57 +00:00
vyshane a68c438d5c Removed extra ; 2006-12-05 08:14:42 +00:00
vyshane 9a7b7e38b9 Fixed bug: cannot edit post in each user forum type. 2006-12-05 08:12:27 +00:00
vyshane d628dcedd2 Fix for MDL-7760 2006-12-04 08:02:57 +00:00
vyshane e2e91ea8ce Fixes for MDL-7461. Removed checks for legacy guest capability as well (redundant). 2006-11-13 06:02:49 +00:00
moodler 2c36ba5bb8 Fixed up the URL after posting (too many #hash) 2006-11-06 16:28:20 +00:00
sam_marshall c03b88f607 The 'Activity is currently hidden' check in mod/forum/post.php incorrectly used 'manageactivities' capability instead of 'viewhiddenactivities', fixing. 2006-10-26 14:12:40 +00:00
moodler 1de8317f92 Better handling for guest in forums MDL-7125 2006-10-23 04:53:56 +00:00
skodak 9468a32a8e fixed undefined modcontext in forum 2006-10-21 20:29:30 +00:00
moodler f7396c7867 WHen a guest hits reply, they now get told they have to enrol and
get sent there.   In manual enrolment they are returned to the post
(eventually all the plugins should do that).
2006-10-20 17:48:59 +00:00
moodler 104b23ff7f I've fixed how the forums look when guest is logged in, so that they
see the Reply link and if they press it get asked to log in properly.
2006-10-20 06:07:33 +00:00
toyomoyo ca108ade8d fix for MDL-7066, users with replypost set to prohibit can not edit own post 2006-10-18 07:49:13 +00:00
moodler b40e18c325 Cleaned up some navigation when posting 2006-10-17 09:07:26 +00:00
moodler d72975122f Fixed slashes problem on re-editing new post MDL-7052 2006-10-17 08:58:00 +00:00
vyshane cef1ce6abf Fixes for MDL-3975
Changes to discuss.php and post.php so that the single discussion type forums are handled more consistently.
2006-09-28 07:29:50 +00:00
vyshane 77dc6d0b26 Discussions from a forum of type 'single' should not be splittable. Merge from 1.6 branch. 2006-09-25 05:12:01 +00:00
vyshane e51e3fcb34 Fixed notice 2006-09-18 12:48:00 +00:00
moodler 966620586e Better handling of forum id/object 2006-09-14 07:13:08 +00:00
vyshane 8d9a0ae64b Fix for MDL-6517. Patch by David Mudrak. 2006-09-14 03:18:37 +00:00
vyshane 6e89ca5527 Fix for MDL-6405 2006-09-11 03:13:52 +00:00
skodak f2b5d7e3b7 trusttext implementation in Forum module, fixed incorrect merging, added missing postresql upgrade code, some other minor fixes 2006-08-27 20:45:04 +00:00
vyshane e40a7a3c8b Fixing notices 2006-08-16 03:24:43 +00:00
vyshane 951e1073da Added has_capability calls. Reverted forum_search to pre-roles until the
function is totally converted to work with roles.
2006-08-14 07:37:53 +00:00
moodler 0468976c9a SWEEPING CLEANUP
The API was changed slightly so that has_capability now takes the
whole $context object (we almost always have it anyway)

The $kill thing was removed.   If you want to assert a capability
then use:

    require_capability('capname', $context);

with optional variables to modify the error message

Misc bugs here and there also removed and code tidied
2006-08-14 05:55:40 +00:00
vyshane 0fa18d5a27 Bug fixes + updated capabilities. 2006-08-09 06:59:28 +00:00
moodler bbbf2d4015 ROLES AND PERMISSIONS - FIRST CHECK-IN
=======================================

WARNING:  DEV IS CURRENTLY VERY UNSTABLE.

This is a mega-checkin of the new Roles system.   A lot of changes have
been made in core and modules.

Currently there are a lot of rough edges and known problems.  We are
working hard on these .. .the reason for getting this into HEAD at this
stage is enable us to move faster (our branch was diverging from HEAD
too much).

Please keep an eye on http://docs.moodle.org/en/Roles for current status
and information for developers on how to use the new Roles system.
2006-08-08 05:13:06 +00:00
skodak 1322b7199a fixed warning when no referer available; merged from MOODLE_16_STABLE 2006-07-31 10:05:23 +00:00
toyomoyo 92998e94bd merged fix for 5551 2006-05-22 02:39:14 +00:00
skodak 9b7bff2699 submission in post.php cleanup, fixes for bugs #5530, #5484 and SC#252; merged from MOODLE_16_STABLE 2006-05-19 20:18:05 +00:00
skodak 2c3432e684 fixed problem when set both loginhttps and https in wwwroot, closes bug #5507 and #3848; merged from MOODLE_16_STABLE 2006-05-15 21:36:46 +00:00
skodak 3b25960385 better cleaning of post title SC#251 revisited; merged from MOODLE_16_STABLE 2006-05-15 14:48:11 +00:00
skodak 62b504d20b better cleaning of post title SC#251; merged from MOODLE_16_STABLE 2006-05-15 14:32:14 +00:00
moodler 9bdedea400 Changed how the "edited by" message appears in the posts edited by admin 2006-04-05 02:15:10 +00:00
moodler da077b9a7a Change of function name, no actual change 2006-03-21 09:08:57 +00:00
mjollnir_ 41547057cc Merged Patrick's mailnow patch. This allows admin users the ability to override maxediting time and have forum posts mailed out immediately. 2006-01-19 23:52:08 +00:00
patrickslee 3c622ced98 Removed some mailnow related patches -- mailnow feature is not merged yet 2006-01-19 22:45:59 +00:00
patrickslee cc86131d78 Fixed embargoed time settings is not kept in the form when re-editing by error 2006-01-18 04:14:50 +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
patrickslee 8b116048fd Fixed a problem that unable to post a new discussion related to mailnow 2005-12-01 20:50:22 +00:00
moodler afa3507ca2 fix for bug #4314 2005-11-25 07:11:20 +00:00
patrickslee fbc21e82be New feature: Embargoed Announcements 2005-11-10 22:50:03 +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
stronk7 50d83d8f05 <span> tags are now allowed inside post->subject. Bug 4099.
(http://moodle.org/bugs/bug.php?op=show&bugid=4099)

Merged from MOODLE_15_STABLE
2005-09-21 21:29:09 +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
moodler 1da8c5685a New function to update the last post in a given discussion.
Called whenever deleting posts or splitting discussions - bug 3050 (SE).
2005-04-28 07:42:14 +00:00
defacer c6c3a59941 Initializing $parent to new stdClass was a major oops. However, seems it doesn't
need to be initialized at all. So I won't hold this against the practice in general.
2005-04-26 21:50:44 +00:00
defacer a2ad73deb9 Initialize object as new stdClass instead of NULL. 2005-04-26 21:26:17 +00:00
defacer 16955dc619 Some double quotes to single, use optional_param for $reply.
I 'm debugging some PHP5 notices which aren't just notices, they imply
there's a bug somewhere here? Or maybe an inconsistency in parameter types
of the variables being passed around...
2005-04-26 20:39:08 +00:00