792 Commits

Author SHA1 Message Date
moodler
5925d0ef5b New configuration screen for the resources module 2003-08-18 17:46:51 +00:00
stronk7
902142c079 Added language support 2003-07-28 19:32:51 +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
cccb016ae4 When displaying index lists of a particular module's activities,
ensure that the order they are displayed in is always the same as the
order they have been defined in.   See bug 553.

This involved API changes to the function get_all_instances_in_course()
2003-07-12 05:19:18 +00:00
moodler
d7c93ec8fa Moving the backup libraries for each module into their new homes.
There's some beer and pies in the fridge, guys, settle in.
2003-07-09 04:40:35 +00:00
moodler
717f40c6d8 Some fixes to avoid pointless uses of $ME 2003-06-16 14:40:51 +00:00
moodler
21b1125f63 Make form destinations relative (to course/mod.php) to avoid
some form problems on mis-configured servers (wwwroot not quite right)
2003-06-10 05:33:58 +00:00
moodler
5c716ac2b4 Prevent possible error when editing non-HTML pages 2003-06-02 08:14:24 +00:00
moodler
11697b48ea Minor code cleanups
- lowercasing
  - removing short php tags
  - adding some emoticon help here and there
2003-05-20 08:03:12 +00:00
moodler
e9564a5a80 Fixed previous over-zealous lowercasing 2003-05-19 06:11:56 +00:00
moodler
c525b27592 Strip tags from page title, and some minor code cleanups 2003-05-18 06:05:23 +00:00
moodler
3a4c2fd089 I knew there was something else I'd forgotten!
Added a check to all modules (well view.php anyway) to check whether a
module is hidden or not.  If it is, then students get a message.
2003-05-15 18:03:22 +00:00
moodler
ac4f6d455f Images are not put in a frame, but embedded in a normal page 2003-05-13 07:51:26 +00:00
moodler
3e9ca9fbc5 Added new Wiki code to allow Resource web pages to be created/edited using Wiki format
This code contributed by Howard Miller.  Thanks!
2003-05-01 03:43:16 +00:00
moodler
f855f6062b Some tidying up - too much thesis wool in the head 2003-04-29 13:51:28 +00:00
moodler
5d0d5d5ac5 Images, when displayed as resources, are now centered and controlled
by a new style resourceimage
2003-04-29 13:31:47 +00:00
moodler
719e7b04f8 Default value for alltext variable 2003-04-24 17:05:54 +00:00
stronk7
81cdaada93 Changed to show the hidden resources dimmed (bug #364) 2003-04-24 15:25:21 +00:00
moodler
312447111c Got a bit slash-happy 2003-04-23 15:01:37 +00:00
moodler
3af4a3653c some HTML tags made a bit more XHTMLish 2003-04-23 14:50:44 +00:00
moodler
752e1c2b62 Don't pass alltext from mod.html to details.php ... more efficient this way 2003-04-12 03:42:17 +00:00
moodler
d4be5253aa Making a consistent download link for uploaded resources (same as web page) 2003-03-12 08:02:05 +00:00
moodler
f82c2d428a Modified Greg's work to:
- rename the main_frame variable to framename, because it
       - might have caused some confusion
       - none of the global variables have underscores
  - put the config in the config table, with a default of _top
2003-03-12 07:36:22 +00:00
gregb_cc
08b3606390 This is a first attempt to make moodle frame safe.
I've added the variable CFG->main_frame to config-dist.php, and replaced _top
targets with the variable in all the php files.  HTML files, like those in the
documentation, have not been modified, as they are not (yet) parsed.

The variable should probably get moved into the config table, and get some
documentation.

I've also included, but commented out, a slight change in weblib.php, which
would guarantee that messages would be seen before redirecting the user (unless
delay intentionally set to 0 when redirect is used).
2003-03-11 21:35:12 +00:00
moodler
dcde9f020a Displayed time formats are now stored in lang files
(see the new strftime* strings) so they can be customised per language
2003-01-15 10:55:54 +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
92a419a25c Make frame width a variable 2003-01-05 10:10:05 +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
36b4f9852e buggy_referer is dead! Long live buggy_referer!
Should be fixed now.  As a bonus, I've removed all the uses of
HTTP_POST_VARS from all scripts.

All forms should use the new data_submitted() function to collect
form data (it does the match_referer thing internally now).

Much nicer.
2003-01-02 14:49:23 +00:00
moodler
8ac3158791 Robustness fixes 2003-01-01 13:17:27 +00:00
moodler
5eda92d0e2 Little robustness fixes 2002-12-30 15:47:54 +00:00
moodler
f7a5c8fafd Added new "Program" resource type, which allows Moodle to cooperate
with external web applications by passing info about the current
session to them.

Code contributed by Mark Kimes.
2002-12-24 07:01:03 +00:00
moodler
a3eea09cc9 More fixes for postgreSQL etc 2002-12-23 11:47:17 +00:00
moodler
ebc3bd2b24 Changes throughout Moodle to remove any reserved words from the
Moodle tables.

ie user -> userid in many tables, plus in user_students
   start -> starttime and end -> endtime

I've just done all this as carefully as I could ... I don't think
I missed anything but it's pretty intensive work and I'd be fooling myself
if I didn't think I'd missed a couple.

Note that this version should pretty much be able to bootstrap itself
using PostgreSQL now ... but this is untested
2002-12-23 09:39:26 +00:00
moodler
9fa49e22ab Many many changes lumped in here ... not finished yet either.
Basically all the Database functions are in lib/datalib.php
and the web functions are all in lib/weblib.php, so
moodlelib.php is much thinner than it was.

Data functions have been extended ... most old calls will
still work, but now many more SQL commands can be performed
using the datalib functions rather than using SQL.  I'm
currently moving through the whole tree replacing SQL
calls or at least concentrating them in one section of
mod/xxx/lib.php

Still working on forums, quizzes, surveys, resources.

The tree is currently not full working ... some things are
half-completed ... will resume tomorrow.
2002-12-20 14:44:14 +00:00
moodler
fd790dfb55 Database and upgrade files for PostgreSQL 7 support! 2002-12-15 02:41:07 +00:00
moodler
7be475f601 New consistent help buttons for textarea fields throughout all modules 2002-12-13 09:06:30 +00:00
moodler
e34461f5ea Use #defines for resource types ... just esthetics 2002-11-10 14:03:25 +00:00
moodler
dfc9ba9bbe Added navmenu in more places 2002-11-10 08:43:44 +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
4282d7dde2 Changed string neverread to neverseen 2002-10-17 14:28:12 +00:00
moodler
2a439ba7f6 ***NOTE NOTE NOTE **********************************************************
THIS IS A BIG CHANGE!

I've renamed the "reading" module to "resource".

This meant changing quite a few references throughout Moodle.

The automatic upgrade process should work OK (it worked OK on my
development server) and there shouldn't be any problems.

BUT PLEASE PROCEED WITH CAUTION AND KEEP BACKUPS OF EVERYTHING
UNTIL I HAVE A FEW MORE TESTS!   If you upgrade please let me know.

One thing that will break are any hard-coded links within forum messages.

What I will be doing to fix this on my apache server is to add this to
httpd.conf:

Redirect /mod/reading/ http://moodle.com/mod/resource/

Sorry about any inconvenience, but it's better this is done sooner than later.
2002-10-17 14:03:59 +00:00