169 Commits

Author SHA1 Message Date
moodler
4c46c425db Changes to integrate the new HTML editor into Moodle in an optional way
until it's stable enough to replace Richtext

To enable the new editor, add this line into config.php:

  $CFG->useneweditor = true;
2003-10-29 08:06:11 +00:00
moodler
2eea2ccedc Remove quotes from title - these can cause the stylesheet to not load
properly on Internet Explorer.
2003-10-24 06:27:15 +00:00
moodler
5f546a46f0 Slightly nicer code when redirecting 2003-10-21 06:42:10 +00:00
moodler
39dda0fc4f Added nolink tag 2003-10-16 14:25:36 +00:00
moodler
3528bae253 Fixed comments on str_ireplace 2003-10-16 10:20:35 +00:00
moodler
7ec2fc00a0 Improved version of str_ireplace() for older versions of PHP (now handles arrays) 2003-10-16 09:28:27 +00:00
moodler
c53be4c013 Some cleaning up ... shouldn't make much difference 2003-10-15 02:48:40 +00:00
moodler
e67b9e31e5 NEW EXPERIMENTAL FEATURE: text filters.
This new feature allows arbitrary text filters to be added to
any HTML that is printed (forum posts, resources etc) ... anything
that uses the standard format_text function.

The first one properly supported is the glossary dynamic linking
feature.
2003-10-13 14:11:17 +00:00
moodler
408e62f865 FIxed bug when no courseid 2003-10-12 17:24:46 +00:00
moodler
50bdc74de2 A new feature to allow teachers to browse course files to
find images to insert into Richtext editor windows.

This hack was started by Janne Mikkonen, and I further refined it
to fit better into Moodle.

See:  http://moodle.org/mod/forum/discuss.php?d=2126
2003-10-12 17:12:02 +00:00
moodler
950cf40381 <acronym> is an allowed tag 2003-10-06 18:09:27 +00:00
moodler
d8152d04c0 Language direction is now set in the language file, rather than
as a site-level setting.  This currently only affects Arabic but
will affect Hebrew later and maybe others.
2003-10-05 14:05:57 +00:00
moodler
a1f8ff87c7 Small fix to avoid warnings on empty tables 2003-09-23 12:18:27 +00:00
moodler
e4576482d5 Robustness on an optional variable 2003-09-21 16:35:49 +00:00
moodler
66a51452d9 Changes from Mad Alex and Gustav Delius:
- make more of the HTML into XHTML
  - add a $usexml parameter to print_header that sets up the page as XML
    (in the first case, for MathML)
2003-09-21 15:45:24 +00:00
moodler
ab2df10cc8 Hide labels from nav menu 2003-09-15 11:59:15 +00:00
moodler
c9f6251ea8 Two things are in this checkin:
1) Support for the new "label" module has been added.  It's unfortunate
   about having to make these exceptions but this was the overall cleanest
   way I could think of.

2) All local calculation of pixpath and modpixpath has been removed and
   replaced with a single calculation which is done in setup.php and
   stored in $CFG->pixpath and #CFG->modpixpath.  All graphics should
   use these variables so that themes can easily override them.
2003-09-14 12:25:16 +00:00
moodler
2b09e37782 Fixes for obfuscate_text() when printing emails with numbers in them.
(Patch from Zbigniew Fiedorowicz  - thanks)
2003-09-09 02:22:36 +00:00
moodler
b48f834cfb Some cleaning up and improvement of the course listings, especially when
courses are listed under multiple categories
2003-09-03 12:13:08 +00:00
moodler
559573a2be Default redirection time should be zero 2003-09-02 01:28:46 +00:00
moodler
27326a3eb6 Move Library parsing code into text_to_html 2003-08-27 06:08:34 +00:00
moodler
a751a4e56f Added a hook to the text formatting, so that if the library module
is activated, then all Moodle text is parsed by it to have links
added to words.
2003-08-26 18:44:09 +00:00
moodler
5b47275684 Plain text emails now include URLs in a nice way. Thanks to Russell Jungwirth
for the code.

Also a few docs tweaks
2003-08-26 13:18:10 +00:00
moodler
1ca0226071 Removed useless function 2003-08-26 12:54:50 +00:00
moodler
16ef5e7812 Some fixes so that navmenus don't jump out of frames any more.
The navmenu function now takes a third parameter that specifies
the window to change location of (default 'self', but could be "parent" or "top")
2003-08-26 06:01:13 +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
a20c109058 Fixed a bug when displaying menus with a zero in them 2003-08-25 02:32:20 +00:00
moodler
9b16d1eada More tweaks to fix on/off button for admins o ncourse listings 2003-08-22 12:26:36 +00:00
moodler
519d369f60 Added full paging to all displays of logs! :-) 2003-08-22 06:07:18 +00:00
moodler
f04dc61d72 Ellipsis at start as well 2003-08-21 14:23:31 +00:00
moodler
924cef21d5 Put an ellipsis in paging 2003-08-21 14:22:06 +00:00
moodler
be20753e7e Some better paging that now works with any number of pages 2003-08-21 13:47:14 +00:00
moodler
8ef9cb5618 Some fixes to handle very very big categories.
- paging
  - more efficient SQL
2003-08-21 09:33:07 +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
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
b6c1273289 Only editing teachers see controls and things 2003-08-16 06:44:03 +00:00
moodler
48d72fa7c9 *** empty log message *** 2003-08-16 02:45: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
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
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
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
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