97 Commits

Author SHA1 Message Date
moodler
29b25b0498 Much better updating of access times to make the accurate straight away 2003-10-27 13:38:08 +00:00
moodler
4d744a220a Added a new column to user_students and user_teachers called "timeaccess"
for recording the last access to the COURSE.

This is updated at the same time as add_to_log and is now used instead
of user->lastaccess when course user listings are required.

This means course listings now show what you expect and open up the way
for a "current users" listing and instant messaging etc ...
2003-10-27 12:38:00 +00:00
moodler
4909e17632 These changes implement some better controls for controlling uploads.
1) There is a new site-wide configuration variable called maxbytes,
   which provides an upper filesize limit for all (student) uploads.

2) There is a new course-level variable called maxbytes, which further
   limits uploads within a course.

3) There is a new maxbytes field for forums, which further restricts
   the size allowed in a particular forum.  There is also a new config
   variable in the module configuration to specify a default size
   to use when defining a new forum.

4) Assignments already had a limit, but this is now aware of the other
   limits, and like forums there is now a settable default value.

5) Finally, the sizes of files (Gb, Mb, Kb, bytes) is now translatable
   in the language packs.
2003-10-06 18:02:35 +00:00
les_kopari
401a81dddf Added columns indent, visible to create, inserts. 2003-09-24 02:06:34 +00:00
les_kopari
24604ce7fe Initial version for Oracle: does nothing. 2003-09-24 01:30:43 +00:00
moodler
aac94fd0cc New field on course_modules called "indent" ... this is an integer
that tells us how far to indent the activity when it is displayed.

This gives us some more flexibility on the course outline to
arrange things as we might like them, into subtopics etc

Backup/restore is updated as well.

There is also a bit more robustness in course/mod.php
2003-09-14 16:31:33 +00:00
moodler
c7ce6d80a3 Used the wrong function to display the message (Notify, not Notice) 2003-09-14 12:22:13 +00:00
les_kopari
96c1e116e6 Oracle tables, etc converted from mysql, plus test transactions. 2003-09-13 08:05:21 +00:00
moodler
e71f132dc8 Added missing showrecent field to PostgreSQL 2003-09-10 13:48:19 +00:00
paca70
577cf8991f Fixed some typos pointed by Pasha. 2003-08-28 18:00:36 +00:00
moodler
d0117715f3 Added a log display for "course use reports" 2003-08-27 09:33:12 +00:00
moodler
a1b2bec873 Remove half-finished oracle files 2003-08-26 07:09:14 +00:00
moodler
3052e775c8 Added an index on courses for the category 2003-08-21 08:14:56 +00:00
moodler
fff79722e5 A new course field called "showgrades" which allows the teacher to
turn the display of the grade book on and off.
2003-08-20 07:32:24 +00:00
moodler
9936fe81ea The number of courses in the categories is now cached in the
the category, and only updated when courses are moved/added/deleted etc
or the admin looks at the category listing
2003-08-19 09:26:36 +00:00
moodler
73047f2f76 OK, this is a new scheme to allow some teachers to edit and others to not
that is much better than the proposal to change the role of course creators.

There is a new field in user_teachers called "editall", which is
ON BY DEFAULT, and allows teachers to edit courses.  It can be modified
on the teacher editing screen (formerly assign teachers).

The value is cached in the session.

To test for it, there is a new function isteacheredit($course->id)
which works much like isteacher did.

I'm going through now and applying this new function wherever
it is needed.
2003-08-16 05:19:24 +00:00
moodler
5fcd1b52aa Hold the presses ... I hate doing this but after going into detail
changing the course creator account like this is the wrong way to
do this.

Instead, I'm going to be adding new fields to user_teachers

Stay tuned
2003-08-16 03:28:56 +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
11402bbdbc Do a check to create the default scale if it isn't already 2003-08-15 14:30:30 +00:00
moodler
a142b3b4ba New scale table for PostgreSQL 2003-08-15 14:17:15 +00:00
moodler
37eef3ed91 WHoops - you'll need this table. :-) 2003-08-15 14:12:52 +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
50b5487c54 Get rid of the enumerated type on the course formats, so that
we can think about adding custom course formats into course/format
2003-08-10 14:36:52 +00:00
moodler
d2b6ba704e Another big checkin.
This includes some significant cleanups to the new course categories
system.  The basic idea is that the categories/course browser is now
unified under one system, and admin features related to that have
all been moved into the browser (as little icons).

