mirror of
https://github.com/moodle/moodle.git
synced 2025-01-20 06:39:04 +01:00
f37da85054
Many thanks to Mike Churchward for his work on this and persevering with sending updated versions to me. :-) Shane and I have polished it up, rewritten a few parts (display-related) and here it is, finally in CVS! I think there will still need to be some optimisation for the SQL, since it's still pretty intensive. Perhaps some sort of caching in the session that gets modified along with the database whenever something gets read. However if there are problems the whole thing can be switched off in the forum module config so this is not crucially urgent.
179 lines
4.9 KiB
HTML
179 lines
4.9 KiB
HTML
<form method="post" action="module.php" name="form">
|
|
<input type="hidden" name="sesskey" value="<?php echo $USER->sesskey ?>">
|
|
|
|
<table cellpadding="9" cellspacing="0" >
|
|
<tr valign="top">
|
|
<td align="right"><p>forum_displaymode:</td>
|
|
<td>
|
|
<?php choose_from_menu ($FORUM_LAYOUT_MODES, "forum_displaymode", $CFG->forum_displaymode, "", "", ""); ?>
|
|
</td>
|
|
<td>
|
|
<?php print_string("configdisplaymode", "forum") ?>
|
|
</td>
|
|
</tr>
|
|
<tr valign="top">
|
|
<td align="right"><p>forum_replytouser:</td>
|
|
<td>
|
|
<?php
|
|
unset($options);
|
|
$options[0] = get_string("no");
|
|
$options[1] = get_string("yes");
|
|
choose_from_menu ($options, "forum_replytouser", $CFG->forum_replytouser, "", "", "");
|
|
?>
|
|
</td>
|
|
<td>
|
|
<?php print_string("configreplytouser", "forum") ?>
|
|
</td>
|
|
</tr>
|
|
<tr valign="top">
|
|
<td align="right"><p>forum_shortpost:</td>
|
|
<td>
|
|
<input name="forum_shortpost" type="text" size="5" value="<?php p($CFG->forum_shortpost) ?>" />
|
|
</td>
|
|
<td>
|
|
<?php print_string("configshortpost", "forum") ?>
|
|
</td>
|
|
</tr>
|
|
<tr valign="top">
|
|
<td align="right"><p>forum_longpost:</td>
|
|
<td>
|
|
<input name="forum_longpost" type="text" size="5" value="<?php p($CFG->forum_longpost) ?>" />
|
|
</td>
|
|
<td>
|
|
<?php print_string("configlongpost", "forum") ?>
|
|
</td>
|
|
</tr>
|
|
<tr valign="top">
|
|
<td align="right"><p>forum_manydiscussions:</td>
|
|
<td>
|
|
<input name="forum_manydiscussions" type="text" size="5" value="<?php p($CFG->forum_manydiscussions) ?>" />
|
|
</td>
|
|
<td>
|
|
<?php print_string("configmanydiscussions", "forum") ?>
|
|
</td>
|
|
</tr>
|
|
<tr valign="top">
|
|
<td align="right"><p>forum_maxbytes:</td>
|
|
<td><?php
|
|
$choices = get_max_upload_sizes($CFG->maxbytes);
|
|
choose_from_menu ($choices, "forum_maxbytes", $CFG->forum_maxbytes, "");
|
|
?>
|
|
</td>
|
|
<td>
|
|
<?php print_string("configmaxbytes", "forum") ?>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr valign="top">
|
|
<td align="right"><p>forum_trackreadposts:</td>
|
|
<td>
|
|
<?php
|
|
unset($options);
|
|
$options[0] = get_string("no");
|
|
$options[1] = get_string("yes");
|
|
choose_from_menu ($options, "forum_trackreadposts", $CFG->forum_trackreadposts, "", "", "");
|
|
?>
|
|
</td>
|
|
<td>
|
|
<?php print_string("configtrackreadposts", "forum") ?>
|
|
</td>
|
|
</tr>
|
|
<tr valign="top">
|
|
<td align="right"><p>forum_oldpostdays:</td>
|
|
<td>
|
|
<input name="forum_oldpostdays" type="text" size="5" value="<?php p($CFG->forum_oldpostdays) ?>" />
|
|
</td>
|
|
<td>
|
|
<?php print_string("configoldpostdays", "forum") ?>
|
|
</td>
|
|
</tr>
|
|
<tr valign="top">
|
|
<td align="right"><p>forum_usermarksread:</td>
|
|
<td>
|
|
<?php
|
|
unset($options);
|
|
$options[0] = get_string("no");
|
|
$options[1] = get_string("yes");
|
|
choose_from_menu ($options, "forum_usermarksread", $CFG->forum_usermarksread, "", "", "");
|
|
?>
|
|
</td>
|
|
<td>
|
|
<?php print_string("configusermarksread", "forum") ?>
|
|
</td>
|
|
</tr>
|
|
<tr valign="top">
|
|
<td align="right"><p>forum_cleanreadtime:</td>
|
|
<td>
|
|
<?php
|
|
unset($options);
|
|
$options[0] = '0';
|
|
$options[1] = '1';
|
|
$options[2] = '2';
|
|
$options[3] = '3';
|
|
$options[4] = '4';
|
|
$options[5] = '5';
|
|
$options[6] = '6';
|
|
$options[7] = '7';
|
|
$options[8] = '8';
|
|
$options[9] = '9';
|
|
$options[10] = '10';
|
|
$options[11] = '11';
|
|
$options[12] = '12';
|
|
$options[13] = '13';
|
|
$options[14] = '14';
|
|
$options[15] = '15';
|
|
$options[16] = '16';
|
|
$options[17] = '17';
|
|
$options[18] = '18';
|
|
$options[19] = '19';
|
|
$options[20] = '20';
|
|
$options[21] = '21';
|
|
$options[22] = '22';
|
|
$options[23] = '23';
|
|
choose_from_menu ($options, "forum_cleanreadtime", $CFG->forum_cleanreadtime, "", "", "");
|
|
?>
|
|
</td>
|
|
<td>
|
|
<?php print_string("configcleanreadtime", "forum") ?>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr valign="top">
|
|
<td align="right"><p>forum_enablerssfeeds:</td>
|
|
<td>
|
|
<?php
|
|
if (!isset($CFG->enablerssfeeds) || $CFG->enablerssfeeds == 0) {
|
|
print_string("no");
|
|
} else {
|
|
unset($options);
|
|
$options[0] = get_string("no");
|
|
$options[1] = get_string("yes");
|
|
|
|
$forum_enablerssfeeds = false;
|
|
if (isset($CFG->forum_enablerssfeeds) && $CFG->forum_enablerssfeeds == 1) {
|
|
$forum_enablerssfeeds = true;
|
|
}
|
|
|
|
|
|
choose_from_menu ($options, "forum_enablerssfeeds", $forum_enablerssfeeds, "", "", "");
|
|
}
|
|
?>
|
|
</td>
|
|
<td>
|
|
<?php
|
|
print_string("configenablerssfeeds","forum");
|
|
if (!isset($CFG->enablerssfeeds) || $CFG->enablerssfeeds == 0) {
|
|
print_string("configenablerssfeedsdisabled");
|
|
}
|
|
?>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td colspan="3" align="center">
|
|
<input type="submit" value="<?php print_string("savechanges") ?>" /></td>
|
|
</tr>
|
|
</table>
|
|
|
|
</form>
|