Downloads » Resources » ShowMembers

ShowMembers

  • Currently 4.6666666666667/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Votes: 3

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")

Works with MODx Version(s): 0.9.6, 0.9.5, 0.9.2.2, 0.9.2.1
Submitted: Mar 20th 2008 | License: GPL - GNU Public | Downloads: 357

This snippet will list all members in a given webgroup. There are several options that allow you to customize the output.

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
email
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

ShowMembers 1.0

by Mitch

Initial Release

Works with MODx Version(s): 0.9.5, 0.9.2.2, 0.9.2.1
Submitted: Sep 3rd 2006 | License: None Specified | Downloads: 1284


Extras

No results found.


( back to top )