106 Commits

Author SHA1 Message Date
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
mchurch
eaf50aeff8 Added tracking settings per forum. 2005-04-26 16:27:51 +00:00
moodler
8cb091e643 Fixed a minor PHP warning. Bug 2979. (SE) 2005-04-21 08:11:07 +00:00
moodler
0d5da5dd1f Just tidying 2005-04-19 16:05:50 +00:00
moodler
b82faacd03 Fix for bug 1938. Now a teacher can delete any post, and all the
children are deleted as well (after a warning and a preview of the
affected posts).
2005-04-19 11:25:59 +00:00
moodler
63e20b8854 Merge fix from stable 2005-04-13 09:19:48 +00:00
stronk7
c78ac79818 Now discussion->name works under filterall. 2005-03-26 17:11:30 +00:00
stronk7
17dc3f3cc6 Now post->subject works under filterall too. 2005-03-26 11:43:16 +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
gustav_delius
cd8d4471c8 Print course in footer 2005-03-17 15:12:07 +00:00
gustav_delius
e6157a7368 fixed typo leading to bug 2723 2005-03-13 09:56:10 +00:00
moodler
556963f5f1 Much more user-friendly for guests 2005-03-06 06:48:48 +00:00
moodler
c59eb3416a Got rid of the dead end when guests are trying to post 2005-03-06 06:20: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
gustav_delius
8203d211ad Fix bug 1937 2005-02-14 00:04:09 +00:00
moodler
f37da85054 MAJOR NEW FEATURE: Tracking of read/unread posts
Many thanks to Mike Churchward for his work on this and persevering
with sending updated versions to me.  :-)

Shane and I have polished it up, rewritten a few parts (display-related)
and here it is, finally in CVS!

I think there will still need to be some optimisation for the SQL,
since it's still pretty intensive. Perhaps some sort of caching in
the session that gets modified along with the database whenever
something gets read.

However if there are problems the whole thing can be switched off
in the forum module config so this is not crucially urgent.
2005-01-29 09:49:42 +00:00
moodler
d30867b0bf Removed some THEME stuff 2005-01-25 14:28:47 +00:00
urs_hunkler
680afe2e26 _ added the DIV framework for new CSS 2005-01-19 13:16:29 +00:00
moodler
21da9db80b When posting a new topic, display the forum description to help
orient the posting.  Also changed some headings slightly to make more
sense.
2004-12-14 06:26:43 +00:00
moodler
f7abd64afb Merged changes from stable 2004-11-23 03:43:24 +00:00
moodler
9814a0eda6 Merged $parent initialisation from stable 2004-11-01 12:49:04 +00:00
moodler
325505f4ed XHTML changes and general tidy up 2004-10-29 06:50:52 +00:00