[ACP Template] acp_users_overview_delete_submit_prepend

Request hook events and what data needs to be sent for the new hook system.
Post Reply
User avatar
martti
Registered User
Posts: 45
Joined: Wed Aug 20, 2014 4:50 pm
Location: Belgium

[ACP Template] acp_users_overview_delete_submit_prepend

Post by martti »

Identifier: acp_users_overview_delete_submit_prepend
Location: in adm/style/apc_users_overview.html, in the user_delete form, before the submit button:

Code: Select all

		<form id="user_delete" method="post" action="{U_ACTION}">
			<fieldset>
				<legend>{L_DELETE_USER}</legend>
				<dl>
					<dt><label for="delete_type">{L_DELETE_USER}{L_COLON}</label><br /><span>{L_DELETE_USER_EXPLAIN}</span></dt>
					<dd>
					<!-- IF USER_HAS_POSTS -->
						<select id="delete_type" name="delete_type"><option class="sep" value="">{L_SELECT_OPTION}</option><option value="retain">{L_RETAIN_POSTS}</option><option value="remove">{L_DELETE_POSTS}</option></select>
					<!-- ELSE -->
						{L_USER_NO_POSTS_TO_DELETE}<input type="hidden" id="delete_type" name="delete_type" value="retain" />
					<!-- ENDIF -->
					</dd>
				</dl>
				
				<!-- EVENT acp_users_overview_delete_submit_prepend -->
				
				<p class="quick">
					<input class="button1" type="submit" name="update" value="{L_SUBMIT}" />
					<input type="hidden" name="delete" value="1" />
					{S_FORM_TOKEN}
				</p>
			</fieldset>
		</form>
Explanation: For setting extra options when deleting a user. In my case, I want to create the option to report a spammer to Stop Forum Spam (stopforumspam.com).
View from my previous mod (was not yet public):
sfs-delete-user.png
(31.74 KiB) Downloaded 447 times

Post Reply