230 Commits

Author SHA1 Message Date
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
moodler
06cffaf0bb No need to get all the user data for forum_subscribed_users 2003-05-17 06:13:38 +00:00
moodler
3a4c2fd089 I knew there was something else I'd forgotten!
Added a check to all modules (well view.php anyway) to check whether a
module is hidden or not.  If it is, then students get a message.
2003-05-15 18:03:22 +00:00
moodler
9a2efc9fb0 Don't be so pushy about subscription 2003-05-14 07:47:04 +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
e825f27967 New pop-up help page about smileys - clicking on the smiley inserts it
into the form using Javascript!

Also rationalised and patched some of the other help about text formats.

LANGUAGE EDITORS MAY WANT TO RE-CHECK:

   lang/en/help/textformat.html
2003-05-08 16:09:30 +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
8de14dc72b Print some nice feedback when a discussion has been moved, to help
prevent accidents.
2003-04-28 15:27:44 +00:00