Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions install/data/defaults.json
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@
"hideEmail": 0,
"showFullnameAsDisplayName": 0,
"allowGuestHandles": 0,
"allowAnonymousPosts": 0,
"guestsIncrementTopicViews": 1,
"allowGuestReplyNotifications": 1,
"incrementTopicViewsInterval": 60,
Expand Down
4 changes: 3 additions & 1 deletion public/language/en-GB/admin/settings/post.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,7 @@
"backlinks.help": "If a post references another topic, a link back to the post will be inserted into the referenced topic at that point in time.",
"ip-tracking": "IP Tracking",
"ip-tracking.each-post": "Track IP Address for each post",
"enable-post-history": "Enable Post History"
"enable-post-history": "Enable Post History",
"allow-anonymous-posts": "Allow anonymous posting",
"allow-anonymous-posts-help": "When enabled, users will see a \"Post anonymously\" checkbox in the composer. Anonymous posts hide the author's identity."
}
4 changes: 3 additions & 1 deletion public/language/en-US/admin/settings/post.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,7 @@
"backlinks.help": "If a post references another topic, a link back to the post will be inserted into the referenced topic at that point in time.",
"ip-tracking": "IP Tracking",
"ip-tracking.each-post": "Track IP Address for each post",
"enable-post-history": "Enable Post History"
"enable-post-history": "Enable Post History",
"allow-anonymous-posts": "Allow anonymous posting",
"allow-anonymous-posts-help": "When enabled, users will see a \"Post anonymously\" checkbox in the composer. Anonymous posts hide the author's identity."
}
6 changes: 6 additions & 0 deletions src/views/admin/settings/post.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,12 @@
[[admin/settings/post:restrictions.stale-help]]
</p>
</div>

<div class="form-check form-switch mb-3">
<input class="form-check-input" type="checkbox" id="allowAnonymousPosts" data-field="allowAnonymousPosts">
<label for="allowAnonymousPosts" class="form-check-label">[[admin/settings/post:allow-anonymous-posts]]</label>
<p class="form-text">[[admin/settings/post:allow-anonymous-posts-help]]</p>
</div>
</div>

<hr/>
Expand Down