$string['emailconfirmsent'] = ' <P>An email should have been sent to your address at <B>$a</B>
<P>It contains easy instructions to complete your registration.
<P>If you continue to have difficulty, contact the site administrator.';
+$string['emaildigest'] = 'Email digest type';
+$string['emaildigestoff'] = 'No digest (single email per forum post)';
+$string['emaildigestcomplete'] = 'Complete (daily email with full posts)';
+$string['emaildigestsubjects'] = 'Subjects (daily email with subjects only)';
$string['emaildisable'] = 'This email address is disabled.';
$string['emaildisplay'] = 'Email display';
$string['emaildisplaycourse'] = 'Allow only other course members to see my email address';
</tr>
<tr valign=top>
<td><p><?php print_string("emaildisplay") ?>:</td>
- <td><?php
+ <td><?php
$choices["0"] = get_string("emaildisplayno");
$choices["1"] = get_string("emaildisplayyes");
$choices["2"] = get_string("emaildisplaycourse");
</tr>
<tr valign=top>
<td><p><?php print_string("emailformat") ?>:</td>
- <td><?php
+ <td><?php
unset($choices);
$choices["0"] = get_string("textformat");
$choices["1"] = get_string("htmlformat");
choose_from_menu ($choices, "mailformat", $user->mailformat, "") ?>
</td>
</tr>
+<tr valign=top>
+ <td><p><?php print_string('emaildigest') ?>:</td>
+ <td><?php
+ unset($choices);
+ $choices['0'] = get_string('emaildigestoff');
+ $choices['1'] = get_string('emaildigestcomplete');
+ $choices['2'] = get_string('emaildigestsubjects');
+ choose_from_menu ($choices, 'maildigest', $user->maildigest, "") ?>
+ </td>
+</tr>
<tr valign=top>
<td><p><?php print_string("autosubscribe") ?>:</td>
- <td><?php
+ <td><?php
unset($choices);
$choices["1"] = get_string("autosubscribeyes");
$choices["0"] = get_string("autosubscribeno");
<?php if ($CFG->htmleditor) { ?>
<tr valign=top>
<td><p><?php print_string("textediting") ?>:</td>
- <td><?php
+ <td><?php
unset($choices);
$choices["0"] = get_string("texteditor");
$choices["1"] = get_string("htmleditor");
</tr>
<tr valign=top>
<td><p><?php print_string("country") ?>:</td>
- <td><?php
+ <td><?php
if (!$user->country and $CFG->country) {
$user->country = $CFG->country;
}
-
+
choose_from_menu (get_list_of_countries(), "country", $user->country, get_string("selectacountry")."...", "", "") ?>
<?php if (isset($err["country"])) formerr($err["country"]); ?>
</td>
formerr($err["description"]);
echo "<br />";
} ?>
- <textarea name=description cols=50 rows=10 wrap=virtual><?php p($user->description) ?></textarea>
+ <textarea name=description cols=50 rows=10 wrap=virtual><?php p($user->description) ?></textarea>
<?php helpbutton("text", get_string("helptext")) ?>
</td>
</tr>
</tr>
-<?php
+<?php
$maxbytes = get_max_upload_file_size($CFG->maxbytes, $course->maxbytes);
- if (!empty($CFG->gdversion) and $maxbytes and empty($CFG->disableuserimages)) {
+ if (!empty($CFG->gdversion) and $maxbytes and empty($CFG->disableuserimages)) {
?>
<tr valign=top>
<td><p><?php print_string("currentpicture") ?>:</td>
<td>
- <?php print_user_picture($user->id, $course->id, $user->picture, false, false, false);
+ <?php print_user_picture($user->id, $course->id, $user->picture, false, false, false);
if ($user->picture) {
echo ' <input type="checkbox" name="deletepicture" value="1">';
print_string("delete");
<input type="hidden" name="MAX_FILE_SIZE" value="<?php echo $maxbytes ?>">
<input type="file" name="imagefile" size=40>
<?php helpbutton("picture", get_string("helppicture"));
- print_string("maxsize", "", display_size($maxbytes));
+ print_string("maxsize", "", display_size($maxbytes));
if (isset($err["imagefile"])) formerr($err["imagefile"]);
?>
</td>
<td align=right><input type="submit" value="<?php print_string("updatemyprofile") ?>"></td>
</table>
<input type="hidden" name="course" value="<?php p($course->id) ?>">
-<input type="hidden" name="id" value="<?php p($user->id) ?>">
+<input type="hidden" name="id" value="<?php p($user->id) ?>">
</form>