settings pages done!

v1.18.x
psychobunny 11 years ago
parent a348eded57
commit 1952149b4c

@ -100,7 +100,6 @@
<li class="nav-header"><i class="fa fa-fw fa-dashboard"></i> General</li> <li class="nav-header"><i class="fa fa-fw fa-dashboard"></i> General</li>
<li class="active"><a href="{relative_path}/admin/index">Dashboard</a></li> <li class="active"><a href="{relative_path}/admin/index">Dashboard</a></li>
<li><a href="{relative_path}/admin/languages">Languages</a></li> <li><a href="{relative_path}/admin/languages">Languages</a></li>
<li><a href="{relative_path}/admin/settings/general">Settings</a></li>
<li><a href="{relative_path}/admin/sounds">Sounds</a></li> <li><a href="{relative_path}/admin/sounds">Sounds</a></li>
</ul> </ul>
</div> </div>

@ -1,7 +1,7 @@
<div class="languages"> <div class="languages">
<div class="col-sm-9"> <div class="col-sm-9">
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading">Languages</div> <div class="panel-heading">Language Settings</div>
<div class="panel-body"> <div class="panel-body">
<p> <p>
The default language determines the language settings for all users who The default language determines the language settings for all users who

@ -1,30 +1,37 @@
<div class="alert alert-warning"> <div class="panel panel-default">
<form> <div class="panel-heading">Maintenance Mode</div>
<div class="checkbox"> <div class="panel-body">
<label> <form>
<input type="checkbox" data-field="maintenanceMode"> <strong>Maintenance Mode</strong> <div class="checkbox">
</label> <label>
</div> <input type="checkbox" data-field="maintenanceMode"> <strong>Maintenance Mode</strong>
<p class="help-block"> </label>
When the forum is in maintenance mode, all requests will be redirected to a static holding page. </div>
Administrators are exempt from this redirection, and are able to access the site normally.
</p>
</form>
</div>
<div class="alert alert-warning">
<form>
<div class="form-group">
<label for="allow-from-uri">Set ALLOW-FROM to Place NodeBB in an iFrame:</label>
<input class="form-control" id="allow-from-uri" type="text" placeholder="external-domain.com" data-field="allow-from-uri" /><br />
</div>
<div class="form-group">
<label for="cookieDomain">Set domain for session cookie</label>
<input class="form-control" id="cookieDomain" type="text" placeholder=".domain.tld" data-field="cookieDomain" /><br />
<p class="help-block"> <p class="help-block">
Leave blank for default When the forum is in maintenance mode, all requests will be redirected to a static holding page.
Administrators are exempt from this redirection, and are able to access the site normally.
</p> </p>
</div> </form>
</form> </div>
</div>
<div class="panel panel-default">
<div class="panel-heading">Domain Settings</div>
<div class="panel-body">
<form>
<div class="form-group">
<label for="allow-from-uri">Set ALLOW-FROM to Place NodeBB in an iFrame:</label>
<input class="form-control" id="allow-from-uri" type="text" placeholder="external-domain.com" data-field="allow-from-uri" /><br />
</div>
<div class="form-group">
<label for="cookieDomain">Set domain for session cookie</label>
<input class="form-control" id="cookieDomain" type="text" placeholder=".domain.tld" data-field="cookieDomain" /><br />
<p class="help-block">
Leave blank for default
</p>
</div>
</form>
</div>
</div> </div>
<!-- IMPORT admin/settings/footer.tpl --> <!-- IMPORT admin/settings/footer.tpl -->

