65 Commits

Author SHA1 Message Date
defacer
2b0d60ec78 Fix for bug 1662:
Changed the way applicable formats for blocks are handled. The changes are
short codewise, but to grasp all the implications read the forum discussion
at the relevant URL.
2004-08-22 16:54:48 +00:00
moodler
093a4a2437 Fixed link of user name in footer of course page 2004-08-02 19:09:54 +00:00
defacer
08cebf196e Fix all requires() to use absolute paths (Sun boxes have problems with relative
paths, it seems). Also, login is required to view the calendar of any course
other than the site.
2004-06-02 08:13:26 +00:00
moodler
af62781bca FIxed defaulting $SESSION->cal_show_user 2004-05-25 06:35:49 +00:00
defacer
0784eb7ef1 Now we can get a list of the blocks being on display in the course page.
Could be used by one block to detect the existence of another, for example.
2004-05-21 11:06:49 +00:00
defacer
82b181f265 Eloy is probably right, the preferred width calculation should be cached. 2004-04-20 07:32:57 +00:00
stronk7
1eb25080df Detected a display bug when looking for possible causes of
bug 1248. Widhts were only calculated in teacher mode and
they were down to 100px in student mode!!
Perhaps we could make some session caching to avoid some
calculations every time the course is displayed. Seems to
work fine now.
Anyway, if I compare the right column width
in my server (with blocks running) against moodle.org (without
blocks), it seems that the right column is narrower in my test server...
2004-04-19 19:24:42 +00:00
stronk7
0f3fe4b6ad First Official realease of the "Blocks System".
Integrated with Moodle:
    - Install automatically.
    - Update course->blockinfo for each course at installation time.
    - Modified course creation to insert into blockinfo field.
    - Modified restore to insert into blockinfo field.
    - Admin options (hide, show, delete, config) from admin page.
    - Lang strings inserted (en only).
    - Database support to mysql and postgresql (not tested!!).
Moodle, backup and block versions updated to 2004041800.
Tested with mysql: Install fresh and upgrade from previous.
section_activities block renamed to social_activities and created
its own lang file to support name "Social Activities". This can
be changed at any time.

TODO:
=====
Support it really in backup/restore.
????

Enjoy!! Ciao :-)
2004-04-18 23:20:53 +00:00
moodler
196ca3fe59 Fixed a bad bug where the Recent News block wasn't obeying Groups properly. 2004-04-12 09:57:14 +00:00
moodler
0d250ac10e Adding calendars by default --- later we need a course option to control
visibility
2004-03-29 15:33:26 +00:00
moodler
c7609872ca May avoid a cookie issue 2004-01-14 03:47:40 +00:00
moodler
6049fb78f2 Modification of the course format plugin structures so that it
fits in with other plugin formats in Moodle.
2003-12-21 04:52:25 +00:00
moodler
8b68eb7ebc I didn't like it as much as I thought. :-) 2003-11-06 09:11:35 +00:00
moodler
43acb21fff Putting link to course listing on the course front page.
If anyone doesn't like this please say so!!
2003-11-06 09:10:01 +00:00
moodler
6bf0078f07 Removed focus from course page - see Bug 825 2003-10-09 12:42:47 +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
db34bb5992 After rebuilding cache - get the course record again 2003-08-22 16:20:35 +00:00
moodler
56e34ee405 Fixed bug when moving sections with apostrophes in the summary (bug 641) 2003-08-21 15:06:32 +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
48d72fa7c9 *** empty log message *** 2003-08-16 02:45:44 +00:00
moodler
5195536408 Force rebuild of course cache - just in case! 2003-08-14 10:32:51 +00:00
moodler
d0e922a9b2 Full path for some silly Windows machines 2003-06-14 13:04:58 +00:00
moodler
d5945ef02c Fixed path 2003-06-14 12:45:09 +00:00
moodler
7142bc1bbd Check existence of course format 2003-06-13 16:13:51 +00:00
moodler
deca24d5f4 Moving course formats into subdirectory.
This is the first step towards more pluggable course formats that can
be just dropped in to the system.
2003-06-13 08:41:57 +00:00
moodler
12905134ab Sections can now be moved up and down 2003-06-10 15:27:09 +00:00
moodler
783da26290 A bit of an audit and a clean up of require_login to add consistency.
No major problems found, just some code tidy-up
2003-05-24 07:29:17 +00:00
moodler
73fafc3886 Bad bug fixed. Non-teachers could hide/show whole sections. 2003-05-24 06:59:36 +00:00
moodler
dfec7b013f Some clean ups - various things to do with Topics view 2003-05-04 09:43:03 +00:00
moodler
7d99d6959e New feature: hide/show topics! 2003-05-04 07:59:46 +00:00
moodler
dc0dc7d5dd Tidying up the way pix images are used.
It's now also possible to override the standard pix with a set of new ones
in a theme.
2003-04-28 04:32:55 +00:00
moodler
b328523cc1 Style for "You are logged in as xxx" and the link to the course home page. 2003-04-25 09:23:08 +00:00
moodler
a5c411d4c2 Smaller font 2003-04-25 09:01:01 +00:00
moodler
a282d0ffda Adding user's name at the top of the course page.
Just experimenting with it there for a while ... feedback welcome
2003-04-25 06:40:30 +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
9c9f7d7790 Various little fixes to remove warnings (usually about empty variables)
when error_reporting is turned up to 15 or so ... more of these to come ...
2002-12-29 17:32:32 +00:00
moodler
19801b2b21 More little fixups for week 0 2002-12-22 06:45:09 +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
martin
b839163528 Don't redirect too early 2002-09-25 14:40:28 +00:00
martin
4c701e6f54 Set fromdiscussion here just in case it's not set elsewhere 2002-09-25 08:17:35 +00:00
martin
effbcca27c Don't need to log in to see site-level course 2002-09-21 07:03:54 +00:00
martin
2c26c98575 Link at bottom now goes to site home, not this page 2002-09-08 05:23:47 +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
97898ac9c2 Customisable section 0 on social forum 2002-08-03 11:58:40 +00:00
martin
94361e021e Lots of work on site display, over many files. Improved front page
and display of site modules.
2002-08-03 08:16:31 +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
martin
501cdbd8bb OK, some massive changes with many files removed or changed.
Basically the changes are:

 - I've merged the 'discuss' module into the forum module
   which makes the interface MUCH clearer for everyone
 - I've added a new 'single' forum type that replicates
   what the old discuss course modules used to look like.
 - I've got rid of the "discussion" forum type - it will
   still exist in upgraded courses but as a normal forum.
 - the 'discuss' module is completely deleted - gone.
 - the 'chat' module is completely deleted - gone.
 - The upgrading system has been improved, and all code
   is stored in version.php.
 - I've put in upgrading commands to do the best I can
   (right now) to upgrade courses that used the discuss
   module.  It should mostly work, just leaving some
   "orphan" coursemodules on you course front page.  You
   can easily delete these using the little 'x'.
   I may have forgotten something  - I've only tested on
   my testing server and I'm about to test on my production
   server to see how it goes.
 - Forums have a lot of little new features and fixes.  The
   main one is the subscription process.  Teachers can 'force'
   subscriptions on any forum.  This disallows everyone from
   choosing their own mail subscription - it's just on.
 - The assignment module is half-finished and not working yet

I've still some massive changes to do, mostly involving making
all the lib.php function names more standardised, so consider
this is an interim checkin to do some tests.
2002-07-31 14:19:35 +00:00
martin
388f8911e3 Can now specify course by "short name" using name parameter. Useful for
integrating with external interfaces.  Thanks to dopey for the idea.
2002-07-29 13:10:25 +00:00
martin
7468bf014f Part of "contributions" overhaul in course/user.php 2002-07-23 16:24:12 +00:00