mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-14722 Added new maxattachments setting at admin and forum level to
set the maximum number of attachments for forum posts. Default: 1. Works, but still needs a bit of polishing to deal with re-editing posts (to stop people going above maxattachments) Also fixed documentation for attachments.
This commit is contained in:
parent
757f30a20c
commit
30a9aff589
10 changed files with 111 additions and 28 deletions
|
@ -56,6 +56,7 @@ $string['configenabletimedposts'] = 'Set to \'yes\' if you want to allow setting
|
|||
$string['configlogblocked'] = 'Forum cron may log blocked attempts to send emails to users with disabled email.';
|
||||
$string['configlongpost'] = 'Any post over this length (in characters not including HTML) is considered long. Posts displayed on the site front page, social format course pages, or user profiles are shortened to a natural break somewhere between the forum_shortpost and forum_longpost values.';
|
||||
$string['configmanydiscussions'] = 'Maximum number of discussions shown in a forum per page';
|
||||
$string['configmaxattachments'] = 'Default maximum number of attachments allowed per post.';
|
||||
$string['configmaxbytes'] = 'Default maximum size for all forum attachments on the site (subject to course limits and other local settings)';
|
||||
$string['configoldpostdays'] = 'Number of days old any post is considered read.';
|
||||
$string['configreplytouser'] = 'When a forum post is mailed out, should it contain the user\'s email address so that recipients can reply personally rather than via the forum? Even if set to \'Yes\' users can choose in their profile to keep their email address secret.';
|
||||
|
@ -160,6 +161,7 @@ $string['markread'] = 'Mark read';
|
|||
$string['markreadbutton'] = 'Mark<br />read';
|
||||
$string['markunread'] = 'Mark unread';
|
||||
$string['markunreadbutton'] = 'Mark<br />unread';
|
||||
$string['maxattachments'] = 'Maximum attachments';
|
||||
$string['maxattachmentsize'] = 'Maximum attachment size';
|
||||
$string['maxtimehaspassed'] = 'Sorry, but the maximum time for editing this post ($a) has passed!';
|
||||
$string['message'] = 'Message';
|
||||
|
|
13
lang/en_utf8/help/forum/attachment2.html
Normal file
13
lang/en_utf8/help/forum/attachment2.html
Normal file
|
@ -0,0 +1,13 @@
|
|||
<h1>Attachments for posts</h1>
|
||||
|
||||
<p>You can optionally attach one or more files (the number depends
|
||||
on the forum settings) to any post in the forums.</p>
|
||||
|
||||
<p>This can useful when you want to share a picture or a
|
||||
word processing document, for example.</p>
|
||||
|
||||
<p>Your files can be of any type, however it is highly recommended
|
||||
that the file is named using standard 3-letter internet
|
||||
suffixes such as .doc for a Word document, .jpg or .png
|
||||
for an image, and so on. This will make it easier for others
|
||||
to download and view your attachment in their browsers.</p>
|
3
lang/en_utf8/help/forum/maxattachments.html
Normal file
3
lang/en_utf8/help/forum/maxattachments.html
Normal file
|
@ -0,0 +1,3 @@
|
|||
<h1>Maximum number of attachments</h1>
|
||||
|
||||
<p>This setting allows you to control how many attachments are allowed for each post in this forum.</p>
|
Loading…
Add table
Add a link
Reference in a new issue