@ -1,6 +1,7 @@
<form> <div class="panel panel-default">
<div class="alert alert-warning"> <div class="panel-heading">Email Settings</div>
<div> <div class="panel-body">
<form>
<p> <p>
Please ensure that you have installed a third-party emailer (e.g. PostageApp, Mailgun, Mandrill, SendGrid, etc), otherwise emails will not be sent by NodeBB Please ensure that you have installed a third-party emailer (e.g. PostageApp, Mailgun, Mandrill, SendGrid, etc), otherwise emails will not be sent by NodeBB
</p> </p>
@ -15,15 +16,23 @@
<p class="help-block"> <p class="help-block">
The test email will be sent to the currently logged in user's email address. The test email will be sent to the currently logged in user's email address.
</p> </p>
</div> </div>
</div>
</form>
</div> </div>
<div class="alert alert-warning"> </div>
<div class="checkbox">
<label for="disableEmailSubscriptions"> <div class="panel panel-default">
<input type="checkbox" id="disableEmailSubscriptions" data-field="disableEmailSubscriptions" name="disableEmailSubscriptions" /> Disable subscriber notification emails <div class="panel-heading">Email Subscriptions</div>
</label> <div class="panel-body">
</div> <form>
<div class="checkbox">
<label for="disableEmailSubscriptions">
<input type="checkbox" id="disableEmailSubscriptions" data-field="disableEmailSubscriptions" name="disableEmailSubscriptions" /> Disable subscriber notification emails
</label>
</div>
</form>
</div> </div>
</form> </div>
<!-- IMPORT admin/settings/footer.tpl --> <!-- IMPORT admin/settings/footer.tpl -->

@ -1,51 +1,60 @@
<div class="alert alert-warning"> <div class="panel panel-default">
<form> <div class="panel-heading">Site Settings</div>
<label>Site Title</label> <div class="panel-body">
<input class="form-control" type="text" placeholder="Your Community Name" data-field="title" /> <form>
<label>Site Title</label>
<div class="checkbox"> <input class="form-control" type="text" placeholder="Your Community Name" data-field="title" />
<label for="showSiteTitle">
<input type="checkbox" id="showSiteTitle" data-field="showSiteTitle" name="showSiteTitle" /> Show Site Title in Header <div class="checkbox">
</label> <label for="showSiteTitle">
</div> <input type="checkbox" id="showSiteTitle" data-field="showSiteTitle" name="showSiteTitle" /> Show Site Title in Header
</label>
<label>Browser Title</label> </div>
<input class="form-control" type="text" placeholder="Browser Title" data-field="browserTitle" />
<p class="help-block"> <label>Browser Title</label>
If no browser title is specified, the site title will be used <input class="form-control" type="text" placeholder="Browser Title" data-field="browserTitle" />
</p> <p class="help-block">
If no browser title is specified, the site title will be used
<label>Site Description</label> </p>
<input type="text" class="form-control" placeholder="A short description about your community" data-field="description" /><br />
<label>Site Description</label>
<label>Site Keywords</label> <input type="text" class="form-control" placeholder="A short description about your community" data-field="description" /><br />
<input type="text" class="form-control" placeholder="Keywords describing your community, comma-seperated" data-field="keywords" /><br />
<label>Site Keywords</label>
<label>Site Logo</label> <input type="text" class="form-control" placeholder="Keywords describing your community, comma-seperated" data-field="keywords" /><br />
<input id="logoUrl" type="text" class="form-control" placeholder="Path to a logo to display on forum header" data-field="brand:logo" /><br />
<input data-action="upload" data-target="logoUrl" data-route="{relative_path}/admin/uploadlogo" type="button" class="btn btn-default" value="Upload Logo"></input> <br /> <br/> <label>Site Logo</label>
<input id="logoUrl" type="text" class="form-control" placeholder="Path to a logo to display on forum header" data-field="brand:logo" /><br />
<label>Favicon</label><br /> <input data-action="upload" data-target="logoUrl" data-route="{relative_path}/admin/uploadlogo" type="button" class="btn btn-default" value="Upload Logo"></input> <br /> <br/>
<input id="faviconUrl" type="text" class="form-control" placeholder="favicon.ico" data-field="brand:favicon" /><br />
<input data-action="upload" data-target="faviconUrl" data-route="{relative_path}/admin/uploadfavicon" type="button" class="btn btn-default" value="Upload"></input> <br /> <br/> <label>Favicon</label><br />
<input id="faviconUrl" type="text" class="form-control" placeholder="favicon.ico" data-field="brand:favicon" /><br />
<hr/> <input data-action="upload" data-target="faviconUrl" data-route="{relative_path}/admin/uploadfavicon" type="button" class="btn btn-default" value="Upload"></input> <br /> <br/>
<div class="checkbox"> </form>
<label> </div>
<input type="checkbox" data-field="allowGuestSearching"> <strong>Allow guests to search without logging in</strong> </div>
</label>
</div> <div class="panel panel-default">
<div class="checkbox"> <div class="panel-heading">General Settings</div>
<label> <div class="panel-body">
<input type="checkbox" data-field="useOutgoingLinksPage"> <strong>Use Outgoing Links Warning Page</strong> <form>
</label> <div class="checkbox">
</div> <label>
<div class="checkbox"> <input type="checkbox" data-field="allowGuestSearching"> <strong>Allow guests to search without logging in</strong>
<label> </label>
<input type="checkbox" data-field="disableSocialButtons"> <strong>Disable social buttons</strong> </div>
</label> <div class="checkbox">
</div> <label>
</form> <input type="checkbox" data-field="useOutgoingLinksPage"> <strong>Use Outgoing Links Warning Page</strong>
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" data-field="disableSocialButtons"> <strong>Disable social buttons</strong>
</label>
</div>
</form>
</div>
</div> </div>
<!-- IMPORT admin/settings/footer.tpl --> <!-- IMPORT admin/settings/footer.tpl -->

@ -1,16 +1,19 @@
<form> <div class="panel panel-default">
<div class="alert alert-warning"> <div class="panel-heading">Pagination Settings</div>
<div class="checkbox"> <div class="panel-body">
<label> <form>
<input type="checkbox" data-field="usePagination"> <strong>Paginate topics and posts instead of using infinite scroll.</strong> <div class="checkbox">
</label> <label>
</div> <input type="checkbox" data-field="usePagination"> <strong>Paginate topics and posts instead of using infinite scroll.</strong>
</label>
</div>
<strong>Topics per Page</strong><br /> <input type="text" class="form-control" value="20" data-field="topicsPerPage"><br /> <strong>Topics per Page</strong><br /> <input type="text" class="form-control" value="20" data-field="topicsPerPage"><br />
<strong>Posts per Page</strong><br /> <input type="text" class="form-control" value="20" data-field="postsPerPage"><br /> <strong>Posts per Page</strong><br /> <input type="text" class="form-control" value="20" data-field="postsPerPage"><br />
<hr/> <hr/>
<strong>Initial Number of Topics to Load (Unread, Recent, Popular etc.)</strong><br /> <input type="text" class="form-control" value="20" data-field="topicsPerList"><br /> <strong>Initial Number of Topics to Load (Unread, Recent, Popular etc.)</strong><br /> <input type="text" class="form-control" value="20" data-field="topicsPerList">
</form>
</div> </div>
</form> </div>
<!-- IMPORT admin/settings/footer.tpl --> <!-- IMPORT admin/settings/footer.tpl -->

@ -1,61 +1,86 @@
<form> <div class="panel panel-default">
<div class="alert alert-warning"> <div class="panel-heading">Post Settings</div>
<div class="form-group"> <div class="panel-body">
<label>Default Post Sorting</label> <form>
<select class="form-control" data-field="topicPostSort"> <div class="form-group">
<option value="oldest_to_newest">Oldest to Newest</option> <label>Default Post Sorting</label>
<option value="newest_to_oldest">Newest to Oldest</option> <select class="form-control" data-field="topicPostSort">
<option value="most_votes">Most Votes</option> <option value="oldest_to_newest">Oldest to Newest</option>
</select> <option value="newest_to_oldest">Newest to Oldest</option>
</div> <option value="most_votes">Most Votes</option>
</select>
</div>
<strong>Seconds between Posts</strong><br /> <input type="text" class="form-control" value="10" data-field="postDelay"><br /> <strong>Seconds between Posts</strong><br /> <input type="text" class="form-control" value="10" data-field="postDelay"><br />
<strong>Seconds before new user can post</strong><br /> <input type="text" class="form-control" value="10" data-field="initialPostDelay"><br /> <strong>Seconds before new user can post</strong><br /> <input type="text" class="form-control" value="10" data-field="initialPostDelay"><br />
<strong>Minimum Title Length</strong><br /> <input type="text" class="form-control" value="3" data-field="minimumTitleLength"><br /> <strong>Minimum Title Length</strong><br /> <input type="text" class="form-control" value="3" data-field="minimumTitleLength"><br />
<strong>Maximum Title Length</strong><br /> <input type="text" class="form-control" value="255" data-field="maximumTitleLength"><br /> <strong>Maximum Title Length</strong><br /> <input type="text" class="form-control" value="255" data-field="maximumTitleLength"><br />
<strong>Minimum Post Length</strong><br /> <input type="text" class="form-control" value="8" data-field="minimumPostLength"><br /> <strong>Minimum Post Length</strong><br /> <input type="text" class="form-control" value="8" data-field="minimumPostLength"><br />
<div class="checkbox"> <div class="checkbox">
<label> <label>
<input type="checkbox" data-field="disableSignatures"> <strong>Disable signatures</strong> <input type="checkbox" data-field="disableSignatures"> <strong>Disable signatures</strong>
</label> </label>
</div> </div>
<strong>Chat Message Inbox Size</strong><br /> <input type="text" class="form-control" value="250" data-field="chatMessageInboxSize"><br /> </form>
<div class="checkbox"> </div>
<label> </div>
<input type="checkbox" data-field="allowFileUploads"> <strong>Allow users to upload regular files</strong>
</label> <div class="panel panel-default">
</div> <div class="panel-heading">Chat Settings</div>
<strong>Maximum File Size</strong><br /> <input type="text" class="form-control" value="2048" data-field="maximumFileSize"><br /> <div class="panel-body">
<form>
<strong>Chat Message Inbox Size</strong><br /> <input type="text" class="form-control" value="250" data-field="chatMessageInboxSize">
</form>
</div>
</div>
<div class="checkbox"> <div class="panel panel-default">
<label> <div class="panel-heading">Upload Settings</div>
<input type="checkbox" data-field="allowTopicsThumbnail"> <strong>Allow users to upload topic thumbnails</strong> <div class="panel-body">
</label> <form>
</div> <div class="checkbox">
<strong>Topic Thumb Size</strong><br /> <input type="text" class="form-control" value="120" data-field="topicThumbSize"><br /> <label>
<input type="checkbox" data-field="allowFileUploads"> <strong>Allow users to upload regular files</strong>
</label>
</div>
<strong>Maximum File Size</strong><br /> <input type="text" class="form-control" value="2048" data-field="maximumFileSize"><br />
<div class="checkbox">
<label>
<input type="checkbox" data-field="allowTopicsThumbnail"> <strong>Allow users to upload topic thumbnails</strong>
</label>
</div>
<strong>Topic Thumb Size</strong><br /> <input type="text" class="form-control" value="120" data-field="topicThumbSize">
</form>
</div>
</div>
<h3>Composer Settings</h3> <div class="panel panel-default">
<p> <div class="panel-heading">Composer Settings</div>
The following settings govern the functionality and/or appearance of the post composer shown <div class="panel-body">
to users when they create new topics, or reply to existing topics. <form>
</p> <p>
<div class="checkbox"> The following settings govern the functionality and/or appearance of the post composer shown
<label for="composer:showHelpTab"> to users when they create new topics, or reply to existing topics.
<input type="checkbox" id="composer:showHelpTab" data-field="composer:showHelpTab" checked /> </p>
Show "Help" tab <div class="checkbox">
</label> <label for="composer:showHelpTab">
</div> <input type="checkbox" id="composer:showHelpTab" data-field="composer:showHelpTab" checked />
<div class="checkbox"> Show "Help" tab
<label for="composer:allowPluginHelp"> </label>
<input type="checkbox" id="composer:allowPluginHelp" data-field="composer:allowPluginHelp" checked /> </div>
Allow plugins to add content to the help tab <div class="checkbox">
</label> <label for="composer:allowPluginHelp">
</div> <input type="checkbox" id="composer:allowPluginHelp" data-field="composer:allowPluginHelp" checked />
<div class="form-group"> Allow plugins to add content to the help tab
<label for="composer:customHelpText">Custom Help Text</label> </label>
<textarea class="form-control" id="composer:customHelpText" data-field="composer:customHelpText" rows="5"></textarea> </div>
</div> <div class="form-group">
<label for="composer:customHelpText">Custom Help Text</label>
<textarea class="form-control" id="composer:customHelpText" data-field="composer:customHelpText" rows="5"></textarea>
</div>
</form>
</div> </div>
</form> </div>
<!-- IMPORT admin/settings/footer.tpl --> <!-- IMPORT admin/settings/footer.tpl -->

