$config['debug'] = 1;
<xen:title>{xen:phrase users_awaiting_approval}</xen:title>
<xen:form action="{xen:adminlink 'users/moderated/update'}">
<xen:foreach loop="$users" value="$user">
<fieldset>
<xen:controlunit label="{xen:phrase user}:"><a href="{xen:adminlink users/edit, $user}" target="_blank">{$user.username}</a> ({$user.email})</xen:controlunit>
<xen:radiounit label="{xen:phrase action}:" name="users[{$user.user_id}][action]">
<xen:option value="none">{xen:phrase do_nothing}</xen:option>
<xen:option value="approve">{xen:phrase approve}</xen:option>
<xen:option value="reject" selected="true">
<xen:label>{xen:phrase reject_and_delete_with_rejection_reason}:</xen:label>
<xen:textbox placeholder="{xen:phrase optional}" name="users[{$user.user_id}][reject_reason]" size="45" />
</xen:option>
</xen:radiounit>
<xen:checkboxunit label="">
<xen:option name="users[{$user.user_id}][notify]">{xen:phrase notify_user_if_action_was_taken}</xen:option>
</xen:checkboxunit>
</fieldset>
</xen:foreach>
<xen:submitunit save="{xen:phrase process_users}" />
</xen:form>
ok thanks and how can i get rid of all these spam users Dx
Would it be possible to modify this template edit to delete all banned users?
If say you were wanting to clean up 1500 or so users awaiting approval, would you use this technique?
Would you then have to replace the code afterwards to revert to the original template once you had cleaned up?
Is there such an addon?Nope. This page is for moderated users, not banned users. An addon is required. Nor can this be done with a simple query.
Admin CP -> Users -> Users Awaiting Approval
Admin CP -> Development -> Admin Templates -> user_moderated
Jake, I'm logged in as the admin but can't seem to get to the "development" area. Where do I find this?
$config['debug'] = 1;
Yes, but I can't find the library/config.php file because I don't know how to get into the Development area.
Yes, but I can't find the library/config.php file because I don't know how to get into the Development area.
Add this to your library/config.php file:
Code:$config['debug'] = 1;
We use essential cookies to make this site work, and optional cookies to enhance your experience.