hypejunction/group_suggestions

Elgg 的分组建议

1.0.0 2016-02-22 09:07 UTC

This package is auto-updated.

Last update: 2024-08-29 04:09:07 UTC


README

Elgg 1.11 Elgg 1.12 Elgg 2.0

功能

  • 根据共享标签和关系建议加入的组

Group Suggestions

注意

匹配算法根据以下内容匹配建议的组

  1. 用户所属的组中也有加入其他建议组的成员
  2. 用户和推荐组之间共享的标签

建议的组按包含共享成员和标签总数的评分排序

如果您想列出建议的原因,可以通过不稳定数据访问此信息

// 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');

您可以通过过滤选项仅包括按评分排序的建议组来约束任何一组组

$options = group_suggestions_add_match_queries($options);
echo elgg_list_entities($options);