902 Commits

Author SHA1 Message Date
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
moodler
0eeac484f3 Extended get_records so it can deal with LIMITs now 2003-07-31 12:18:22 +00:00
moodler
7e1a999c10 Moved fix_category_courses to datalib.php so it's more accessible 2003-07-31 12:09:17 +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
754095d63e Secureforms now default to OFF 2003-07-30 04:59:29 +00:00
moodler
46213aa855 Improved magic_quotes routine (deals with arrays now, too) 2003-07-29 01:54:16 +00:00
moodler
aa6af0f833 A hack to get around magic_quotes_gpc being turned off 2003-07-28 16:37:12 +00:00
moodler
67a63a3060 Cleaned up the remaining images:
- moved user images to /pix/u folder, and changed format to .png to allow
   transparent images etc.  These can now be customised in themes.

 - removed legacy madewithmoodle logos
2003-07-28 11:42:53 +00:00
moodler
4458c8a887 I'm hopeful this is a fix for the wrapping problem ... 2003-07-28 05:53:03 +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
706be21465 Upgraded phpmailer to 1.70 2003-07-27 13:26:07 +00:00
moodler
2b97bd71e3 Use the admin user as the envelope sender (to catch bounces etc) 2003-07-27 13:14:00 +00:00
moodler
1dc42c2ef8 Fix for Herzogovina 2003-07-25 16:39:14 +00:00
moodler
da0c90c313 Fixed user graphs for site-level, all logs 2003-07-25 13:23:28 +00:00
moodler
7e4a64888b When displaying a user's logs for the current day, make the graph
display ALL courses (ie to match the logs printed below).
2003-07-24 01:54:06 +00:00
moodler
7618a8eb92 More debugging/checking on get_record_sql 2003-07-23 06:30:26 +00:00
moodler
4d7a373539 Added some additional error checking of get_record_sql when in debug mode 2003-07-23 04:33:40 +00:00
thepurpleblob
464712ec77 Yet more minor problems fixed for hyperlink/mailto: conversion
difficulties
2003-07-22 10:11:12 +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
1efa27fdbb Close loophole for invisible courses by re-enrolment 2003-07-21 07:50:59 +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
d4df9200b6 Moved print_headline() to weblib.php 2003-07-21 04:53:55 +00:00
moodler
f78ae3c432 Fixed translation 2003-07-21 00:59:21 +00:00
moodler
86aa7ccfdf New feature - "Web link" resources can now specify a popup window
fullscreen is currently the only feature left out of this .. I had
trouble getting it to work consistently so I've left it out as being
more troubles than it's worth.
2003-07-20 13:53:31 +00:00
moodler
f8a51b414b Don't convert URLs into links for the plain text format because
it can mess up code sometimes
2003-07-15 02:19:12 +00:00