1644 Commits

Author SHA1 Message Date
defacer
42d364974a Fixing stuff I broke with my last commit. 2005-02-16 22:04:14 +00:00
defacer
196f2619c0 Working for DST support. 2005-02-16 21:50:25 +00:00
defacer
eca3b01f48 Remove needless sort. 2005-02-16 21:39:35 +00:00
gustav_delius
ec81373f50 In order to ensure that when a teacher hides a resource or an activity that students really can't get at it, even if they know the direct links to its pages, I have given an optional third argument $cm to the functions require_login() and require_course_login(). Pages showing information about a particular course module now pass the course module object in this third argument. The login functions will then test if either the course module is visible or the user is a teacher. If neither is the case then the user is redirected to the course homepage after being shown a message "Sorry, this activity is currently hidden".
(While I was at it I also turned the autologinguests off for most module pages, except on the index.php pages and the view.php pages for those modules that allow guests)
2005-02-16 10:40:48 +00:00
moodler
ed3136ff1e Adding styles to the user information 2005-02-16 10:34:02 +00:00
martinlanghoff
e89ff6c6df Fixed course.idnumber not being varchar(100) in installations post 2004/06 2005-02-16 08:00:40 +00:00
moodler
ee331e511f Style for paging 2005-02-16 07:40:22 +00:00
martinlanghoff
1c66bf597d Fixed bug 2553 - truncate_userinfo() was out-of-sync with prefix_user table definition. Added a reminder to the SQL files. 2005-02-15 23:12:57 +00:00
moodler
b71143dc08 Forgot to check this in 2005-02-15 17:42:52 +00:00
moodler
3538a79693 New admin config variable 'allowuserblockhiding' will enable/disable the
collapsible blocks feature.  It's on by default.

Also, removed thead/tbody from blocks (using th instead for the header).
2005-02-14 16:42:52 +00:00
martinlanghoff
d0a8be734e Merged from MOODLE_14_STABLE - Cleared a warning 2005-02-14 07:23:02 +00:00
martinlanghoff
adfc03f90e merged from MOODLE_14_STABLE - trim() user data coming from external auth - now covers cases where we had a space on the truncation limit 2005-02-14 01:30:57 +00:00
martinlanghoff
ca4030dd1d merged from MOODLE_14_STABLE - trim() user data coming from external auth - fixes problems with locked user data in auth/ldap in 1.5 2005-02-14 01:13:05 +00:00
gustav_delius
ea97115290 Fix bug 1905 2005-02-14 00:03:21 +00:00
martinlanghoff
f93426cf07 Merged from MOODLE_14_STABLE - Added option to respect php.ini session settings, else we reenable garbage collection for sessions. Fixes stale session problems with Debian systems, but still allows package maintainers to override. 2005-02-13 22:54:25 +00:00
stronk7
9e5c8dbdf6 The modified include_once was doing really strange things when retrieving
valid themes! Changed to simply include. Seems to work fine now. Please
check it under PHP 4.x...
2005-02-13 22:40:21 +00:00
moodler
b56ccdd9d0 Reformatting some spaces to coding guidelines 2005-02-13 17:38:40 +00:00
gustav_delius
4bd2e69a51 When course is hidden a student trying to enter gets the new message "This course is currently unavailable to students", see bug 2511 2005-02-13 11:43:05 +00:00
moodler
56766f8592 More fixes to make custom themes work as expected.
I think it's pretty much perfect now.
2005-02-13 09:02:43 +00:00
moodler
9c4e6e2177 Really big cleanup of how "forced" themes were implemented.
Course themes now work better.

theme/xxxx/styles.php is now really short because all the logic
is in weblib.php.
2005-02-13 08:34:10 +00:00
gustav_delius
48e535bc35 Activities can now be hidden/shown from the activity editing page. Also for modules that know about groups the groupmode can be set from there. See bug 2533. This required adding to the mod.html files calls to new functions print_visible_setting() and print_groupmode_setting() which are combined in print_standard_coursemodule_settings().
The visibility of coursemodules is now always set through the function set_coursemodule_visible() in order to make sure that the associated events get updated in the calendar appropriately.

If moving a coursemodule to a hidden section then the module is set to hidden as well and its events are hidden in the calendar.

If deleting a coursemodule its events are deleted from the calendar.

The function choose_from_menu() has an extra optional argument $disabled which, when set to true, will disable the menu.

