Skip to content

Node.js based forum software built for the modern web

ACP "Posts" Changes

Linda Badurinac72864888d88
diff --git a/public/language/en-GB/admin/settings/post.json b/public/language/en-GB/admin/settings/post.json
index 7cef2f34a0..ed8140a3c7 100644
--- a/public/language/en-GB/admin/settings/post.json
+++ b/public/language/en-GB/admin/settings/post.json
@@ -6,21 +6,25 @@
"sorting.most-votes": "Most Votes",
"sorting.most-posts": "Most Posts",
"sorting.topic-default": "Default Topic Sorting",
+ "length": "Post Length",
"restrictions": "Posting Restrictions",
+ "restrictions-new": "New User Restrictions",
"restrictions.post-queue": "Enable post queue",
+ "restrictions-new.post-queue": "Enable new user restrictions",
"restrictions.post-queue-help": "Enabling post queue will put the posts of new users in a queue for approval.",
- "restrictions.seconds-between": "Seconds between Posts",
- "restrictions.seconds-between-new": "Seconds between Posts for New Users",
+ "restrictions-new.post-queue-help": "Enabling new user restrictions will set restrictions on posts created by new users.",
+ "restrictions.seconds-between": "Seconds between posts",
+ "restrictions.seconds-between-new": "Seconds between posts for new users",
"restrictions.rep-threshold": "Reputation threshold before this restriction is lifted",
"restrictions.seconds-defore-new": "Seconds before new user can post",
- "restrictions.seconds-edit-after": "Number of seconds users are allowed to edit posts after posting. (0 disabled)",
- "restrictions.seconds-delete-after": "Number of seconds users are allowed to delete posts after posting. (0 disabled)",
+ "restrictions.seconds-edit-after": "Number of seconds before users are allowed to edit posts after posting. (0 disabled)",
+ "restrictions.seconds-delete-after": "Number of seconds before users are allowed to delete posts after posting. (0 disabled)",
"restrictions.replies-no-delete": "Number of replies after users are disallowed to delete their own topics. (0 disabled)",
"restrictions.min-title-length": "Minimum Title Length",
"restrictions.max-title-length": "Maximum Title Length",
"restrictions.min-post-length": "Minimum Post Length",
"restrictions.max-post-length": "Maximum Post Length",
- "restrictions.days-until-stale": "Days until Topic is considered stale",
+ "restrictions.days-until-stale": "Days until topic is considered stale",
"restrictions.stale-help": "If a topic is considered \"stale\", then a warning will be shown to users who attempt to reply to that topic.",
"timestamp": "Timestamp",
"timestamp.cut-off": "Date cut-off (in days)",
diff --git a/src/views/admin/settings/post.tpl b/src/views/admin/settings/post.tpl
index 094ec4b7e7..c8ecd78c82 100644
--- a/src/views/admin/settings/post.tpl
+++ b/src/views/admin/settings/post.tpl
@@ -25,10 +25,40 @@
</div>
<div class="row">
- <div class="col-sm-2 col-xs-12 settings-header">[[admin/settings/post:restrictions]]</div>
+ <div class="col-sm-2 col-xs-12 settings-header">[[admin/settings/post:length]]</div>
<div class="col-sm-10 col-xs-12">
<form>
+ <div class="row">
+ <div class="col-xs-6">
+ <div class="form-group">
+ <label for="minimumTitleLength">[[admin/settings/post:restrictions.min-title-length]]</label>
+ <input id="minimumTitleLength" type="text" class="form-control" value="3" data-field="minimumTitleLength">
+ </div>
+ <div class="form-group">
+ <label for="maximumTitleLength">[[admin/settings/post:restrictions.max-title-length]]</label>
+ <input id="maximumTitleLength" type="text" class="form-control" value="255" data-field="maximumTitleLength">
+ </div>
+ </div>
+ <div class="col-xs-6">
+ <div class="form-group">
+ <label for="minimumPostLength">[[admin/settings/post:restrictions.min-post-length]]</label>
+ <input id="minimumPostLength" type="text" class="form-control" value="8" data-field="minimumPostLength">
+ </div>
<div class="form-group">
+ <label for="maximumPostLength">[[admin/settings/post:restrictions.max-post-length]]</label>
+ <input id="maximumPostLength" type="text" class="form-control" value="32767" data-field="maximumPostLength">
+ </div>
+ </form>
+ </div>
+ </div>
+ </div>
+</div>
+
+<div class="row">
+ <div class="col-sm-2 col-xs-12 settings-header">[[admin/settings/post:restrictions]]</div>
+ <div class="col-sm-10 col-xs-12">
+ <form>
+ <!-- <div class="form-group">
<div class="checkbox">
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect">
<input class="mdl-switch__input" type="checkbox" data-field="postQueue">
@@ -38,8 +68,8 @@
<p class="help-block">
[[admin/settings/post:restrictions.post-queue-help]]
</p>
- </div>
- <div class="form-group">
+ </div> -->
+ <!-- <div class="form-group">
<label for="postDelay">[[admin/settings/post:restrictions.seconds-between]]</label>
<input id="postDelay" type="text" class="form-control" value="10" data-field="postDelay">
</div>
@@ -49,8 +79,8 @@
<label for="newbiePostDelay">[[admin/settings/post:restrictions.seconds-between-new]]</label>
<input id="newbiePostDelay" type="text" class="form-control" value="120" data-field="newbiePostDelay">
</div>
- </div>
- <div class="col-xs-6">
+ </div> -->
+ <!-- <div class="col-xs-6">
<div class="form-group">
<label for="newbiePostDelayThreshold">[[admin/settings/post:restrictions.rep-threshold]]</label>
<input id="newbiePostDelayThreshold" type="text" class="form-control" value="3" data-field="newbiePostDelayThreshold">
@@ -60,8 +90,99 @@
<div class="form-group">
<label for="initialPostDelay">[[admin/settings/post:restrictions.seconds-defore-new]]</label>
<input id="initialPostDelay" type="text" class="form-control" value="10" data-field="initialPostDelay">
+ </div> -->
+ <div class="form-group">
+ <label for="postEditDuration">[[admin/settings/post:restrictions.seconds-edit-after]]</label>
+ <input id="postEditDuration" type="text" class="form-control" value="0" data-field="postEditDuration">
+ </div>
+ <div class="form-group">
+ <label for="postDeleteDuration">[[admin/settings/post:restrictions.seconds-delete-after]]</label>
+ <input id="postDeleteDuration" type="text" class="form-control" value="0" data-field="postDeleteDuration">
+ </div>
+ <div class="form-group">
+ <label for="preventTopicDeleteAfterReplies">[[admin/settings/post:restrictions.replies-no-delete]]</label>
+ <input id="preventTopicDeleteAfterReplies" type="text" class="form-control" value="0" data-field="preventTopicDeleteAfterReplies">
+ </div>
+ <!-- <div class="form-group">
+ <label for="minimumTitleLength">[[admin/settings/post:restrictions.min-title-length]]</label>
+ <input id="minimumTitleLength" type="text" class="form-control" value="3" data-field="minimumTitleLength">
</div>
<div class="form-group">
+ <label for="maximumTitleLength">[[admin/settings/post:restrictions.max-title-length]]</label>
+ <input id="maximumTitleLength" type="text" class="form-control" value="255" data-field="maximumTitleLength">
+ </div>
+ <div class="form-group">
+ <label for="minimumPostLength">[[admin/settings/post:restrictions.min-post-length]]</label>
+ <input id="minimumPostLength" type="text" class="form-control" value="8" data-field="minimumPostLength">
+ </div>
+ <div class="form-group">
+ <label for="maximumPostLength">[[admin/settings/post:restrictions.max-post-length]]</label>
+ <input id="maximumPostLength" type="text" class="form-control" value="32767" data-field="maximumPostLength">
+ </div> -->
+ <div class="form-group">
+ <label for="topicStaleDays">[[admin/settings/post:restrictions.days-until-stale]]</label>
+ <input id="topicStaleDays" type="text" class="form-control" value="60" data-field="topicStaleDays">
+ <p class="help-block">
+ [[admin/settings/post:restrictions.stale-help]]
+ </p>
+ </div>
+ </form>
+ </div>
+</div>
+
+<div class="row">
+ <div class="col-sm-2 col-xs-12 settings-header">[[admin/settings/post:restrictions-new]]</div>
+ <div class="col-sm-10 col-xs-12">
+ <form>
+ <!-- <div class="form-group">
+ <div class="checkbox">
+ <label class="mdl-switch mdl-js-switch mdl-js-ripple-effect">
+ <input class="mdl-switch__input" type="checkbox" data-field="postQueue">
+ <span class="mdl-switch__label"><strong>[[admin/settings/post:restrictions-new.post-queue]]</strong></span>
+ </label>
+ </div>
+ <p class="help-block">
+ [[admin/settings/post:restrictions-new.post-queue-help]]
+ </p>
+ </div> -->
+ <div class="form-group">
+ <div class="checkbox">
+ <label class="mdl-switch mdl-js-switch mdl-js-ripple-effect">
+ <input class="mdl-switch__input" type="checkbox" data-field="postQueue">
+ <span class="mdl-switch__label"><strong>[[admin/settings/post:restrictions.post-queue]]</strong></span>
+ </label>
+ </div>
+ <p class="help-block">
+ [[admin/settings/post:restrictions.post-queue-help]]
+ </p>
+ </div>
+ <!-- <div class="form-group">
+ <label for="postDelay">[[admin/settings/post:restrictions.seconds-between]]</label>
+ <input id="postDelay" type="text" class="form-control" value="10" data-field="postDelay">
+ </div> -->
+ <div class="row">
+ <div class="col-xs-6">
+ <div class="form-group">
+ <label for="newbiePostDelay">[[admin/settings/post:restrictions.seconds-between-new]]</label>
+ <input id="newbiePostDelay" type="text" class="form-control" value="120" data-field="newbiePostDelay">
+ </div>
+ </div>
+ <div class="col-xs-6">
+ <div class="form-group">
+ <label for="initialPostDelay">[[admin/settings/post:restrictions.seconds-defore-new]]</label>
+ <input id="initialPostDelay" type="text" class="form-control" value="10" data-field="initialPostDelay">
+ <!-- <label for="newbiePostDelayThreshold">[[admin/settings/post:restrictions.rep-threshold]]</label>
+ <input id="newbiePostDelayThreshold" type="text" class="form-control" value="3" data-field="newbiePostDelayThreshold"> -->
+ </div>
+ </div>
+ </div>
+ <div class="form-group">
+ <label for="newbiePostDelayThreshold">[[admin/settings/post:restrictions.rep-threshold]]</label>
+ <input id="newbiePostDelayThreshold" type="text" class="form-control" value="3" data-field="newbiePostDelayThreshold">
+ <!-- <label for="initialPostDelay">[[admin/settings/post:restrictions.seconds-defore-new]]</label>
+ <input id="initialPostDelay" type="text" class="form-control" value="10" data-field="initialPostDelay"> -->
+ </div>
+ <!-- <div class="form-group">
<label for="postEditDuration">[[admin/settings/post:restrictions.seconds-edit-after]]</label>
<input id="postEditDuration" type="text" class="form-control" value="0" data-field="postEditDuration">
</div>
@@ -95,7 +216,7 @@
<p class="help-block">
[[admin/settings/post:restrictions.stale-help]]
</p>
- </div>
+ </div> -->
</form>
</div>
</div>