144 Commits

Author SHA1 Message Date
moodler
a1857045dc Tidy up discussion controls using CSS MDL-7861 2007-01-04 15:58:55 +00:00
moodler
c7a049a3e2 More fixes for Strict MDL-7861 2007-01-04 15:31:05 +00:00
Martin Langhoff
f3f7610c90 cvsimport fixups -- cvshead had strayed from upstream 2007-01-04 13:15:04 +13:00
skodak
102a58099a SC#341 fixed initilaization of navtail variable 2006-12-14 08:14:03 +00:00
skodak
1936c10e54 fixed obsoleted use of course->category to find site course - now used SITEID instead MDL-1899 2006-11-12 08:55:13 +00:00
moodler
981af8b8e1 Merged guest reply fix for MDL-7393 2006-11-08 09:45:09 +00:00
moodler
f5bf7ea86a Merged reply link fix from stable 2006-11-05 09:35:01 +00:00
moodler
bf553d9e85 Allow autologin as guest when viewing discussions (come in via link, say) 2006-10-24 15:58:34 +00:00
moodler
7b08a2ea3f Merged fixes for MDL-7116 from stable 2006-10-20 06:19:22 +00:00
toyomoyo
f0ef40c55f merged proper fix for MDL-6926 2006-10-17 04:46:34 +00:00
moodler
50e07a4995 Patched login for discussions 2006-10-03 01:19:35 +00:00
vyshane
825d73aa33 Fixed missing separator (MDL-3975). 2006-09-29 07:28:11 +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
83da3d286c Fix for MDL-3975. Also added function in rsslib.php to delete cached RSS feeds for the source and destination forums when moving a discussion between 2 forums. 2006-09-26 08:37:56 +00:00
skodak
499c621417 fixed quoting error 2006-09-25 14:15:55 +00:00
vyshane
7c900d5d62 Changed to require_capability where possible 2006-09-25 13:14:50 +00:00
vyshane
7fa8296f01 Bug fixes 2006-09-25 13:05:18 +00:00
vyshane
49a0ba9438 Cleanups in view.php. Also moved logging of a forum view so that the event is not logged if the user does not have permission to view discussions in a forum (user never sees the discussions, so not counted as a view).
Tidy up of error display in discuss.php for when a user does not have permission to view the discussion.
2006-09-21 05:42:35 +00:00
martinlanghoff
5a39def902 re-merge of "Merged fix from 1.6 for Bug #5131 - RSS Feeds and Moving Discussions."
Originally by vyshane - got dropped accidentally in one of the biiiiig roles
commits.
2006-09-17 02:27:13 +00:00
vyshane
45c38eef4c Removed deprecated forum type teacher. 2006-08-22 07:38:01 +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
vyshane
9af1611a06 Replaced capability mod/forum:viewdiscussionsfromallgroups by
moodle/site:accessallgroups in code. Removed former from mod/forum/db/access.php.
2006-08-08 06:56:09 +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
martinlanghoff
c1cda9df45 forum: notification of a moved dicussion (bug#4874)
Moving a discussion now leaves a notification message in the
original location with a link to the new location.


Author: Luke Hudson <luke@catalyst.net.nz>
2006-07-31 04:54:44 +00:00
vyshane
4e5e7d54b5 Merged from 1.6 stable. Error message now displays using notify() instead of
error() when purging of old RSS feeds fail during a discussion move.
2006-06-26 04:44:41 +00:00
moodler
e6dd6b9a68 No need for error when deleting RSS feed 2006-06-19 16:20:35 +00:00
vyshane
883f4e3dc6 Merged fix from 1.6 for bug:
Notice: Undefined property: id in /home/moodle/public_html/certificate/mod/forum/discuss.php on line 38

This happens when the user is not logged in and wants to view a forum of type
news.
2006-06-14 08:47:19 +00:00
vyshane
b134f6a71e Merged fix from 1.6 for Bug #5131 - RSS Feeds and Moving Discussions. 2006-06-07 08:19:34 +00:00
moodler
ff1dc0465b Merged fixes for forum_user_can_view_post from stable 2006-04-07 14:54:52 +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
e6bacdc55c Merged bugfix for bug 4431 from stable 2005-12-22 10:09:21 +00:00
toyomoyo
073286f06f merged fix for bug #4431 2005-12-20 05:22:59 +00:00
moodler
aff9fe5e11 Rolled back, bug Bug #4431 hasnt been fixed 2005-12-08 06:48:50 +00:00
moodler
d0087b2f5c Adding if statement to verify whether user can see postings or not (Bug #4431) 2005-12-08 05:01:57 +00:00
moodler
c992ff85c2 Merged parameter fixes from STABLE 2005-12-05 04:36:25 +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
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
acb50c1bf8 Don't save Guest forum mode to database (just session) 2005-05-13 02:06:16 +00:00
mchurch
eaf50aeff8 Added tracking settings per forum. 2005-04-26 16:27:51 +00:00
moodler
768f90f657 DOn't allow discussions to be moved out of the teacher's forum. 2005-04-20 13:26:06 +00:00
moodler
af3014b489 Merged logic fix for replying from STABLE 2005-04-13 08:27:09 +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
moodler
b9dc937d01 Removed some redundant wrappers 2005-03-13 16:25:30 +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