mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: #7232
This commit is contained in:
@@ -90,6 +90,7 @@
|
||||
"postsPerPage": 20,
|
||||
"userSearchResultsPerPage": 50,
|
||||
"maximumGroupNameLength": 255,
|
||||
"maximumGroupTitleLength": 40,
|
||||
"preventTopicDeleteAfterReplies": 0,
|
||||
"feeds:disableSitemap": 0,
|
||||
"sitemapTopics": 500,
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
"private-groups.warning": "<strong>Beware!</strong> If this option is disabled and you have private groups, they automatically become public.",
|
||||
"allow-multiple-badges-help": "This flag can be used to allow users to select multiple group badges, requires theme support.",
|
||||
"max-name-length": "Maximum Group Name Length",
|
||||
"max-title-length": "Maximum Group Title Length",
|
||||
"cover-image": "Group Cover Image",
|
||||
"default-cover": "Default Cover Images",
|
||||
"default-cover-help": "Add comma-separated default cover images for groups that don't have an uploaded cover image"
|
||||
|
||||
@@ -69,6 +69,8 @@ groupsController.get = function (req, res, callback) {
|
||||
group: result.group,
|
||||
groupNames: result.groupNames,
|
||||
allowPrivateGroups: meta.config.allowPrivateGroups,
|
||||
maximumGroupNameLength: meta.config.maximumGroupNameLength,
|
||||
maximumGroupTitleLength: meta.config.maximumGroupTitleLength,
|
||||
});
|
||||
},
|
||||
], callback);
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<div class="group-settings-form">
|
||||
<fieldset>
|
||||
<label for="change-group-name">[[admin/manage/groups:edit.name]]</label>
|
||||
<input type="text" class="form-control" id="change-group-name" placeholder="Group Name" value="{group.displayName}" <!-- IF group.system -->readonly<!-- ENDIF group.system -->/><br />
|
||||
<input type="text" class="form-control" id="change-group-name" placeholder="Group Name" value="{group.displayName}" maxlength="{maximumGroupNameLength}" <!-- IF group.system -->readonly<!-- ENDIF group.system -->/><br />
|
||||
</fieldset>
|
||||
|
||||
<fieldset>
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
<fieldset>
|
||||
<label for="change-group-user-title">[[admin/manage/groups:edit.user-title]]</label>
|
||||
<input type="text" class="form-control" id="change-group-user-title" placeholder="The title of users if they are a member of this group" value="{group.userTitle}" maxlength="40" /><br />
|
||||
<input type="text" class="form-control" id="change-group-user-title" placeholder="The title of users if they are a member of this group" value="{group.userTitle}" maxlength="{maximumGroupTitleLength}" /><br />
|
||||
</fieldset>
|
||||
|
||||
<fieldset>
|
||||
|
||||
@@ -31,6 +31,9 @@
|
||||
|
||||
<label>[[admin/settings/group:max-name-length]]</label>
|
||||
<input class="form-control" type="text" placeholder="255" data-field="maximumGroupNameLength" />
|
||||
|
||||
<label>[[admin/settings/group:max-title-length]]</label>
|
||||
<input class="form-control" type="text" placeholder="40" data-field="maximumGroupTitleLength" />
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user