# 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:** 5

<div class="post-metadata">

**Author:** ![Alavi1412](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alavi1412/32/67721_2.png) [@Alavi1412](https://meta.discourse.org/u/Alavi1412)\
**Post date:** [December 25, 2016, 10:35am UTC](https://meta.discourse.org/t/reputation-plugin-version-0-2/54758/5 "2016-12-25T10:35:53Z")

</div>

Is there any problem with this code for reading likes(this is helper):

```plaintext
import { registerUnbound } from 'discourse-common/lib/helpers';
registerUnbound('show', function(params) {
	var target = -1;
	$.ajax({
  url: "/users/" + params + "/summary.json",
  dataType: 'json',
  async: false,
  success: function(data) {
  	target = data.user_summary.likes_received;
  }
});
	return new Handlebars.SafeString(target);
});

```

and the handlebar is:  
`{{show username}}`  
It works well in local but doesn’t work well in website

---

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