ShowMembers 1.0
This snippet will list all members in a given webgroup. There are several options that allow you to customize the output.
Submitted: Sep 3rd 2006 | License: None Specified | Downloads: 1333
Description
ShowMembers v1.0
Written by Michel van de Wetering
Feel free to use this snippet for anything you want, just give proper credit.
This snippet will list all members in a given webgroup. There are several options that allow you to customize the output. Note that you can use the placeholder to display the number of users in the webgroup. Note that you probably want to call this snippet uncached.
Thanks go to OpenGeek that provided me with the query that is the heart of this snippet
Parameters:
webGroup (mandatory):
This is the webusergroup that should be listed
tpl (optional):
Name of a chunk with template that defines the output of the snippet.
The template defaults to "[+fullname+]". An example template could look like this: "[+fullname+] is from [+country+]<br />"
Note that only the following fields can be used (extra formatting can be required):
id
internalKey
fullname
role
phone
mobilephone
blocked
blockeduntil
blockedafter
logincount
lastlogin
thislogin
failedlogincount
dob (this means "date of birth")
gender
country
state
zip
fax
photo
comment
seperator (optional):
The string that will be displayed between usernames. Defaults to ", "
wrapdiv (optional):
Wraps the output of the snippet in a div with the class="wrapdiv"
Instructions
- Create a new snippet with the name "ShowMembers"
- Paste the contents of "snippet.showmembers.txt" into the new snippet
- Add a call to the snippet in a page like this [!ShowMembers? &webGroup=`name_of_a_webgroup`!]
Updates