338 Commits

Author SHA1 Message Date
moodler
12905134ab Sections can now be moved up and down 2003-06-10 15:27:09 +00:00
moodler
ad41694c04 Allow activities to be moved from section 1 to section 0 2003-06-10 13:26:26 +00:00
moodler
e808d25f56 Fixed up "Assign teacher" page, and moved it to admin directory. 2003-05-14 15:58:48 +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
fce1ce13c8 Hide admin links (eg grades) from guest accounts 2003-05-06 03:02:58 +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
3bb49201b1 Some image spacing issues 2003-05-04 12:56:05 +00:00
moodler
dfec7b013f Some clean ups - various things to do with Topics view 2003-05-04 09:43:03 +00:00
moodler
59345eb4ec Removed unused function 2003-05-04 08:36:32 +00:00
moodler
7d99d6959e New feature: hide/show topics! 2003-05-04 07:59:46 +00:00
moodler
b86fc0e2a6 New feature replacing the old zoom function.
Now these are saved in a new table called course_display,
each user and each course can have independent settings.

I'm intending to expand this table later for all the other
course display stuff (like hidden topics etc)
2003-04-28 13:29:26 +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
f9d5fd3b3c Added a LIMIT to the SQL query for a bit more efficiency 2003-04-27 03:32:45 +00:00
moodler
1b5910c4a5 Trying a different tack for recent_activity since the old way was
still producing too much data and overflowing PHP memory on busier
sites (eg moodle.org).

Now, there are more database queries, which is unfortunate, but the
data is much more specific, and no sorting needs to be done, so
this is a performance boost.

I don't know how these will cancel out ... my guess is that very
small sites may be very slightly slower on the course page, but
that large sites will be much faster.

Let's see.
2003-04-26 15:08:34 +00:00
moodler
a54b8dd3af Need course module stuff 2003-04-26 14:21:42 +00:00
moodler
667ab3252b Get less logs from the database 2003-04-26 14:12:12 +00:00
moodler
b1992e65cf Trying an experiment on moodle.org 2003-04-26 13:49:13 +00:00
moodler
10a95b432c Fix for use of COURSE_MAX_RECENT_PERIOD 2003-04-26 13:41:31 +00:00
moodler
3d89198946 Cleaned up definition of constant COURSE_* values in course/lib.php
Moved COURSE_TEACHER_COLOR out to style sheets where it belongs (.teacheronly)

Added some efficiency when printing recent activity

 - don't print more than one weeks worth of updates
  - don't keep re-parsing logs once they've been used
2003-04-26 12:17:30 +00:00
stronk7
b3cc742cf9 Avoid showing course updates (add, update, delete) about hidden mods. Bug #367 2003-04-25 23:17:53 +00:00
paca70
3399a22c9f Show adduser only when adding new user from moodle is posible. 2003-04-25 17:18:40 +00:00
stronk7
fec5a6a63f Changed the get_array_of_activities function to return the visible property too 2003-04-23 16:37:37 +00:00
stronk7
c7da6f7a8f Bug #363. When everyting is hidden at main-menu, error occurs. Changed the get_all_mods function to check this. 2003-04-22 20:46:12 +00:00
moodler
fc6a91994e Robustness on a variable 2003-04-18 07:25:32 +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
be09831ac3 More info about admin location and a fix 2003-04-10 13:57:21 +00:00
moodler
dae73c05e9 New $CFG->admin directory can override the location of the admin
directory.

Useful because some web hosts use /admin for other things.
2003-04-10 13:46:52 +00:00
moodler
746665838a More robustness on checking sequence variables 2003-03-21 04:53:08 +00:00
moodler
5b337cdf3b No need for course creators to have a link to the admin page. 2003-02-25 04:22:57 +00:00
moodler
8b2fc31ce0 Fix link in admin links 2003-02-25 03:57:14 +00:00
paca70
1924074c76 Added support for nonadmin course creation.
Course creators are managed by /admin/creator.php , same way that admins.
Or if authetication module have 'auth_iscreator'-function (right now only ldap-module have) ,
users are added to creators at login time.
2003-02-24 18:48:55 +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
7af6281f22 Don't bother working with empty course modules (can happen when an
module is uninstalled improperly)
2003-01-14 14:56:57 +00:00
moodler
9ae687afb0 A little more robustness 2003-01-13 14:11:05 +00:00
moodler
13770d0c36 More fixes for robustness 2003-01-13 12:16:46 +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
8b3235f57f Fixes to use new mysql module with frame 2003-01-05 12:00:57 +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
15ac90653d Replaced &sect with &sect to avoid some buggy browsers 2003-01-03 05:33:17 +00:00
moodler
a44d18e70e More consistency when printing editing stuff in section 2003-01-02 06:44:20 +00:00
moodler
1c0200e074 More little robustness things 2003-01-01 08:21:19 +00:00
moodler
30d6173ed6 Fixes for Log display 2003-01-01 07:37:19 +00:00
moodler
13469b820d Introduce links to personal grade page 2003-01-01 07:03:23 +00:00
moodler
47f1da80d0 More little fixups for robustness 2002-12-30 05:13:43 +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
6aeec7f8f8 Fixes for log display 2002-12-23 10:27:57 +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
d26d7ed0c3 Changes to make things work again :-) 2002-12-22 06:15:44 +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
393cc5088b Improved course listing display when no courses 2002-12-15 06:00:58 +00:00