View Moderate Membership

Allows group owners and Global Admins to approve and deny membership to ‘moderated’ groups.  This can be called by either putting this tag in a template, or just using the {approve_url} and {deny_url} tags available in the {exp:user_groups:groups} tag.

Note: Make sure links to this template are only shown to the owners of groups or admins.  Use the {if is_admin} conditional in the members tag to limit visibility to only group and site admins.

{exp:user_groups:moderate}{/exp:user_groups:moderate} 

Table of Contents


Parameters

user_group_id

member_id

action

Optional, either ‘approve’ or ‘deny’ [default is the opposite of the user’s current membership status]

return

Variables

The following are available within this tag.

message

Outputs an error message if there is a problem, otherwise this is blank.

Example

{exp:user_groups:moderate user_group_id="{segment_3}" member_id="{segment_4}" return="groups/group/url_title"}
{message}
{
/exp:user_groups:moderate} 

Category:User Groups -> Tags

Categories: