hypejunction / group_suggestions
Group suggestions for Elgg
Installs: 18
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:elgg-plugin
Requires
- php: >=5.5
- composer/installers: ~1.0
This package is auto-updated.
Last update: 2024-11-29 04:46:45 UTC
README
Features
- Suggests groups to join based on shared tags and relationships
Notes
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);