Home  Extras  MODx Add-Ons  ShowMembers

ShowMembers



Forums Support Thread Votes: 17
Tags: Personalization, snippet, tracking, user management
Submitted: Dec 12, 2008
Released: Dec 12, 2008
Downloads: 191
License: GPL - GNU Public
Package Website


ShowMembers 1.1c | Author: webe

Works with the following Version(s): 0.9.2.1 | 0.9.2.2 | 0.9.5 | 0.9.6

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


Download


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. You can also use the value `all` to list all webgroups.

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

&total (optional) 0 | 1
Count and display total members in webgroup.
0 = No
1 = Yes
Defaults to "0"

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`!
UpdatesAdded &total parameter for counting and displaying members in webgroup.




Sub-Packages



Previous Releases


1.1b

Forums Support Thread Votes: 15
Tags: Personalization, snippet, tracking, user management
Submitted: Oct 21, 2008
Released: Oct 21, 2008
Downloads: 127
License: GPL - GNU Public
Package Website


ShowMembers 1.1b | Author: webe

Works with the following Version(s): 0.9.2.1 | 0.9.2.2 | 0.9.5 | 0.9.6

This version has been marked as deprecated. Please use a newer version.

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


Download


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. You can also use the value `all` to list all webgroups.

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

&total (optional) 0 | 1
Count and display total members in webgroup.
0 = No
1 = Yes
Defaults to "0"

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`!
UpdatesAdded value `all` to parameter &webGroup to display members of all webgroups.
Changed inclusion of language file to allow multiple snippet calls on same page.



1.1

Forums Support Thread Votes: 15
Tags: Personalization, snippet, tracking, user management
Submitted: Mar 20, 2008
Released: Mar 20, 2008
Downloads: 443
License: GPL - GNU Public
Package Website


ShowMembers 1.1 | Author: webe

Works with the following Version(s): 0.9.2.1 | 0.9.2.2 | 0.9.5 | 0.9.6

This version has been marked as deprecated. Please use a newer version.

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


Download


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. You can also use the value `all` to list all webgroups.

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

&total (optional) 0 | 1
Count and display total members in webgroup.
0 = No
1 = Yes
Defaults to "0"

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



1.0

Forums Support Thread Votes: 16
Tags: Personalization, snippet, tracking, user management
Submitted: Sep 3, 2006
Released: Sep 3, 2006
Downloads: 1417
License: Other


ShowMembers 1.0 | Author: mitch

Works with the following Version(s): 0.9.2.1 | 0.9.2.2 | 0.9.5

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


Download


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. You can also use the value `all` to list all webgroups.

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

&total (optional) 0 | 1
Count and display total members in webgroup.
0 = No
1 = Yes
Defaults to "0"

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`!




Comments

Please login to comment.

Close ]


 
 
 

Contact Us | Team Blog | FAQ | Site Credits

© 2005-2009 the MODx CMS project. All rights reserved. Privacy Policy | Terms of Service