342 Commits

Author SHA1 Message Date
moodler
d6bdd9d5e9 Forum grades can now be numerical as well (like the other modules).
If so, grades in the gradebook are printed as proper numbers and
contribute to the total of the course.
2003-08-25 12:47:36 +00:00
moodler
f2f564066b Some improvements to the forum editing interface to make the buttons
hide/show appropriately
2003-08-25 08:04:39 +00:00
moodler
98914efdbe New mini-feature. When choosing ratings in a forum, one can now
specify a range of dates.  Only posts within this range can be rated.
If the range isn't specified then all posts can be rated.
2003-08-25 07:39:06 +00:00
moodler
5884d4e2fd Fixed some array indices 2003-08-25 02:48:09 +00:00
moodler
05c47ef78e FIxed display of ratings when they are literally "0"
Also fixed default discussion display mode
2003-08-25 02:41:25 +00:00
moodler
0761d83f54 Final ratings are now calculated using rounded mean rather than median.
0.5 scores go UP.
2003-08-25 02:22:35 +00:00
moodler
1930e95964 Even nicer interface with help 2003-08-19 04:45:29 +00:00
moodler
1ede7c03ce tweak 2003-08-19 04:40:35 +00:00
moodler
b1267a180d Slightly neater help 2003-08-19 04:39:59 +00:00
moodler
8b9c7aa069 Searching forums now has proper paging. 2003-08-19 03:35:53 +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
moodler
62ca135d98 More cleanups and separation of printing the grades menu into a new function 2003-08-18 05:28:30 +00:00
stronk7
93d7d97fc8 Scales are now supported in forums backup and restore 2003-08-18 00:03:40 +00:00
moodler
cc2b7ea551 Fixes bug #619 -- moving discussions wasn't moving attachments 2003-08-17 14:46:44 +00:00
moodler
ec9c0d4421 Show default mode again 2003-08-16 06:20:39 +00:00
moodler
6f4f04df3e Fixed database upgrade so that forum->scale is created before the
get_scale_menu tries to use it.
2003-08-16 02:30:23 +00:00
moodler
02ebf404c8 WARNING: BIG CHANGES!
OK, this is a big check-in with some big changes, and needs work still.

It seems relatively stable, but I need help identifying the rough patches.

1) First grading scales support.  There is a now a new table called "scale"
   that contains grading scales.  There can be site scales (course=0) and
   custom course scales.  These can be used in modules - I've only done
   forums for now but that was the hard one.  Scales can be edited via
   the new item in the course admin menu.

   There is one default scale - the connected/separate knowing one that used
   to be in forum.  To build this I pull data from the language packs
   to create one during the upgrade, or anytime a scales menu is called
   and no scales are found.

2) New roles for course creator and teachers.  I've fixed up the course
   menus and some other things but there's a lot left to do on this to
   make it all smooth.  The idea is that teachers no longer can edit courses
   unless they are also course creators.  The interface for this needs to
   be smoothed out a fair bit and I need help with this.

   The upgrade will upgrade all teachers to be creators, but will default
   the new site config "creatornewcourses" to "no", so that effectively
   these new teachers have the same privileges.

3) Simplified teacher management.  There is no longer an "assign teachers"
   and a "teacher roles" page - it's all on one page in course/teacher.html.


Phew ... time for a shower and then back into it.
2003-08-15 13:59:24 +00:00
moodler
2b4c64e98f Better compatibility for POstgreSQL (old regexps were case sensitive) 2003-08-15 08:16:20 +00:00
moodler
a74f950c4e Improved search.
Default is now back to subwords, but words can be used with +word and -word
2003-08-15 08:04:54 +00:00
moodler
63d99fcb1d Added (default) option to search for whole words with forums.
(SQL regular expressions from David Delgado - thanks!)
2003-08-14 06:34:56 +00:00
moodler
c6ee38d073 Some refinements to the display of forums
- don't show intro box for teacher forum (because it can't be edited)
  - don't show intro box when the text is empty anyway
2003-08-12 16:37:52 +00:00
moodler
9400ee33c5 Missing picture data in forum_get_recent_posts 2003-08-11 16:56:33 +00:00
moodler
ceca2ad2b0 Looks better when nothing is found 2003-08-09 07:59:39 +00:00
moodler
3f26745351 Better button behaviour 2003-08-09 06:02:01 +00:00
moodler
b800ac5a10 Much improved forum searching, with independent words and paging 2003-08-09 05:35:02 +00:00
moodler
88438a5893 New highlighting function that is able to cope with HTML.
It's a bit slower, but links in forums no longer cause problems.

See bug #589
2003-08-09 03:57:46 +00:00
moodler
e9c2dc1fa0 Robust variable for attchments 2003-08-09 02:00:20 +00:00
moodler
0351b1f9f4 Language of receiver was not being set correctly 2003-08-08 03:38:18 +00:00
stronk7
c45f0ee1cc Fixed important bug when recovering assignments or forums
with files and the moddata/courseid didn't exist.
Now force the creation of the courseid dir from the
restorelib in each module.
2003-07-28 22:31:23 +00:00
stronk7
902142c079 Added language support 2003-07-28 19:32:51 +00:00
moodler
d769d2ee51 Rebuild course cache using the function for it. 2003-07-20 07:56:51 +00:00
moodler
cccb016ae4 When displaying index lists of a particular module's activities,
ensure that the order they are displayed in is always the same as the
order they have been defined in.   See bug 553.

This involved API changes to the function get_all_instances_in_course()
2003-07-12 05:19:18 +00:00
moodler
60bb26021a Whoops forgot to check these babies in 2003-07-10 08:12:18 +00:00
moodler
cc3655a22c Just some comments 2003-07-10 08:11:58 +00:00
moodler
10696dc1f3 Timezone included in user listing, plus new recent activity stuff 2003-07-08 06:47:44 +00:00
moodler
c99ce77b17 Recommitting because of CVS wierdness 2003-07-05 11:52:01 +00:00
moodler
72d497d4ce Display images inline when attached to forum posts 2003-07-05 03:54:10 +00:00
moodler
908d7b30fb Seems to be working pretty good - removing old lines no longer needed 2003-06-20 06:58:42 +00:00
moodler
f95c2a73ca Anchors on threaded posts too 2003-06-20 06:50:14 +00:00
moodler
b22b0e61f0 An initial effort at making posts return to correct context 2003-06-20 06:35:09 +00:00
moodler
717f40c6d8 Some fixes to avoid pointless uses of $ME 2003-06-16 14:40:51 +00:00
moodler
b8bf90c53f Minor interim change to improve display of discussions on user page
because some of them are getting really long on moodle.org

Eventually this display will be completely different, with information
about all public data.
2003-06-15 07:11:11 +00:00
moodler
19cbf6ffa1 Slightly larger posting window 2003-06-13 16:07:13 +00:00
moodler
14f593e176 Better setting of defaults 2003-06-09 05:34:24 +00:00
moodler
7f2a3e678e New field for user: autosubscribe
This sets the default value for on-the-fly forum subscription.
Defaults to on = subscribe.

(Also fixed a bug in postgres7.sql - a missing field for htmleditor!)
2003-05-23 05:32:40 +00:00
moodler
4b2b7a7110 Full formatting looks bad (too much whitespace) but smilies are OK 2003-05-23 05:05:49 +00:00
moodler
6687be174a Improvements to the wordings for subscription 2003-05-23 05:00:58 +00:00
moodler
f5ca7ebe1a Display forum intros as formatted text 2003-05-23 04:51:28 +00:00
moodler
11697b48ea Minor code cleanups
- lowercasing
  - removing short php tags
  - adding some emoticon help here and there
2003-05-20 08:03:12 +00:00
moodler
713386aadb Left out a field! mailformat 2003-05-18 02:36:02 +00:00