ShowMembers
ShowMembers 1.1
- exported the language strings to an external language file, so translations can be added easily
- added a setlocale string to the language file
- added parameter &lang for selecting language
- added parameter &dateFormat for date formatting
Date formatting is only applicable for the following fields:
- blockeduntil
- blockedafter
- lastlogin
- thislogin
- dob (this means "date of birth")
This snippet will list all members in a given webgroup. There are several options that allow you to customize the output.
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):
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"
Description
ShowMembers v1.0Written 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`!]
Previous Releases
Extras
No results found.