@ -1,34 +1,48 @@
<form> <div class="panel panel-default">
<div class="alert alert-warning"> <div class="panel-heading">Reputation Settings</div>
<div class="checkbox"> <div class="panel-body">
<label> <form>
<input type="checkbox" data-field="reputation:disabled"> <strong>Disable Reputation System</strong> <div class="checkbox">
</label> <label>
</div> <input type="checkbox" data-field="reputation:disabled"> <strong>Disable Reputation System</strong>
<div class="checkbox"> </label>
<label> </div>
<input type="checkbox" data-field="downvote:disabled"> <strong>Disable Down Voting</trong> <div class="checkbox">
</label> <label>
</div> <input type="checkbox" data-field="downvote:disabled"> <strong>Disable Down Voting</trong>
</label>
</div>
</form>
</div> </div>
</div>
<div class="alert alert-warning">
<h3>Privilege Thresholds</h3> <div class="panel panel-default">
<p>Use <strong>privilege thresholds</strong> to manage how much reputation a user must gain to receive moderator access.</p><br /> <div class="panel-heading">Privilege Thresholds</div>
<strong>Manage Thread</strong><br /> <input type="text" class="form-control" value="1000" data-field="privileges:manage_topic"><br /> <div class="panel-body">
<strong>Manage Content</strong><br /> <input type="text" class="form-control" value="1000" data-field="privileges:manage_content"><br /> <form>
<div class="checkbox"> <p class="help-block">
<label> Use privilege thresholds to manage how much reputation a user must gain to receive moderator access.
<input type="checkbox" data-field="privileges:disabled"> <strong>Disable Privilege Threshold System</strong> </p>
</label> <strong>Manage Thread</strong><br /> <input type="text" class="form-control" value="1000" data-field="privileges:manage_topic"><br />
</div> <strong>Manage Content</strong><br /> <input type="text" class="form-control" value="1000" data-field="privileges:manage_content"><br />
<div class="checkbox">
<label>
<input type="checkbox" data-field="privileges:disabled"> <strong>Disable Privilege Threshold System</strong>
</label>
</div>
</form>
</div> </div>
</div>
<div class="alert alert-warning"> <div class="panel panel-default">
<h3>Activity Thresholds</h3> <div class="panel-heading">Activity Thresholds</div>
<strong>Minimum reputation to downvote posts</strong><br /> <input type="text" class="form-control" data-field="privileges:downvote"><br /> <div class="panel-body">
<strong>Minimum reputation to flag posts</strong><br /> <input type="text" class="form-control" data-field="privileges:flag"><br /> <form>
<strong>Minimum reputation to downvote posts</strong><br /> <input type="text" class="form-control" data-field="privileges:downvote"><br />
<strong>Minimum reputation to flag posts</strong><br /> <input type="text" class="form-control" data-field="privileges:flag"><br />
</form>
</div> </div>
</form> </div>
<!-- IMPORT admin/settings/footer.tpl --> <!-- IMPORT admin/settings/footer.tpl -->

@ -1,21 +1,24 @@
<form> <div class="panel panel-default">
<div class="alert alert-warning"> <div class="panel-heading">Web Socket Settings</div>
<div class="form-group"> <div class="panel-body">
<label for="maxReconnectionAttempts">Max Reconnection Attempts</label> <form>
<input class="form-control" id="maxReconnectionAttempts" type="text" value="5" data-field="maxReconnectionAttempts" /><br /> <div class="form-group">
</div> <label for="maxReconnectionAttempts">Max Reconnection Attempts</label>
<div class="form-group"> <input class="form-control" id="maxReconnectionAttempts" type="text" value="5" data-field="maxReconnectionAttempts" /><br />
<label for="reconnectionDelay">Reconnection Delay</label> </div>
<input class="form-control" id="reconnectionDelay" type="text" value="200" data-field="reconnectionDelay" /><br /> <div class="form-group">
</div> <label for="reconnectionDelay">Reconnection Delay</label>
<div class="form-group"> <input class="form-control" id="reconnectionDelay" type="text" value="200" data-field="reconnectionDelay" /><br />
<label for="websocketAddress">Websocket Address</label> </div>
<input class="form-control" id="websocketAddress" type="text" data-field="websocketAddress" /><br /> <div class="form-group">
<p class="help-block"> <label for="websocketAddress">Websocket Address</label>
Leave blank if unsure. <input class="form-control" id="websocketAddress" type="text" data-field="websocketAddress" /><br />
</p> <p class="help-block">
</div> Leave blank if unsure.
</p>
</div>
</form>
</div> </div>
</form> </div>
<!-- IMPORT admin/settings/footer.tpl --> <!-- IMPORT admin/settings/footer.tpl -->

@ -1,9 +1,12 @@
<form> <div class="panel panel-default">
<div class="alert alert-warning"> <div class="panel-heading">Tag Settings</div>
<strong>Tags per Topic</strong><br /> <input type="text" class="form-control" value="5" data-field="tagsPerTopic"><br /> <div class="panel-body">
<strong>Minimum Tag Length</strong><br /> <input type="text" class="form-control" value="3" data-field="minimumTagLength"><br /> <form>
<strong>Maximum Tag Length</strong><br /> <input type="text" class="form-control" value="15" data-field="maximumTagLength"><br /> <strong>Tags per Topic</strong><br /> <input type="text" class="form-control" value="5" data-field="tagsPerTopic"><br />
<strong>Minimum Tag Length</strong><br /> <input type="text" class="form-control" value="3" data-field="minimumTagLength"><br />
<strong>Maximum Tag Length</strong><br /> <input type="text" class="form-control" value="15" data-field="maximumTagLength"><br />
</form>
</div> </div>
</form> </div>
<!-- IMPORT admin/settings/footer.tpl --> <!-- IMPORT admin/settings/footer.tpl -->

@ -1,117 +1,146 @@
<form role="form"> <div class="panel panel-default">
<div class="alert alert-warning"> <div class="panel-heading">User Settings</div>
<div class="checkbox"> <div class="panel-body">
<label> <form role="form">
<input type="checkbox" data-field="allowRegistration" checked> <strong>Allow registration</strong> <div class="checkbox">
</label> <label>
</div> <input type="checkbox" data-field="allowRegistration" checked> <strong>Allow registration</strong>
<div class="checkbox"> </label>
<label> </div>
<input type="checkbox" data-field="allowLocalLogin" checked> <strong>Allow local login</strong> <div class="checkbox">
</label> <label>
</div> <input type="checkbox" data-field="allowLocalLogin" checked> <strong>Allow local login</strong>
<div class="checkbox"> </label>
<label> </div>
<input type="checkbox" data-field="allowAccountDelete" checked> <strong>Allow account deletion</strong> <div class="checkbox">
</label> <label>
</div> <input type="checkbox" data-field="allowAccountDelete" checked> <strong>Allow account deletion</strong>
<div class="checkbox"> </label>
<label> </div>
<input type="checkbox" data-field="privateUserInfo"> <strong>Make user info private</strong> <div class="checkbox">
</label> <label>
</div> <input type="checkbox" data-field="privateUserInfo"> <strong>Make user info private</strong>
<div class="checkbox"> </label>
<label> </div>
<input type="checkbox" data-field="requireEmailConfirmation"> <strong>Require Email Confirmation</strong> <div class="checkbox">
</label> <label>
</div> <input type="checkbox" data-field="requireEmailConfirmation"> <strong>Require Email Confirmation</strong>
<h3>Avatars</h3> </label>
<div class="checkbox"> </div>
<label> </form>
<input type="checkbox" data-field="profile:convertProfileImageToPNG"> <strong>Convert profile image uploads to PNG</strong> </div>
</label> </div>
</div>
<div class="panel panel-default">
<div class="panel-heading">Avatars</div>
<div class="panel-body">
<form>
<div class="checkbox">
<label>
<input type="checkbox" data-field="profile:convertProfileImageToPNG"> <strong>Convert profile image uploads to PNG</strong>
</label>
</div>
<div class="form-group">
<label>Default Gravatar Image</label>
<select class="form-control" data-field="defaultGravatarImage">
<option value="">default</option>
<option value="identicon">identicon</option>
<option value="mm">mystery-man</option>
<option value="monsterid">monsterid</option>
<option value="wavatar">wavatar</option>
<option value="retro">retro</option>
</select>
</div>
<div class="form-group"> <div class="form-group">
<label>Default Gravatar Image</label> <label>Custom Gravatar Default Image</label>
<select class="form-control" data-field="defaultGravatarImage"> <input id="customGravatarDefaultImage" type="text" class="form-control" placeholder="A custom image to use instead of gravatar defaults" data-field="customGravatarDefaultImage" /><br />
<option value="">default</option> <input data-action="upload" data-target="customGravatarDefaultImage" data-route="{relative_path}/admin/uploadgravatardefault" type="button" class="btn btn-default" value="Upload"></input>
<option value="identicon">identicon</option> </div>
<option value="mm">mystery-man</option>
<option value="monsterid">monsterid</option>
<option value="wavatar">wavatar</option>
<option value="retro">retro</option>
</select>
</div>
<div class="form-group"> <div class="form-group">
<label>Custom Gravatar Default Image</label> <label for="profileImageDimension">Profile Image Dimension</label>
<input id="customGravatarDefaultImage" type="text" class="form-control" placeholder="A custom image to use instead of gravatar defaults" data-field="customGravatarDefaultImage" /><br /> <input id="profileImageDimension" type="text" class="form-control" data-field="profileImageDimension" placeholder="128" />
<input data-action="upload" data-target="customGravatarDefaultImage" data-route="{relative_path}/admin/uploadgravatardefault" type="button" class="btn btn-default" value="Upload"></input> </div>
</div>
<div class="form-group"> <div class="form-group">
<label for="profileImageDimension">Profile Image Dimension</label> <label>Maximum User Image File Size</label>
<input id="profileImageDimension" type="text" class="form-control" data-field="profileImageDimension" placeholder="128" /> <input type="text" class="form-control" placeholder="Maximum size of uploaded user images in kilobytes" data-field="maximumProfileImageSize" />
</div> </div>
</form>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">Account Protection</div>
<div class="panel-body">
<form>
<div class="form-group">
<label for="loginAttempts">Login attempts per hour</label>
<input id="loginAttempts" type="text" class="form-control" data-field="loginAttempts" placeholder="5" />
<p class="help-block">
If login attempts to a user&apos;s account exceeds this threshold, that account will be locked for a pre-configured amount of time
</p>
</div>
<div class="form-group">
<label for="lockoutDuration">Account Lockout Duration (minutes)</label>
<input id="lockoutDuration" type="text" class="form-control" data-field="lockoutDuration" placeholder="60" />
</div>
<div class="form-group">
<label>Days to remember user login sessions</label>
<input type="text" class="form-control" data-field="loginDays" placeholder="14" />
</div>
</form>
</div>
</div>
<h3>Account Protection</h3> <div class="panel panel-default">
<div class="form-group"> <div class="panel-heading">User Bans</div>
<label for="loginAttempts">Login attempts per hour</label> <div class="panel-body">
<input id="loginAttempts" type="text" class="form-control" data-field="loginAttempts" placeholder="5" /> <form>
<p class="help-block"> <div class="form-group">
If login attempts to a user&apos;s account exceeds this threshold, that account will be locked for a pre-configured amount of time <label>Number of flags to ban user</label>
</p> <input type="text" class="form-control" value="3" placeholder="" data-field="flagsForBan" />
</div> </div>
<div class="form-group"> <hr />
<label for="lockoutDuration">Account Lockout Duration (minutes)</label> <div class="checkbox">
<input id="lockoutDuration" type="text" class="form-control" data-field="lockoutDuration" placeholder="60" /> <label>
</div> <input type="checkbox" data-field="autoban:downvote"> <strong>Enable automatic banning for reaching below a reputation threshold</strong>
<div class="form-group"> </label>
<label>Days to remember user login sessions</label> </div>
<input type="text" class="form-control" data-field="loginDays" placeholder="14" /> <label>Reputation threshold before receiving an automatic ban</label>
</div> <input type="text" class="form-control" value="" placeholder="-50" data-field="autoban:downvote:threshold" />
</form>
</div>
</div>
<h3>Other</h3> <div class="panel panel-default">
<div class="form-group"> <div class="panel-heading">User Registration</div>
<label>Number of flags to ban user</label> <div class="panel-body">
<input type="text" class="form-control" value="3" placeholder="" data-field="flagsForBan" /> <form>
</div> <div class="form-group">
<hr /> <label>Minimum Username Length</label>
<div class="checkbox"> <input type="text" class="form-control" value="2" data-field="minimumUsernameLength">
<label> </div>
<input type="checkbox" data-field="autoban:downvote"> <strong>Enable automatic banning for reaching below a reputation threshold</strong> <div class="form-group">
</label> <label>Maximum Username Length</label>
</div> <input type="text" class="form-control" value="16" data-field="maximumUsernameLength">
<label>Reputation threshold before receiving an automatic ban</label> </div>
<input type="text" class="form-control" value="" placeholder="-50" data-field="autoban:downvote:threshold" /> <div class="form-group">
<hr /> <label>Minimum Password Length</label>
<div class="form-group"> <input type="text" class="form-control" value="6" data-field="minimumPasswordLength">
<label>Maximum User Image File Size</label> </div>
<input type="text" class="form-control" placeholder="Maximum size of uploaded user images in kilobytes" data-field="maximumProfileImageSize" /> <div class="form-group">
</div> <label>Maximum Signature Length</label>
<div class="form-group"> <input type="text" class="form-control" value="255" data-field="maximumSignatureLength">
<label>Minimum Username Length</label> </div>
<input type="text" class="form-control" value="2" data-field="minimumUsernameLength"> <div class="form-group">
</div> <label>Forum Terms of Use <small>(Leave blank to disable)</small></label>
<div class="form-group"> <textarea class="form-control" data-field="termsOfUse"></textarea>
<label>Maximum Username Length</label> </div>
<input type="text" class="form-control" value="16" data-field="maximumUsernameLength"> </form>
</div>
<div class="form-group">
<label>Minimum Password Length</label>
<input type="text" class="form-control" value="6" data-field="minimumPasswordLength">
</div>
<div class="form-group">
<label>Maximum Signature Length</label>
<input type="text" class="form-control" value="255" data-field="maximumSignatureLength">
</div>
<div class="form-group">
<label>Forum Terms of Use <small>(Leave blank to disable)</small></label>
<textarea class="form-control" data-field="termsOfUse"></textarea>
</div>
</div> </div>
</form> </div>
<!-- IMPORT admin/settings/footer.tpl --> <!-- IMPORT admin/settings/footer.tpl -->

