Skip to content

Instantly share code, notes, and snippets.

@curtisblackwell
Created December 22, 2011 01:45
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save curtisblackwell/1508537 to your computer and use it in GitHub Desktop.
Save curtisblackwell/1508537 to your computer and use it in GitHub Desktop.
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