331 Commits

Author SHA1 Message Date
moodler
a5e3644bd2 Add setting of language to home page, and setting of new user accounts
to whatever the current language is.
2003-01-20 08:01: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
9c2c5c5bd0 Use the name of the Site News forum on the front page ... instead of the
"Site News" string ...
2003-01-02 10:48:01 +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
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
6daa3c2329 More hooks to hang styles from 2002-12-13 03:14:19 +00:00
moodler
469e5eb18e More style and layout tweaking 2002-12-09 12:09:33 +00:00
moodler
d9fd5e8b86 Allow course listing to have specified width 2002-12-09 07:51:31 +00:00
moodler
041b1712c6 Slightly adjust column width 2002-12-09 07:48:12 +00:00
moodler
b27f9a32bc Slight changes 2002-12-09 07:45:45 +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
657423c8f3 get rid of short_open_tags 2002-12-07 07:27:18 +00:00
moodler
8ea300947d These includes are actually required 2002-12-02 01:12:06 +00:00
moodler
f7e4436690 Fixed front page display of modules 2002-11-10 11:14:06 +00:00
moodler
f0207959ab Bring back button to home page, update versions etc 2002-11-10 07:57:11 +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
martin
8cea3a3974 Special "navigation" for home page - "home" value sets off different header
in themes
2002-09-23 15:41:06 +00:00
martin
88491cacba When redirecting to admin page go direct to index.php just in case
DirectoryIndex hasn't been fixed yet.
2002-09-22 05:33:54 +00:00
martin
76dbe04f4a Login link on home page 2002-09-16 13:03:31 +00:00
martin
0c6561819b Changes to course display on front page when there is more than one category 2002-09-10 13:47:56 +00:00
martin
ba2e5d7347 Categories upgrade. Admin can now create/edit/delete categories, and
these are diesplayed wherever courses are listed
2002-09-09 11:48:11 +00:00
martin
cf38360f58 Language fixes, added english strings etc 2002-09-03 13:11:40 +00:00
martin
2560d13338 Added slash after login to fix obscure problems on some servers 2002-08-28 15:53:39 +00:00
martin
ee1ddef672 Tweak to side boxes 2002-08-26 20:45:01 +00:00
martin
915d17bb1e Further little tweak to front-page spacing 2002-08-26 20:41:02 +00:00
martin
670fddf176 Fix for front page case when no left column 2002-08-26 20:38:56 +00:00
martin
3f8247c2ea Changes to use a new configuration variable: CFG->slasharguments
If true, then display of user pictures or filenames will use the
method of providing arguments as "slash" arguments - this is much
better for caching, proxies, search engines etc.  Unfortunately
it doesn't seem to work on some PHP installations.

If false (the default), then a more compatible method is used
(ie usual way of passing parameters to scripts)
2002-08-26 09:48:00 +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
4a62a65900 Whoops! comment out of place 2002-08-22 01:24:06 +00:00
martin
28b1e3ecec Just some comments about not removing the Moodle logo from the front page. 2002-08-21 14:08:40 +00:00
martin
4efeb8c3e3 Changes to add login/logout button to the right-hand top corner of every page
... this is to help encourage people to log out after a session, especially
on shared or public terminals.
2002-08-17 07:02:35 +00:00
martin
d82c85456b Cleanups for footer on home page 2002-08-15 04:37:35 +00:00
martin
15ecde4133 Slight tweak to remove login button for ordinary users 2002-08-09 02:48:25 +00:00
martin
53bfe78cd4 New functions get_list_of_modules() and moodle_needs_upgrading().
Used on the home page when admin is logged in, to check for any
upgrading of the databases that might need to be done.
2002-08-09 02:45:15 +00:00
martin
74c6a7f983 parameter for print_admin_links 2002-08-08 17:30:00 +00:00
martin
2b25f2a09b Further excellent tidy-ups to the admin pages. They are actually starting
to look/work as slick as the rest of the site.  :-)
2002-08-08 15:51:23 +00:00
martin
1fee73fe6f Whoops ... typo in save_session 2002-08-06 17:41:43 +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
5c0c615503 Admin link looks better at the bottom 2002-08-04 02:55:13 +00:00
martin
46b476c14c Added a direct admin link 2002-08-04 02:13:40 +00:00
martin
9368336bae Tiny tweak to spacer image for IE browsers 2002-08-03 12:26:52 +00:00
martin
23d19b0add Better spacing in case with admin-only 2002-08-03 11:45:31 +00:00
martin
d66615eb1b put main menu up top 2002-08-03 08:40:25 +00:00
martin
5eec832460 Spacing again 2002-08-03 08:38:06 +00:00
martin
7493ca919d Ugh fixing spacing 2002-08-03 08:37:13 +00:00
martin
40698053fa Adjusted sizes of front page columns 2002-08-03 08:33:18 +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
07e1f18900 Fixed use of reading functions (it had changed name) 2002-08-01 05:55:23 +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