64 Commits

Author SHA1 Message Date
gustav_delius
26686b7ae3 closed some br and img tags 2004-09-12 22:39:20 +00:00
gustav_delius
24f2b65a4d towards XHTML compliance 2004-09-12 12:21:27 +00:00
gustav_delius
222ac91bc9 removed unnecessary calls to get_site() 2004-08-29 14:15:40 +00:00
moodler
6e85ab4676 Merged from stable 2004-08-28 17:19:06 +00:00
gustav_delius
c89bf29585 fixed breadcrumbs when mod.php is used on site page 2004-08-21 21:02:59 +00:00
moodler
71d707f18f If the name of an activity is left blank, then give it a generic name
matching the name of the module.
2004-08-14 12:15:28 +00:00
moodler
e0161bff4f Merging in all the resource branch stuff (I know, it's mixed up)
so I can sort out the CVS explosion I had tonight
2004-07-25 14:00:29 +00:00
moodler
7613890851 BRANCH MERGE
These are the changes from MOODLE_13_STABLE, merged into trunk

The tag MOODLE_13_MERGED on the MOODLE_13_STABLE branch now refers to this point

The biggest changes here are the fixes for HTML editor in all standard modules
2004-06-04 06:17:30 +00:00
gustav_delius
d33a2a6f39 It is now possible to duplicate a course module. See http://moodle.org/mod/forum/discuss.php?d=8468 2004-05-30 23:09:21 +00:00
moodler
82d0993215 Include now uses absolute path, not relative. Solved problem
on one Sun installation.
2004-03-10 07:13:57 +00:00
moodler
41b94a4044 New activities now default to course groupmode 2004-02-15 03:19:52 +00:00
moodler
5e1aaecb20 Don't lowercase the module name 2004-02-07 02:10:54 +00:00
moodler
a2b0158423 Adding back the missing logs ... they are needed by recent activity - doh! 2004-02-02 09:44:06 +00:00
moodler
114c82afe5 On second thoughts, no need to double up these logs 2004-02-01 07:27:40 +00:00
moodler
573eae5aa7 Save coursemodule in logs for generic updates/adds 2004-02-01 07:25:10 +00:00
moodler
bb0d4590bd Fixes to log URLs for these new ones 2004-01-31 12:01:25 +00:00
moodler
86c90e4541 Add a log entry under the module name whenever the module is updated 2004-01-31 11:53:49 +00:00
moodler
3d575e6f08 Improvements to groups.
- you can now actually turn group modes on and off for each activity. :-)
    "Turn Editing On" to see the new icons.

  - Link to Groups page is now smarter about when it does and doesn't appear
2004-01-31 08:40:38 +00:00
moodler
0b5d3ddfb9 Some logic for focussing cursor 2003-11-24 01:23:29 +00:00
stronk7
5e0f9e613a Bug 801 reopened. Problem occur when adding a new activity to a hidden
section, it's visibility defaults to 1.
Now, default visibility is "inherited" from the section visibility.
2003-09-30 12:28:22 +00:00
moodler
e02eea80e9 Changes from Mad Alex to allow better error reporting when
adding or updating modules.

See: http://moodle.org/mod/forum/discuss.php?d=2738

If a moderr.html file exists in the module, it is shown.

If a string is returned, it's shown.

Otherwise it works as before.
2003-09-27 14:06:09 +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
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
4c71204dd2 Added help button to headings when adding/editing activities. Doh! :-) 2003-08-18 07:10:53 +00:00
moodler
aa57804096 Only editing teachers can edit activities 2003-08-16 06:40:35 +00:00
moodler
072426e0c1 Fixed up cancel button on module editing page to avoid error
when returning to course page.

Fix by Scott Elliott.
2003-08-08 16:46:16 +00:00
moodler
7977cffdb0 Arbitrary moving of activities (aka cut and paste)
Some of this code was sent by Howard Miller, but I rewrote most of it
to make it shorter and to fit in better with current code.
2003-07-14 13:08:38 +00:00
moodler
4be030098f Some clean up when deleting activity modules 2003-06-20 04:34:22 +00:00
moodler
522f608d02 Important bug fixed! Non-teachers could modify course! 2003-05-24 06:53:47 +00:00
moodler
215e628dcf Removed some debug statements I'd left in by mistake 2003-05-10 03:02:19 +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
266fbe1a8a Changes to improve hide/show of individual activities when the last
action was to hide/show a topic
2003-05-06 02:51:38 +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
7a361c8b55 Removed save_session() - no longer needed. 2003-02-27 02:46:37 +00:00
moodler
b0e3a92523 Clean sweep through all the important changing all include(), include_once()
and require() to require_once()
2003-01-05 14:19:20 +00:00
moodler
607809b3ba OK a number of small changes here.
Firstly, I'm replacing all use of old-style global variables like
$HTTY_REFERER with their new-style equivalent $_SERVER["HTTP_REFERER"]
Also using $_POST instead $HTTP_POST_VARS  etc

Secondly, if gdversion == 0 (ie GD is not installed) then:

 - users are not even allowed to upload new images
 - graphs now just print a message instead of failing.

this allows Moodle to still be used even if GD is not present
2003-01-05 06:45:20 +00:00
moodler
c2045f3436 Changes for robustness 2003-01-01 06:41:35 +00:00
moodler
bdece65d72 More debugging 2002-12-30 05:31:54 +00:00
moodler
7304b852cd Slightly more info in error message 2002-11-11 08:25:05 +00:00
moodler
7c0f298426 Update course cache when modules are moved up or down 2002-11-10 14:45:11 +00:00
moodler
d897cae419 Changes to enable jumping between activity modules, using a new menu in
the upper-right corner.   Caution: Not well tested at this stage.
2002-11-10 07:37:15 +00:00
moodler
22710216f2 Add link to module editing ... back to module type list 2002-11-06 08:24:29 +00:00
moodler
7ce20f09cb Changes related to module editing buttons 2002-10-16 04:53:44 +00:00
moodler
109613b290 Fix to clear the modform variable just in case there's one
from one module that later affects another module.
2002-10-14 16:06:19 +00:00
moodler
ff80e012b0 Miscellaneous little changes from today ... 2002-10-14 16:00:55 +00:00
martin
963301c57d More translating ... 2002-08-12 14:59:37 +00:00
martin
97c270e9a8 Changes related to language support ... get_string()
Minor little interface cleanups along the way
2002-08-11 15:41:54 +00:00
martin
8223d27193 Widespread changes throughout Moodle to make sure it works on
servers that have register_globals turned off (this is the
default setting on newer version of PHP).

In fact it's partly a hack that globalises all GET, POST, FILES
AND COOKIE variables.  Unfortunately though the SESSION and
USER global session variables are only available as $_SESSION["USER"]
and $_SESSION["SESSION"], which is cumbersome to use.

So, for every request I now make a copy of these two session variables
into $USER and $SESSION.  Whenever I update them thoughout Moodle I
now have to call save_session("USER") which copies them back to the
session variable.  This seems to be working well now.

Because I'm using $_SESSION etc now this will raise
the required minimum version of PHP to 4.1.0
2002-08-06 17:23:45 +00:00
martin
04eba58f57 Moved all mod.php functions from modules into lib.php, and
updated course/mod.php to use them there.  No longer need module/mod.php
2002-08-03 02:29:21 +00:00
martin
9084509828 Lots of changes related to module info used in course listings and
activity reports.  Module names are now from lang files, not from
the modules table.  Cleanups.
2002-08-02 17:38:18 +00:00