On our forums, we always reward those who create the most content or receive the most reactions. But what about the "unsung heroes" who keep your community alive, browse every thread, and generously offer their support to other members? That is, the members who give the most reactions?
Completing the Missing Piece
The [MP] Likes Given add-on fills this exact gap for your XenForo site. This powerful add-on tracks and lists the reactions your members have given, allowing you to highlight the most positive and active members of your community.
This add-on adds three core functionalities to your site:
1. "Top Likers" Widget #
A modern and customizable widget you can add anywhere on your site. This widget displays your community's most generous members in a leaderboard. The widget options provide full control:
- User Limit: Determine how many users to show (e.g., Top 5, Top 10).
- Time Filter: Show the best of "All Time," or the most active of the "Last 30 Days" or "Last 7 Days."
- Reaction Filter: You can count only a specific reaction (e.g., only "Like" ID 1) or all reactions.
2. User Profile Integration #
The add-on extends the XF:User Entity, adding a getLikesGivenCount() function to each user's profile data. This allows you (with a simple template edit) to proudly display the "Likes Given" count next to the "Likes Received" on every member's profile or message sidebar.
Tabs added: #like-given and #like-given-stats.
3. Message Sidebar Integration #
Adds “Reactions Given” to the user info area under each post. Switch between emoji-only counters or colored text labels using Style Properties.
5. Powerful and Efficient Backend #
All data is managed via a dedicated Repository class (MusaPekel\LikeGiven:ReactionGiven) that runs optimized SQL queries. This ensures you can fetch data without performance issues, even on large forums.
Configure everything under Appearance → Style Properties → Message user elements.
likes_given_label_emoji — emoji labels ON/OFF.
likes_given_total — show/hide total given reactions.
- Per reaction toggles:
likes_given_like, likes_given_love, likes_given_haha, likes_given_wow, likes_given_sad, likes_given_angry.
For theme developers and power users:
likes_given_count($user) — total given reactions.
likes_given_counts($user) — array by reaction ID.
reaction_text_color($reactionId) — reads color from ACP Reaction.
- Follow the standard XenForo add-on installation steps to install the add-on.
- After installation, add the "Top Likers" widget from
/admin.php?widgets/.
- (Optional) For profile integration, add the member tabs and message sidebar via template modifications.
That's It!
Uncover your community's hidden supporters and reward them with the [MP] Likes Given add-on!