313 Commits

Author SHA1 Message Date
moodler
63c1418986 Groups are more sticky for students browsing participants 2005-04-11 18:25:09 +00:00
moodler
a8021f5641 Slight timezone cleanups 2005-04-11 08:01:58 +00:00
moodler
3f0b2d4c46 Correct use of forcetimezone 2005-04-11 07:48:54 +00:00
moodler
19626cf0a9 Handle forcetimezone correctly (99) 2005-04-10 18:24:06 +00:00
moodler
1bb1333b0b Centralised timezone list to a function 2005-04-10 17:35:17 +00:00
defacer
ce9707f5aa As there was no armageddon since I commented out the "old" timezone setting
HTML yesterday, I 'm now completely removing it.
2005-04-09 10:20:53 +00:00
defacer
02a5309439 If $CFG->forcetimezone is not empty, don't allow users to change the timezone from
their profiles, and instead show a disabled menu with the forced timezone selected.

Also, fixed a get_string (reading from wrong lang file).
2005-04-09 09:36:47 +00:00
defacer
02c2881b40 The user Timezone setting now allows both trivial and non-trivial timezones.
I fervently hope we haven't left any hidden "unupdated" code that breaks with this.
2005-04-08 20:28:19 +00:00
moodler
aed2aee4ea Trim all user data 2005-04-08 02:24:09 +00:00
moodler
2a7fbce0eb Fixed up parameters for this too 2005-04-04 03:55:37 +00:00
moodler
0e72da1a04 optional_param was being called wrong 2005-04-04 03:42:01 +00:00
moodler
cbfad4d3d2 SOme XHTML fixes 2005-04-02 09:42:53 +00:00
defacer
5bae88b686 Fixed incorrect usage of isteacher(), didn't work and threw a warning. 2005-03-26 18:34:55 +00:00
defacer
c3401dfdbe Timezone selection drop down menu now works. 2005-03-23 03:00:59 +00:00
defacer
0ed442f85c DST presets -> timezones 2005-03-23 01:54:45 +00:00
defacer
22c0091a6a DST presets -> timezones 2005-03-23 01:17:20 +00:00
moodler
ff3caf30c0 Big tidy up of Group listing, User listing and how they interact.
It's still not perfect but it's much much better I think.
2005-03-22 16:04:10 +00:00
moodler
f9a0ea699c New user tabs from Shane and myself ... these bring together the
profile interface a little better.

There is also a new feature for showing all posts from a user, as well
as all discussions from a user.
2005-03-20 12:02:14 +00:00
moodler
04981917cd Other admins cannot edit the primary admin account 2005-03-18 12:11:35 +00:00
moodler
a9d9b46af8 Guests can't use messaging 2005-03-17 20:39:30 +00:00
moodler
7ade05c52a MOre changes to use filelib.php 2005-03-07 12:10:22 +00:00
moodler
772fa4904e LInks for AIM and Yahoo 2005-03-05 06:26:44 +00:00
moodler
766d2bf3b3 Added user fields for Skype, AIM, Yahoo, and MSN messengers. :-)
If anyone knows good links+images to use for AIM, Yahoo and MSN let me know
2005-03-05 05:57:10 +00:00
moodler
173dbed416 Added a link from the user page to a search for all posts.
It works but it's not very pretty ... feedback welcome!
2005-02-27 10:08:13 +00:00
gustav_delius
6f07ab6444 Updated calls to get_string() for some strings that were moved to lang/en/admin.php 2005-02-24 08:49:32 +00:00
moodler
a9fd72322a Reverting some recent date-related changes 2005-02-18 13:43:40 +00:00
defacer
3ffa665bc1 More robust handling of DST status for the user profile. 2005-02-18 03:42:28 +00:00
defacer
7b91e4fd11 Our nice compatibility hack with the language strings means
that some strftime() rebels need patching up...
2005-02-18 01:52:21 +00:00
defacer
4d71c956a8 Adding user profile option for DST.
Also some tabs to spaces.
2005-02-17 21:29:05 +00:00
defacer
80e556ce8a Removing inline styles from table, giving class="formtable"
Removing valign="top" from trs
Changing td align="right" to th
Double quotes to single
2005-02-17 21:16:35 +00:00
moodler
20fde7b1f9 If the user needs to set up their account on logging in, then remember the
URL they wanted so they get there after setting up their account.


bug 2565
2005-02-17 06:15:22 +00:00
defacer
ccfd6c83f3 Fix for bug 2550:
Users cannot see their own profile if course is set to separate groups and
the user is not a member of any group.

