Group Suggestions for Elgg
, (*1)
Features
- Suggests groups to join based on shared tags and relationships
, (*2)
Notes
Matching algorithm matches suggested groups based on:
1. Members in user's groups who have also joined other suggested groups
2. Tags that shared between the user and the suggested groups, (*3)
Suggested groups are ordered by score that includes total number of shared members and tags., (*4)
If you want to list reasons for the suggestion, you can access this info through volatile data:, (*5)
// Total count of shared members and tags
$group->getVolatileData('select:score');
// Concatenated string of members in user's groups who have joined this suggested group
$group->getVolatileData('select:shared_members');
// Concated string of tag metadata value ids shared between the user and this suggested group
$group->getVolatileData('select:shared_tags');
You can constrain any set of groups to only include suggested groups ordered by score, by
filtering the options through:, (*6)
$options = group_suggestions_add_match_queries($options);
echo elgg_list_entities($options);