Node.js based forum software built for the modern web
fix: #7232
Barış Soner Uşaklı70d9c6c4ceb6
diff --git a/install/data/defaults.json b/install/data/defaults.jsonindex 2d2ff5cbad..fd9895983a 100644--- a/install/data/defaults.json+++ b/install/data/defaults.json@@ -90,6 +90,7 @@"postsPerPage": 20,"userSearchResultsPerPage": 50,"maximumGroupNameLength": 255,+ "maximumGroupTitleLength": 40,"preventTopicDeleteAfterReplies": 0,"feeds:disableSitemap": 0,"sitemapTopics": 500,diff --git a/public/language/en-GB/admin/settings/group.json b/public/language/en-GB/admin/settings/group.jsonindex 8275cbd367..a28bd10c00 100644--- a/public/language/en-GB/admin/settings/group.json+++ b/public/language/en-GB/admin/settings/group.json@@ -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"diff --git a/src/controllers/admin/groups.js b/src/controllers/admin/groups.jsindex ab452c6eb3..3ae86ceb6c 100644--- a/src/controllers/admin/groups.js+++ b/src/controllers/admin/groups.js@@ -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);diff --git a/src/views/admin/manage/group.tpl b/src/views/admin/manage/group.tplindex 51301f8e56..30c7220a58 100644--- a/src/views/admin/manage/group.tpl+++ b/src/views/admin/manage/group.tpl@@ -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>diff --git a/src/views/admin/settings/group.tpl b/src/views/admin/settings/group.tplindex d46b664116..5b7a104d2e 100644--- a/src/views/admin/settings/group.tpl+++ b/src/views/admin/settings/group.tpl@@ -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>