member directory

Permalink
We have successfully created a member directory by turning on advanced permissions and enabling public profiles. There are a few things we would like to do but cannot find any documentation and/or discussion regarding the following:
1. display the directory in alphabetical order by Users Name. Seems like it would be fairly straightforward.
2. We created a number of attributes to include in each profile. It would be great to display a column header that describes the column (not everyone remembers what their "Yes" is about.
3.Would like to be able to hide specific users like the Admin user and others that really aren't a part of this group - they don't need to be displayed in the directory but they need to remain part of the group for administrative purposes.

Listed above are the most important issues we need help solving. In addition, as I mentioned, we created a number of additional attributes. It would be nice if we could change the order in which these are displayed as well.

And last, in the end, we were hoping that we could send a group message from time to time to remind members of upcoming deadlines, meetings, etc. The private messaging is functioning but it doesn't appear that you can send more than one private message at a time. I guess if it were so, how private would it be :).

If anyone can help me solve one, some, or all of these issues I will be so grateful and relieved.

Regards,

labdesignstudio

 
shahroq replied on at Permalink Reply
shahroq
With regard to your sorting question, the default order of user list in members page is 'sortByUserID'/Asc. In order to change that, you should tweak the responsible line in:
\concrete\controllers\single_page\members\directory.php: line 22:

$this->userList->sortByUserID();
//to 
$this->userList->sortByUserName();

To filter the list you could add a filter method there too. filterByGroup($group, false) should remove all admin users of the list.
And off course it would be better not to touch this file directly and override it.

To find out more about sorting/filtering methods check the 'Sort a user list' & 'Filter a user list' sections of this cheat sheet:
https://github.com/shahroq/whale_c5_cheat_sheet#sort-a-user-list...
labdesignstudio replied on at Permalink Reply
Thank you for the reply and the link. I actually tried changing the directory.php in concrete/controllers/single_page/members/ before posting my questions. I was disappointed it didn't work as I thought I had found the exact correct place to make the change. Not sure why it didn't work.

I will read through the cheat sheet you provided and see if I can learn anything that might help.

I haven't been able to find much documentation or postings on any similar problems/solutions regarding the directory.