157 Commits

Author SHA1 Message Date
moodler
ce45515e7d Err ... whose idea was it to cache the strings in forum_make_mail_post? :-) 2003-09-16 06:35:37 +00:00
moodler
2e2e71a8da New feature: "Show Parent" on all posts will take you to to the parent
of any given post.  Detects threaded mode and behaves a bit differently
though intuitively.
2003-09-16 02:42:22 +00:00
stronk7
b32bbab698 Modified a bit the xx_get_participants() function to avoid
non existing activities warnings.
2003-09-07 21:40:52 +00:00
stronk7
eaa3298b07 Included forum_get_participants() function. 2003-09-07 21:28:31 +00:00
moodler
fa01ae8be0 FIx for the display of the help window for the current scale 2003-08-27 11:27:40 +00:00
moodler
4cabd35565 For students, don't search invisible forums! 2003-08-26 12:18:14 +00:00
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
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
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
moodler
cc2b7ea551 Fixes bug #619 -- moving discussions wasn't moving attachments 2003-08-17 14:46:44 +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
9400ee33c5 Missing picture data in forum_get_recent_posts 2003-08-11 16:56:33 +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
moodler
d769d2ee51 Rebuild course cache using the function for it. 2003-07-20 07:56:51 +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
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
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
713386aadb Left out a field! mailformat 2003-05-18 02:36:02 +00:00
moodler
06cffaf0bb No need to get all the user data for forum_subscribed_users 2003-05-17 06:13:38 +00:00
moodler
0a9f61b55f When posting a forum, users can unsubscribe/subscribe on the fly.
The flag has a memory, but it keeps pushing you to subscribe.  :-)
(so that by default it behaves like it did before)

Hopefully now subscription is a bit easier to understand.
2003-05-13 13:53:36 +00:00
moodler
170a9c4612 Force subscription on a teacher's forum only includes teachers! 2003-05-12 09:01:23 +00:00
moodler
6afe855886 Better tooltip help on post attachments 2003-05-09 06:03:47 +00:00
moodler
b879effb4a Fixed bug that was not listing discussions that had identical subjects! 2003-05-05 16:21:45 +00:00
moodler
d342c76370 Added Wiki format as a system-wide format (forums, journals, etc)
Also, added better formatting to plain-text emails via a new function
in weblib.php  -  format_text_email
2003-05-04 04:07:36 +00:00
moodler
9f0b8269ac Fixed bug where text format of a new discussion was not being saved 2003-05-04 03:43:46 +00:00
moodler
edffca1558 Changes to make forum mailouts a little more robust, and avoid duplicates
I hope, at least the ones caused by overlapping cron jobs.
2003-05-01 12:56:03 +00:00
moodler
1b5910c4a5 Trying a different tack for recent_activity since the old way was
still producing too much data and overflowing PHP memory on busier
sites (eg moodle.org).

Now, there are more database queries, which is unfortunate, but the
data is much more specific, and no sorting needs to be done, so
this is a performance boost.

I don't know how these will cancel out ... my guess is that very
small sites may be very slightly slower on the course page, but
that large sites will be much faster.

Let's see.
2003-04-26 15:08:34 +00:00
moodler
ad08fdc277 Performance improvements
- better checking of data before processing
  - used logs are removed to avoid re-processing by other modules
2003-04-26 12:59:41 +00:00
moodler
278a229c25 Slight fix to teacheronly coloring 2003-04-26 12:22:52 +00:00
moodler
3d89198946 Cleaned up definition of constant COURSE_* values in course/lib.php
Moved COURSE_TEACHER_COLOR out to style sheets where it belongs (.teacheronly)

Added some efficiency when printing recent activity

 - don't print more than one weeks worth of updates
  - don't keep re-parsing logs once they've been used
2003-04-26 12:17:30 +00:00
stronk7
dff0db9ad5 Show activity log only from visible forums. Bug #367. 2003-04-26 00:17:42 +00:00
paca70
c4c575979e Allow caseinsensitive search for postgesql 2003-04-25 19:32:38 +00:00
moodler
9dd0b37817 Make sure to change the ownership of uploaded files 2003-04-21 07:11:29 +00:00
moodler
2ab968e937 Trying some optimisations 2003-04-18 09:53:41 +00:00
moodler
03aa0dfa10 Style improvements and upgrades 2003-04-18 06:39:40 +00:00