Dragonfly CMS v9 ⇒ Modules & Blocks ⇒ Memberslist - adding group memberships ⇒ Community Forums ⇒ CPG Dragonfly™ CMS
Forum IndexModules & Blocks

Memberslist - adding group memberships Reply to topic


Is there any way of adding group memberships to the memberslist display so everyone can see easily what groups each member is in?

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):


Not hard, but messy.

Obviously the memberslist.html would have to be changed, and space made to display a - possibly long - list.

modules/Members_List/index.php would need to retrieve user_group_cp and user_group_list_cp as part of the cms_users tuple access.

This would give you access to the group numbers, so the names of groups would have retrieved in a similar fashion to how it's done in modules/Groups/index.php (following the last option - under else - in the module).

But in between you'd have to implode the list of group numbers to get the list in array form.

Lot of work, and a little more SQL run time, for how much benefit?

For general use you'd also have to consider display by group type vs. membership. Admin would probably want to see all, but wouldn't want members to see Hidden groups, eg.

Pro_News CM™ - Content Management for Dragonfly CMS™

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux / 1.3.39 - 2.4.9 / 5.5.42 - 5.6.16 / 5.4.37 - 5.5.11 / 9.4


Thanks lb, I'll look at the groups index page and see if I can do it. I have groups for a school website and I'd like an easy way to show in the members list who is a teacher and who is on the committee...

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):


Give them different ranks? (They can all have the same privileges, just a different name.)

Pro_News CM™ - Content Management for Dragonfly CMS™

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux / 1.3.39 - 2.4.9 / 5.5.42 - 5.6.16 / 5.4.37 - 5.5.11 / 9.4


Does that show in the memberlist page? Have never used them before...

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):


Haha, yes it does. That solves that one - thanks for pointing that out!

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):

All times are UTC


Jump to: