# Reputation Plugin Version 0.2

**URL:** <https://meta.discourse.org/t/reputation-plugin-version-0-2/54758>\
**Category:** Plugin\
**Tags:** broken\
**Created:** [December 25, 2016, 6:46am UTC](https://meta.discourse.org/t/reputation-plugin-version-0-2/54758 "2016-12-25T06:46:03Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)\
**Post date:** [December 25, 2016, 4:52pm UTC](https://meta.discourse.org/t/reputation-plugin-version-0-2/54758/6 "2016-12-25T16:52:46Z")

</div>

> [@Alavi1412](#):
>
> It works well in local but doesn’t work well in website

I would look into getting the Likes Given count from one of the tables instead of an AJAX request. If for only your own site, it might not be a problem. But it is possible for a site to set the Summary page to logged in only, which could cause a problem.

AFAICT there are 3 tables that have Likes Given counts.

One is `directory_items.likes_received` (the Users page) but that can also be logged in only, and it has various `period_type`’s

Another is `user_stats.likes_received` (the Summary page)

The other is `user_actions.action_type` where `user_actions.action_type = 2`  
and it would need to do a COUNT query.

---

_[View the full topic](https://meta.discourse.org/t/reputation-plugin-version-0-2/54758)._