Patch provided by cdu@somerville.qld.edu.au, slightly modified
2005-02-15 16:02:18 +00:00
gustav_delius
ec99b88e97 $isteacheredit was not defined 2005-02-13 13:23:46 +00:00
gustav_delius
eb58929bbb Added string 'counteditems' to allow better translation of things like "8 students", see bug 2530 2005-02-13 11:22:48 +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
moodler
e5b02a0878 Fixed a notice 2005-02-10 05:12:27 +00:00
moodler
f8c883ce78 FIxed a notice 2005-02-09 14:45:19 +00:00
mjollnir_
bb64b51aa3 First cut of email to module (or core) processing.
This patch contains:

* email_to_user will set the envelope sender to a special bounce processing address (based on $CFG settings)
* email_to_user will accept (and set) a reply-to header, to be generated by the module calling the function.

* new functions:

	* generate_email_processing_address - ALWAYS use this to generate the reply-to header. reply-to header will look like this:

	(LIMIT: 64 chars total)
	prefix - EXACTLY four chars
	encodeded, packed, moduleid (0 for core) (2 chars)
	up to 42 chars for the modules to put anything they want it (can contain userid (or, eg for forum, postids to reply to), or anything really. 42 chars is ABSOLUTE LIMIT)
	16 char hash (half an md5) of the first part of the address, together with a site "secret"

	* moodle_process_email - any non-module email processing goes here (currently used for processing bounces)

* bounce handling:

	* config settings for bounce threshold and ratio (and whether to handle bounces at all)
	* if too many bounces occur against any given user, user_not_fully_set_up will force an email address change
	* associated functions (over_bounce_threshold, set_send_count, set_bounce_count)

* handling emails to noreply address (see below)

* new script - admin/process_email.php

	This script needs to be called from your mail program for anything starting with the 4 char prefix described above (and optionally, the noreply address)
	It will bounce emails to the noreplyaddress, with a friendly "this is not a real email address" message

	It will break down and unencode the email address into moduleid and validate the half md5 hash, and call $modname_process_email (if it exists). Arguments to these functions are: $modargs (any part of the email address that isn't the prefix, modid or the hash) and the contents of the email (read from STDIN).

* associated string changes/additions

* changes in config-dist.php to give clues as to how to set this up.

MODULE WRITERS!

take a look at new functions moodle_process_email and generate_email_processing_address  in moodlelib.php for ideas about how to

	* encode and unencode the arguments your module needs to do the processing
	* how to deal with multiple "actions" for any given module.

Martin Langhoff <martin@catalyst.net.nz> will be writing up some PROPER documentation, containing amongst other things config settings for different mail servers (this was developed against Postfix).  Feel free to email me with any feedback on the code or design, penny@catalyst.net.nz.  Or post on the developer fourm.
2005-02-08 02:57:14 +00:00
moodler
333f44dab0 Handle longtimenosee of zero 2005-02-07 01:23:44 +00:00
defacer
1610aa4916 Rewriting "!$course->category" to "$course->id == SITEID" to make it clear. 2005-02-05 02:08:25 +00:00
moodler
cdf3925518 Messaging can now be completely disabled using $CFG->messaging 2005-01-31 07:11:42 +00:00
defacer
2107c1f721 Changing the inline centering with an id. 2005-01-31 01:20:43 +00:00
defacer
af04e86a78 Removing deprecated <font> and <center>. 2005-01-31 01:03:41 +00:00
defacer
40d4f7362a Removing <font> tags. I didn't add any styles because there was no
visible difference in text size after the removal.
2005-01-31 01:00:21 +00:00
defacer
686fafc187 Bugfix: don't revert to full details display when clicking on the sorting
links in the table headers. Remain in the display mode you were before.
2005-01-31 00:56:00 +00:00
moodler
ebb906d9da Prevent message window on site policy page 2005-01-30 04:52:13 +00:00
martinlanghoff
b6c93894fb Merged from MOODLE_14_STABLE - Stronger validation of form data in user/edit, and validation of lang in current_language() -- closes SC#67 2005-01-27 03:51:33 +00:00
moodler
b77c41c103 Removed some THEME colours 2005-01-25 13:43:09 +00:00
gustav_delius
ea2d8d8a27 fixed bug in paging bar on participants list 2005-01-24 17:40:47 +00:00
defacer
9407d4563f According to the final comments in SC#65:
Made isteacher() require that the first parameter (course id) be
specified and non-empty. If it is empty, [i.e., 0, which was used to
simulate what has now become isteacherinanycourse()], then the return
value IS correct but a warning is printed on screen. This should allow
us to track down any such calls in legacy modules without breaking Moodle.

The correct way to check for teacher status in ANY course is now to
call isteacherinanycourse().
2005-01-23 21:38:01 +00:00