I was wondering if you plan on allowing the grouping of author avatars by groups instead of blogs or as an additional choice.
The site I’m working on won’t have a lot of blogs, just ones necessary for our internal interests. The site is more built around the buddypress part of groups, members etc. I need to list personnel based on the group they belong to.
Is this possible? Maybe a seperate plugin for “Group Member Avatars”.
It seems there have been no takers. I’m not a programmer but real good at cut and paste… If you would give me a place to start I’ll go in and fiddle around. It seem to me maybe start with “UserListclass.php
and instead of creating a new plugin just adding the functions?
Adding a new grouping option involves these 3 steps:
lib/ UserList.class.php, function
_group(): Add new case statement
'bp-group'which reformats the list of users into the grouped list of users.
_group_name(): Add new case statement
'bp-group'which returns the title of a group given the buddypress group id. The id passed to this function is the id which you
use in 1) for grouping the users.
renderFieldGroupBy(): Add new option “BuddyPress Group” to
$group_by_optionsarray with the key being
Also, the easiest way of sending changes back to me are SVN patches; there is a short guide on this page on how to create them: http://blog.ftwr.co.uk/archives/2005/11/03/windows-wordpress-toolbox/ (ignore the part on “applying patches”).
(The svn url for trunk is: http://svn.wp-plugins.org/author-avatars/trunk/).
Adding options to not only group by BuddyPress Groups but also filter by them (so you can only display users of a certain group) involves a few more steps; let me know how you get on and I can have a closer look at that as well…
UserList.class.phpis where the list of users gets compiled so things like the actual filtering, grouping etc. takes place in there; and
AuthorAvatarsForm.class.phpis the file in which the form elements used on the widget control panel and the shortcode wizard are constructed.
- The topic ‘[Plugin: Author Avatars List] Addding support for BuddyPress Groups’ is closed to new replies.