@ -1,23 +1,30 @@
<form> <div class="panel panel-default">
<div class="alert alert-warning"> <div class="panel-heading">Crawlability Settings</div>
<strong>Custom Robots.txt <small>Leave blank for default</small></strong><br /> <div class="panel-body">
<textarea class="form-control" data-field="robots.txt"></textarea> <form>
<strong>Custom Robots.txt <small>Leave blank for default</small></strong><br />
<textarea class="form-control" data-field="robots.txt"></textarea>
</form>
</div> </div>
</div>
<div class="alert alert-warning"> <div class="panel panel-default">
<strong>Feeds</strong> <div class="panel-heading">Sitemap & Feed Settings</div>
<div class="checkbox"> <div class="panel-body">
<label> <form>
<input type="checkbox" data-field="feeds:disableRSS"> <strong>Disable RSS Feeds</strong> <div class="checkbox">
</label> <label>
</div> <input type="checkbox" data-field="feeds:disableRSS"> <strong>Disable RSS Feeds</strong>
</label>
</div>
<div class="checkbox"> <div class="checkbox">
<label> <label>
<input type="checkbox" data-field="feeds:disableSitemap"> <strong>Disable Sitemap.xml</strong> <input type="checkbox" data-field="feeds:disableSitemap"> <strong>Disable Sitemap.xml</strong>
</label> </label>
</div> </div>
</form>
</div> </div>
</form> </div>
<!-- IMPORT admin/settings/footer.tpl --> <!-- IMPORT admin/settings/footer.tpl -->
Loading…
Cancel
Save