For the sake of consistency the function set_groupmode_for_module has been renamed to set_coursemodule_groupmode and the functions show_course_module() and hide_course_module() have been combined to set_coursemodule_visible().
2005-02-12 21:41:22 +00:00
julmis
2fd4148763 Re-enabling reading for link attributes whats been commented out.
(HTMLArea.prototype._createLink) These lines were commented out for
bug 1455 but it created another bug #2504.
2005-02-12 21:06:09 +00:00
julmis
b17a603812 Better fix for IE's too long statusbar text. Thanks Gustav ;-) 2005-02-12 16:05:59 +00:00
moodler
c93f852dbc Some tidying up to remove notices and format code to guidelines :-) 2005-02-12 04:12:24 +00:00
julmis
30a6aad981 Fixing Bug #2521 Focusing editor removes too long status bar line from IE. 2005-02-11 21:20:33 +00:00
defacer
9ecf051d4c Styles and markup improvements. 2005-02-11 05:27:19 +00:00
defacer
5bbbe0be91 Changing the matching function that decides if a block is applicable for
display in a page. Previously it returned the FIRST match; now it returns
the BEST match.

This allows things like

 array('all' => true, 'mod' => false, 'mod-quiz' => true)

to work correctly regardless of the order the array elements appear in.

Also, encapsulated the check into a function (it has definitely become
non-trivial).
2005-02-10 18:43:18 +00:00
moodler
c2145e7845 Use a convert_high_ascii() function to make filenames friendlier. 2005-02-10 13:26:41 +00:00
moodler
32e2b30209 This more or less completes the PHP side of the 1.5 themes
Added $user->theme and $course->theme choices, controlled by admin
variables on the main config variables page.

By default this is all turned off, since multiple themes can be
a little disorienting.

A hidden feature is session themes ... you can change the theme
on any page by passing theme=xxxx as a parameter.  By default this
requires sesskey (so that people don't change theme on each other),
but this security can be switched off using a hidden variable
$CFG->allowthemechangeonurl = true;   Good for quick tests.
2005-02-10 10:28:27 +00:00
mjollnir_
303d0af144 In email processing, change sitesecret (non existant) to (already used) siteidentifier 2005-02-10 07:53:52 +00:00
moodler
915602ea79 Adding theme fields for courses, users and groups 2005-02-10 07:46:20 +00:00
moodler
16fd89aa23 POintless README 2005-02-10 07:37:33 +00:00
moodler
527a293769 Removed unused files. Someday maybe we'll try XML schema again, maybe Moodle 2.0 2005-02-10 07:36:46 +00:00
moodler
1695b68032 New feature: maintenance mode.
Admin can put a site on hold during an upgrade or theme changing etc

Controlled by a file in dataroot, so it can also be controlled via command line:

    touch moodledata/1/maintenance.html

    rm moodledata/1/maintenance.html
2005-02-10 05:11:34 +00:00
defacer
4f0d565da6 Bringing Quiz in line with Martin's "make Chat into a showcase for pages" idea. 2005-02-10 01:59:11 +00:00
defacer
002ef48a50 Removing inline styles, adding a class. 2005-02-09 20:13:56 +00:00
moodler
6744033797 Removed CHAT further 2005-02-09 16:47:41 +00:00
moodler
37dfb27974 Moved chat PAGE stuff out of core as an example 2005-02-09 16:44:35 +00:00
moodler
4eac76f75a Prevent some notices from bad calls to print_side_block_end 2005-02-09 16:17:03 +00:00
defacer
0ab589983e New class that models the behavior of a chat activity!
Isn't it so small and cute? ;-)
2005-02-09 15:39:07 +00:00
defacer
023c4bb737 A new constant for chat pages. 2005-02-09 15:26:43 +00:00
defacer
b83eee7daa Putting all things that are common among activities into a new class
page_generic_activity. Then we can inherit almost all of the desired
behavior and just override a couple of functions to get going with page
support in a new activity.
2005-02-09 15:22:16 +00:00
defacer
55815b288d Streamlining class page_quiz, fixing things, removing needless comments. 2005-02-09 15:05:14 +00:00
moodler
26ecdc5b93 Removed some variables from a copy/paste 2005-02-09 14:38:42 +00:00
moodler
bfca00947a Improved styling of headings 2005-02-09 08:29:58 +00:00
defacer
d4f7a8152d Redoing the hide/show thingy for blocks purely through CSS.
Instance id's next time, Urs! ;-)
2005-02-09 01:23:06 +00:00
defacer
783453129b Fix for bug 2488:
Extending mdl_log column module to varchar(20).
It was already 20 chars in Postgres, so no changes there.
2005-02-08 20:29:17 +00:00
moodler
a8f6842661 Fixing some of the standard notice functions, adding styles and buttons 2005-02-08 17:09:41 +00:00
moodler
c7a9e29326 Just a robustness test 2005-02-08 17:07:31 +00:00
moodler
05049d161b Keep $THEME global in print_header for backward compatibility 2005-02-08 14:51:38 +00:00