Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Member Banning ExpressionEngine snippet by Derek Allard (http://derekallard.com/blog/post/member-banning-expressionengine-snippet)
{!-- Snippet: ban_member_snippet --}
{if can_moderate_comment}
[<a href="{cp_url}?S=0&D=cp&C=addons_modules&M=show_module_cp&module=comment&method=index&entry_id={entry_id}">delete &amp; ban</a>]
{/if}
{!-- Template --}
{exp:comment:entries}
<p>{url_as_author} wrote: {ban_member_snippet}</p>
{comment}
{/exp:comment:entries}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment