The wordpress “Groups” plug-in by itthinx is a great wordpress addition. It allows you to assign users to groups and give them certain permissions and viewing based on tags and short codes. When building a form, I ran into a couple of “wants” that were very easy to add to this plug-in. I wanted to be able to assign a group to users and then use shortcodes to list the users details within a certain group. Things like their display name, email, etc. I decided to write a plug-in extension that adds that functionality to the groups plug-in. You can download the extension below and make use of the extension with the following options:
http://hardwiredmedia.com/extendgroupVer2.zip
The extend plugin will pull from the specified group in the shortcode, and it wraps the list in an html unordered list with list items.
BE CAREFUL HOW YOU USE THIS EXTENSION AS IT COULD GIVE HACKERS USER INFORMATION FROM YOUR SITE WITHOUT THEIR PERMISSION!
The shortcodes are as follows:
Pulls from user_login:
[groups_group_userdetails group="registered" show="users"]
Full name:
[groups_group_userdetails group="registered" show="usersfull"]
Users email:
[groups_group_userdetails group="registered" show="usersemails"]
Users Full name and Email (with mailto link):
[groups_group_userdetails group="registered" show="usersfullandemail"]
Users First Name
[groups_group_userdetails group="registered" show="usersfirst"]
Users Last Name
[groups_group_userdetails group="registered" show="userslast"]
Users Display Name
[groups_group_userdetails group="registered" show="userstitle"] (display name)
Total users in a group:
[groups_group_userdetails group="registered" show="count"]