[MP] Likes Given ❤️

Overview #

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?


What’s New in v2.1.0 #

Style Property Controls

Toggle emoji/text labels, show/hide total, and enable each reaction type individually.

Profile Tabs

New tabs: #like-given (detailed list) and #like-given-stats (per reaction totals).

Message Sidebar

Emoji-only or colored text labels—fully theme-aware and togglable.

Account Menu Item

Adds “Likes Given” with a live badge to the visitor menu.


Key Features #

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.

4. Account Visitor Menu Integration #

Adds a “Likes Given” link with a live badge to your user dropdown. Shows the total number of reactions the visitor has given.

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.


Style Properties #

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.

Templater Functions #

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.

Templates & Modifications #

Templates

  • musa_likesgiven_tab
  • musa_likesgiven_stats
  • musa_likesgiven_macros
  • musa_toplikers_widget

Template Modifications

  • public:member_view — adds profile tabs
  • public:message_macros — message sidebar stats
  • public:account_visitor_menu — menu item + badge

Why Should You Use This Add-on? #

  • Gamification: Start a friendly competition among members to get on the "Top Likers" list.
  • Increased Engagement: Encourage members to actively react to content instead of just consuming it.
  • Community Recognition: Honor not just popular content creators, but also those who are good community members and appreciate the content of others.

Installation #

  1. Follow the standard XenForo add-on installation steps to install the add-on.
  2. After installation, add the "Top Likers" widget from /admin.php?widgets/.
  3. (Optional) For profile integration, add the member tabs and message sidebar via template modifications.

Version History #

v2.1.0 — The Visual & Control Update

  • Full Style Property control (emoji/text/total/per-reaction).
  • New profile tabs: #like-given and #like-given-stats.
  • Message sidebar integration with toggles.
  • Account visitor menu item with live badge.
  • Repository improvements and performance tweaks.

Celebrate the givers—make your forum kinder.

Install [MP] Likes Given and shine a light on your community’s most generous members.

Get Started