727 Commits

Author SHA1 Message Date
moodler
356fea4a64 Slightly better 2003-08-21 08:20:20 +00:00
moodler
5640353876 Course search shouldn't find the "site" course. 2003-08-21 08:19:28 +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
a8b5671697 Improvements to course searching
- can search for full words or non words with +word -word
 - no longer groups by category, sorts by full name
 - prints paging as well as total number
 - search help
2003-08-19 05:32:20 +00:00
moodler
e27dbcc8e5 Limit pages to something sensible 2003-08-19 04:37:32 +00:00
moodler
8b9c7aa069 Searching forums now has proper paging. 2003-08-19 03:35:53 +00:00
moodler
42282810f8 Better set_config (give immediate results) 2003-08-18 17:41:06 +00:00
moodler
2f4d324bd7 Trying something different with the admin links ... even I was starting
to get a bit lost occasionally.
2003-08-18 16:40:27 +00:00
moodler
1f7deef685 FIxed bug that was not showing custom scales 2003-08-18 11:58:07 +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
fdc47ee6c9 New function make_grades_menu() for easily making an array of grades 2003-08-18 05:10:35 +00:00
moodler
12407705af Check for existence of directory as well to avoid PHP warnings 2003-08-17 14:16:08 +00:00
moodler
487c1711fe There's no point in printing the notice - if there's no directory
there's no files ... pretty simple.
2003-08-17 14:14:12 +00:00
moodler
678d11c921 Upgrading to version 2.0 RC1 - hoping it will fix some Windows problems
in the older version.
2003-08-17 12:35:20 +00:00
moodler
3041b0f88a More robust teacher adding/removing 2003-08-17 08:51:55 +00:00
moodler
6815044f28 Exclude vti_cnf directories if they are found 2003-08-17 05:50:47 +00:00
moodler
4d312bbe0f Don't enrol student if they are already enrolled. 2003-08-17 05:48:05 +00:00
moodler
94d782eb93 Don't show feedback when running SQL 2003-08-17 01:55:03 +00:00
moodler
64cbb55c2e Make sure it's THIS course that the student is currently enrolled in 2003-08-17 01:49:15 +00:00
moodler
0a08581d61 New function get_recent_enrolments() to more efficiently get recent enrolments 2003-08-17 01:45:26 +00:00
moodler
b6c1273289 Only editing teachers see controls and things 2003-08-16 06:44:03 +00:00
moodler
21f93862bd Backed out the new configuration variable "creatornewcourses" as it
is no longer wanted or needed
2003-08-16 05:43:26 +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
48d72fa7c9 *** empty log message *** 2003-08-16 02:45:44 +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
df4f06706a Added get_courses_search() etc 2003-08-14 11:49:57 +00:00
moodler
1ddf93298b Tweak 2003-08-12 08:29:47 +00:00
moodler
6535be8551 New, shorter intro to styles files that calls a function.
This function sets header information to improve caching (default 5 minutes)

Cookies are also prevented to improve cacheability.
2003-08-12 07:52:19 +00:00
moodler
16e4918d43 Little tweak to fix a caching problem.
User images were not being cached properly because Moodle was
sending a session cookie.  I've turned this off now for user images.
2003-08-12 07:02:34 +00:00
moodler
4e56c82dab get rid of signed parameter when upgrading columns to varchar or text 2003-08-10 14:38:47 +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
05c195931c A little timing issue 2003-08-10 08:17:59 +00:00
moodler
55e4b5f97d Some cleanups of the admin page to make it
- more explanatory
  - more expandable

Apologies for the lost muscle memories, but I think this
will work better in the long run.
2003-08-10 08:01:14 +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
ee23f384bf Some declarations just in case (for the included files). 2003-08-08 11:29:33 +00:00
moodler
125898afd2 Use the "correct" way of encoding HTML (quoted-printable) instead of
warapping it like text (which was working, but...).
2003-08-08 03:39:25 +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
7b2e275106 Full name of Macedonia 2003-08-07 15:23:10 +00:00
moodler
f27802ad3b Yugoslavia --> Serbia and Kosovo 2003-08-07 15:17:33 +00:00
moodler
5f14e17029 A small fix for mail boundary headers that may have been breaking some
mail programs (notably Exchange).
2003-08-07 11:42:12 +00:00
moodler
688d06f442 Added mailformat to user data returned in class listings.
This fixes a bug where students were getting plain mail only
on forums that were force-subscribed.
2003-08-04 05:48:39 +00:00
stronk7
74a0363f0c LIMIT is now working properly. 2003-08-03 21:49:19 +00:00
moodler
07aeb7b0bf Move the code for clearing out a course into a new function:
remove_course_contents()
2003-08-02 11:32:59 +00:00