View List Members

Use this tag to display the members of a group.  Similar to the groups tag, this does not require a user_group_id or url_title if used on a group’s details (permalink) page.  By default, this will only show ‘active’ members.

{exp:user_groups:members}{/exp:user_groups:members} 

Table of Contents


Parameters

user_group_id

url_title

status

dyanmic

Accepts ‘on’ or ‘off’.  ‘on’ gets the url_title or user_group_id from the URL and looks it up.

orderby

Accepts ‘screen_name’, ‘join_date’, ‘member_id’, ‘activity’

sort

limit

paginate

Accepts ‘both’, ‘top’, ‘bottom’

Variables

The following are available within this tag, in addition to most member fields.

screen_name

member_id

user_group_id

status

approve_url

Used in conjunction with the moderate tag.

deny_url

Used in conjunction with the moderate tag.

num_members

join_date format=”“

photo_filename

count

Conditionals

{if logged_in}

{if logged_out}

{if is_admin}

Returns true if logged in member is a Super Admin or group admin.

{if is_not_admin}

Returns true if logged in member is NOT an Super Admin or group admin.

{if photo}

Example

<h3>Members</h3>
{exp:user_groups:members}
<a href="{path=">{screen_name}</a> - {status}<br/>
{/exp:user_groups:members}<br/>

{exp:user_groups:members status="pending"}
{if count 
== 1}<h3>Pending Members</h3>{/if}{count}
{screen_name} 
{status} {if is_admin}<a href="{path=">Approve</a> | <a href="{path=">Deny</a>{/if}

{
/exp:user_groups:members} 

Category:User Groups -> Tags

Categories: