69 Commits

Author SHA1 Message Date
moodler
1ea7c62794 Weeks now do show/hide too ... and some cleanups all round 2003-05-04 15:10:25 +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
583a7283e9 Edit my profile link goes straight to the edit screen 2003-04-25 08:59:10 +00:00
moodler
32dcc87484 Fixed new bug that was preventing news being shown on course page 2003-04-18 07:25:58 +00:00
moodler
c1d9daca3c Clear the variable, just in case 2003-04-17 15:45:57 +00:00
moodler
f8430195d9 Small fix to avoid PHP warnings 2003-03-21 04:49:29 +00:00
moodler
7a361c8b55 Removed save_session() - no longer needed. 2003-02-27 02:46:37 +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
ce78926df0 Small robustness fixes 2003-01-06 13:55: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
15ac90653d Replaced &sect with &sect to avoid some buggy browsers 2003-01-03 05:33:17 +00:00
moodler
13469b820d Introduce links to personal grade page 2003-01-01 07:03:23 +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
bfca4cffdc Different styles for content when week is highlighted 2002-12-13 07:37:47 +00:00
moodler
6daa3c2329 More hooks to hang styles from 2002-12-13 03:14:19 +00:00
moodler
e545445874 More fixes for course formats 2002-12-09 14:07:52 +00:00
moodler
1d43ffdeab Font size tweaks 2002-12-09 13:40:18 +00:00
moodler
7541bc3e87 More styles 2002-12-09 13:36:55 +00:00
moodler
469e5eb18e More style and layout tweaking 2002-12-09 12:09:33 +00:00
moodler
5e367a2d56 Various little tweaks to improve the display of course home
pages and front page ... still have some work to do though
2002-12-09 07:35:40 +00:00
moodler
bea7a51e3c Slight change to get rid of leading zeroes in dates 2002-12-02 01:13:14 +00:00
moodler
6e07f68039 Fixed background colours of recent activity and news 2002-11-20 15:24:34 +00:00
moodler
62c13a2f3e Changed all references of %e to %d to fix strftime on Windows 2002-11-19 14:27:57 +00:00
moodler
13beeacbcd New course option to enable/disable display of "recent activity" 2002-11-12 04:26:16 +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
9a22359743 Fixes to course display, tidy up of some code (could do with more)
and mainly - addition of section 0 display.
2002-11-07 09:30:41 +00:00
moodler
ed4ed0939b Weekdays are now calculated using userdate, so that
- they are relative to the user
  - they should take advantage of locales etc
2002-10-25 02:11:58 +00:00
moodler
e5dfd0f31f Improvements to help, and addition of new "Activity modules" help
for teachers adding new modules.
2002-10-21 03:00:40 +00:00
moodler
765814def3 Changed includes of module libraries to use full pathnames constructed
from $CFG->dirroot, rather than relative.  This is because the relative
path could sometime be a different case to the full path (on Windows)
causing include_once not to work.
2002-10-06 03:05:22 +00:00
martin
004db95014 Changed some instances of include() to include_once() 2002-09-26 14:41:59 +00:00
martin
2415d953f0 Tip over 'Edit profile' is the user's name 2002-09-08 09:41:17 +00:00
martin
59a7100ccf Clarified the "participants" link ... 2002-09-08 05:29:00 +00:00
martin
b4d7002e66 Changes to allow much better control over what "teachers" are called
in a course.  Firstly, the course settings page now allows the teachers
to specify the word they want to use in place of "teachers" and "students"
as well as "teacher" and "student".  Secondly, a new teacher admin tool
allows any teacher to modify the order and displayed role of teachers
in that course.  This affects the display on the course listings, the
participants page and so on.
2002-09-08 03:24:38 +00:00
martin
19a55d6776 Changes to improve layout and formatting on old Netscape (eg version 4) 2002-08-23 03:55:49 +00:00
martin
44dad7350b Added help link to course pages (for teachers) and tidied up the
course admin links in general (new fucntion and reorder)
2002-08-18 16:16:24 +00:00
martin
ad14a10e4b Fixed bug with creation of new weeks in weekly view 2002-08-15 02:58:06 +00:00
martin
db6395b25a Don't show news at all if 0 newsitems was selected in course settings 2002-08-11 14:05:27 +00:00
martin
4c654ee30b More tweaks to recent activity box 2002-08-10 14:27:14 +00:00
martin
2c0411e2ed Tweaks and tidy-ups for course home pages (weekly and topics) 2002-08-10 13:42:12 +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
5d13db8aba Better looking search boxes 2002-08-06 09:24: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
7a12aab48b Fixed up some forum functions and constants (consistency) 2002-08-02 09:50:53 +00:00
martin
11b0c46971 A big clean up of all the forum functions (including renaming them all
to start with forum_ ) and all the follow-on effects that caused
Some miscellaneous bug fixes and code clean-ups along the way
2002-08-01 03:50:27 +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
2c309dc22a Definition and use of new isediting() function for checking whether a user
is not only in editing mode, but ALLOWED to be editing the current course.
Used to show editing buttons etc
2002-07-29 15:45:46 +00:00
martin
7468bf014f Part of "contributions" overhaul in course/user.php 2002-07-23 16:24:12 +00:00