Group suggestions for Elgg
Open Issues: 0
This package is auto-updated.
Last update: 2023-05-29 01:06:16 UTC
- Suggests groups to join based on shared tags and relationships
Matching algorithm matches suggested groups based on:
- Members in user's groups who have also joined other suggested groups
- Tags that shared between the user and the suggested groups
Suggested groups are ordered by score that includes total number of shared members and tags.
If you want to list reasons for the suggestion, you can access this info through volatile data:
// 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:
$options = group_suggestions_add_match_queries($options); echo elgg_list_entities($options);