Liked Content v2.0.0

Release Notes

  • Elgg 1.9+ upgrade
  • Added "All" option for sitewide list
  • Added site menu item to link to above sitewide list
  • Hey matt becket , is it possible to make rank of the users total likes ?

    Maybe like this :

    1. ABC has 66 likes

    2. CDE has 56 likes

    3.MNO has 54 likes

    This the code of  your plugin , but i dont know what i must edit , maybe it will need 'owner_guid' or something

    $dbprefix = elgg_get_config('dbprefix');
            $likes_metastring = elgg_get_metastring_id('likes');
                $options = array(
            'annotation_names' => array('likes'),
            'selects' => array("(SELECT count(distinct FROM {$dbprefix}annotations l WHERE l.name_id = $likes_metastring AND l.entity_guid = e.guid) AS likes"),
            'order_by' => 'likes DESC',


  • The queries here won't really help you, as they're for fetching the entities that are liked, not the users that liked things.  You will need to use the 'annotation_owner_guid' parameter but there will be more changes than just that.

  • Is it possible to sort the most liked content for the time frame like 24hrs, as of now it's showing from all time history... 


  • Kindly update this for Elgg 2.3.5

Matt Beckett

I'm a self-employed web developer, family man, nerd, scuba diver. Manager/maintainer of this elgg community site, and core Elgg development team member.

Project Info


  • Category: Uncategorized
  • License: GNU General Public License (GPL) version 2
  • Updated: 2015-10-17
  • Downloads: 2337
  • Recommendations: 10

Other Projects

View Matt Beckett's plugins