Commit Graph

84 Commits

Author SHA1 Message Date
vyshane
583b57b42d Changed <module>_print_recent_activity() functions so that they don't use $isteacher. However, I've left the $isteacher parameter in the functions, for backward compatibility so as not to break thrid party modules. Should we remove the parameter now? 2006-09-24 14:01:50 +00:00
vyshane
1febf1a77a Replaced isteacher & co. Fixed some issues. 2006-09-22 06:29:40 +00:00
moodler
b32c8ddadd Fixed typos in capability names 2006-09-21 14:05:58 +00:00
vyshane
9222e72167 Removed capability mod/forum:viewforum. We will use moodle/course:viewhiddenactivities and hide/unhide forums instead. 2006-09-21 08:32:05 +00:00
vyshane
9fa3350862 Upgrade now works. Needs more testing. 2006-08-22 05:45:43 +00:00
vyshane
f0da6b858e Removed $forum->open, $forum->assesspublic from code. Fixed bug in upgrade
code, changed module config form to accomdate removal of forum.assesspublic
and forum.open.
2006-08-21 06:56:04 +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
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
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
03877b049e Users can now subscribe/unsubscribe to all forums in a course from the forum list 2005-11-28 03:11:05 +00:00
stronk7
91121c8904 shorten_text() AFTER format properly. See bug 4355.
(http://moodle.org/bugs/bug.php?op=show&bugid=4355)

Merged from MOODLE_15_STABLE
2005-11-21 15:42:19 +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
stronk7
a9022f9e9b Generate properly RSS column. It was breaking styled (colored) rows.
Merged from MOODLE_15_STABLE
2005-06-10 09:04:59 +00:00
mchurch
c39748f4b4 Re: Bug 3033 - fixed incorrect arguments in markposts for the forum index
screen.
2005-04-28 19:49:01 +00:00
defacer
630bd96bd9 Fixing read tracking link when tracking is forced. 2005-04-26 22:02:26 +00:00
mchurch
eaf50aeff8 Added tracking settings per forum. 2005-04-26 16:27:51 +00:00
moodler
c246882469 Now it behaves properly when tracking is turned off 2005-04-25 18:36:32 +00:00
moodler
6de6cd5a27 Fixed forum index, removed "mark read" links .... 2005-04-25 17:45:15 +00:00
mchurch
20a3dad574 Added the ability to mark discussions read. 2005-04-25 15:00:27 +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
mchurch
331c512a10 Added the ability to mark all posts in a forum as read. 2005-04-25 03:56:02 +00:00
mchurch
9e2b1877e0 Added enable/disable forum tracking in a user profile. 2005-04-24 19:46:13 +00:00
mchurch
38994d6ff7 Added the user forum tracking settings. 2005-04-24 13:27:20 +00:00
moodler
4c3b9e020f MOre cleanups to links etc 2005-04-20 05:27:20 +00:00
moodler
9a0eb67916 Cleaned up the display of forum introductions and added link to discussion count 2005-04-20 05:19:52 +00:00
moodler
535136bde7 Correct calls to require_course_login 2005-04-13 07:00:35 +00:00
stronk7
fac63246cc Forum->intro is processed correctly by format_text() everywhere. 2005-03-26 17:31:01 +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
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
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
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
9fd7165aaa Center-align some columns again 2005-01-30 05:14:03 +00:00
moodler
d0388ebe95 Added links to unread notices on course-view and forum-index 2005-01-30 04:47: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
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
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
stronk7
b2ddd9d7ae Now RSS links are displayed ok in SITEID course.
Bug 2048.
(http://moodle.org/bugs/bug.php?op=show&bugid=2048)

Merged from MOODLE_14_STABLE
2004-10-04 22:21:30 +00:00
gustav_delius
8f0cd6ef0f Resolved problems with previous replacement of
& to &amp; and fixed redirect() to entity encode the
inut where needed.
Julian Sedding
2004-09-21 11:41:58 +00:00
moodler
38fcc21592 Merged PHP5 fix from stable 2004-09-17 03:00:20 +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
33f48f030e Now the RSS link is showed in the list of forums.
Now going to the glossary...

Bug 1706
(http://moodle.org/bugs/bug.php?op=show&bugid=1706)
2004-08-08 18:00:32 +00:00
moodler
2862b309eb Merging changes from Moodle 13 Stable 2004-07-07 17:42:53 +00:00
moodler
9c8b8eeeb5 Fix for the display of hidden forums to students - bug 1209 2004-04-01 03:45:34 +00:00
moodler
bd83d0a3a8 OK that should fix the access problem, as well as a bug with organising the data 2004-03-13 12:01:28 +00:00
moodler
5b5f2971f1 Some fixes to counting, still need to fix some access issues 2004-03-13 11:26:29 +00:00