So I am using the community_plugins plugin that I got from github:
https://github.com/Elgg/community_plugins
I was wondering how can I display who recommended the plugin just to the owner of the plugin? I am unable to find where that is or what do I have to modify.
Thanks!
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Team Webgalli@webgalli
Team Webgalli - 0 likes
- rjcalifornia@rjcalifornia
rjcalifornia - 0 likes
- Nikolai Shcherbin@rivervanrain
Nikolai Shcherbin - 0 likes
You must log in to post replies.The ratings are saved as annotations (just like comments). All you need to do is get the annotations and output the owner name.
@Team Webgalli
I was reading this:
http://docs.elgg.org/wiki/Engine/DataModel/Annotations
So far no idea. So may be just a quick example? :(
BTW I want to show who recommended the plugin just to the owner of the plugin
elgg_list_entities_from_annotation_calculation(array(
'type' => 'object',
'subtype' => 'plugin_project',
'owner_guid ' => $owner->guid,
'annotation_names' => 'plugin_digg',
'order_by' => 'annotation_calculation desc',
'limit' => 6,
'pagination' => false
));
WITH
$digg = $vars['plugin_digg'];
$owner = get_entity($digg->owner_guid);