mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 02:55:58 +01:00 
			
		
		
		
	template in composer #2569
This commit is contained in:
		| @@ -90,6 +90,7 @@ | ||||
| 	"fork_success": "Successfully forked topic! Click here to go to the forked topic.", | ||||
|  | ||||
| 	"composer.title_placeholder": "Enter your topic title here...", | ||||
| 	"composer.handle_placeholder": "Enter your guest handle", | ||||
| 	"composer.discard": "Discard", | ||||
| 	"composer.submit": "Submit", | ||||
| 	"composer.replying_to": "Replying to %1", | ||||
|   | ||||
| @@ -224,7 +224,8 @@ define('composer', [ | ||||
| 		var data = { | ||||
| 			allowTopicsThumbnail: allowTopicsThumbnail, | ||||
| 			showTags: isTopic || isMain, | ||||
| 			isTopic: isTopic | ||||
| 			isTopic: isTopic, | ||||
| 			allowGuestHandles: config.allowGuestHandles | ||||
| 		}; | ||||
|  | ||||
| 		parseAndTranslate(template, data, function(composerTemplate) { | ||||
|   | ||||
| @@ -30,6 +30,7 @@ apiController.getConfig = function(req, res, next) { | ||||
| 	config.maximumSignatureLength = meta.config.maximumSignatureLength; | ||||
| 	config.useOutgoingLinksPage = parseInt(meta.config.useOutgoingLinksPage, 10) === 1; | ||||
| 	config.allowGuestSearching = parseInt(meta.config.allowGuestSearching, 10) === 1; | ||||
| 	config.allowGuestHandles = parseInt(meta.config.allowGuestHandles, 10) === 1; | ||||
| 	config.allowFileUploads = parseInt(meta.config.allowFileUploads, 10) === 1; | ||||
| 	config.allowTopicsThumbnail = parseInt(meta.config.allowTopicsThumbnail, 10) === 1; | ||||
| 	config.allowAccountDelete = parseInt(meta.config.allowAccountDelete, 10) === 1; | ||||
|   | ||||
							
								
								
									
										25
									
								
								src/views/admin/settings/guest.tpl
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								src/views/admin/settings/guest.tpl
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,25 @@ | ||||
| <!-- IMPORT admin/settings/header.tpl --> | ||||
|  | ||||
| <div class="panel panel-default"> | ||||
| 	<div class="panel-heading">Guests</div> | ||||
| 	<div class="panel-body"> | ||||
| 		<p class="alert alert-info"> | ||||
| 			These options affect guest users as a whole. Control over which categories a guest can see or post to is handled in | ||||
| 			the categories themselves | ||||
| 		</p> | ||||
|  | ||||
| 		<form role="form"> | ||||
| 			<div class="checkbox"> | ||||
| 				<label> | ||||
| 					<input type="checkbox" data-field="allowGuestHandles"> <strong>Allow guest handles</strong> | ||||
| 					<p class="help-block"> | ||||
| 						This option exposes a new field that allows guests to pick a name to associate with each post they make. If disabled, | ||||
| 						the will simply be called "Guest" (or the equivalent in the forum's selected language) | ||||
| 					</p> | ||||
| 				</label> | ||||
| 			</div> | ||||
| 		</form> | ||||
| 	</div> | ||||
| </div> | ||||
|  | ||||
| <!-- IMPORT admin/settings/footer.tpl --> | ||||
		Reference in New Issue
	
	Block a user