I'm much happier with this as a foundation that can scale and be
built upon.

Still to go:

  - searching
  - paging
  - polishing

Also in here are a lot of little cleanups around the place, such as
the initial setup process.
2003-08-07 16:01:31 +00:00
moodler
c2cb45451f COURSE DISPLAY REVAMP
OK, some big changes here to the front end, particularly in
course categories and course display.

Course categories can now be nested (to any level).

Courses and course categories can now be manually sorted
any way required.

There is a groovy front end for managing these, and a better
range of options for formatting the front page.

It all still needs some polishing, which I'll be doing over
the next couple of days, including better auto-sorting.

I would not use this on production systems just yet.
2003-07-30 13:02:45 +00:00
moodler
1dbb6e5031 Added some flushes in case the indexes take too long ... 2003-07-28 03:28:43 +00:00
moodler
a8fa25d18d Improved indexing for improved performance on the course page, when viewing
logs and when viewing lists of users ... thanks to Eloy for the one on the log file.
2003-07-28 02:51:56 +00:00
moodler
dd0bd5088c Increase the size of the field to store sequences in course_sections 2003-07-21 14:28:04 +00:00
moodler
a6d82c3f49 New course parameter "visible" which makes the course available to
students.  Defaults to 1 (on).  Teacher can control this from settings page.
2003-07-21 07:31:01 +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
7adf67875d Some notices to remind people about things they need to do. 2003-05-15 17:26:59 +00:00
moodler
5867bfb50e New feature to manage installed code modules!
You can now hide/show individual activity modules and even delete them completely!

For example, if you hide the "choice" module, then all choice activities
will be hidden throughout the whole site, and "Choice" will not
appear on any "Add..." menu.

Deleting a module is a complete deletion of all data from the database.

If you want to try out the deletion on a real module, I suggest the
pgassignment module, since it will soon be deleted from CVS anyway
(because it's being replaced with workshop).

Look for "Manage modules" on the admin menu.
2003-05-09 17:24:17 +00:00
moodler
7e6b0b3b6e Added new 'visible' field for module management. 2003-05-09 13:32:27 +00:00
paca70
465fd00e04 Lang column was missing from postgresql-files (?) 2003-05-04 16:05:59 +00:00
moodler
7d99d6959e New feature: hide/show topics! 2003-05-04 07:59:46 +00:00
paca70
ea563f8f99 Postgres needs full longnames for indexes to prevent overlapping names. 2003-05-03 06:44:03 +00:00
moodler
a273084d7a Strange no-one has noticed this so far ... ! 2003-04-28 16:56:57 +00:00
moodler
b86fc0e2a6 New feature replacing the old zoom function.
Now these are saved in a new table called course_display,
each user and each course can have independent settings.

I'm intending to expand this table later for all the other
course display stuff (like hidden topics etc)
2003-04-28 13:29:26 +00:00
paca70
e209e0b09e indexes for postgres 2003-04-27 09:54:03 +00:00
moodler
f9ce68ee7f Using multiple indexes for slightly increased performance 2003-04-27 02:58:26 +00:00
moodler
1ba3960285 Working much better with indexes - update the schema 2003-04-26 15:26:51 +00:00
moodler
6459f225b8 Update to add new indexes to MySQL tables. Speeds up the log access. 2003-04-26 15:24:04 +00:00
moodler
047d30d1eb MySQL code (etc) to convert all usernames to lowercase ... does a lot more
checking than it really needs to, since MySQL is not case sensitive
2003-04-25 03:54:21 +00:00
paca70
e40488f80c routines to convert postgeruser to lowercase. 2003-04-24 18:48:09 +00:00
paca70
1dea7ebb04 global $CFG was missing...? 2003-04-24 17:38:20 +00:00
moodler
13df5aeef3 Rebuild course modinfo caches to include the visible variable 2003-04-23 17:02:24 +00:00
moodler
b369ff55fe Whoops, chmod not chown 2003-04-21 07:26:23 +00:00
moodler
718ad19f47 trying to fix up old file permissions 2003-04-21 07:21:33 +00:00
moodler
1acfbce5b6 Hide/show individual activities in any section
Code submitted by Eloy Lafuente (thanks!) for 1.0.8 ... I hand-merged it
into 1.0.9.
2003-04-14 15:11:09 +00:00
moodler
264d4e0b9a Added two new indexes on log table to help speed it up.
See Greg's note in bug 113
2003-03-26 02:17:46 +00:00