Add a simple and effective Reputation System for your Forum

Add a simple and effective Reputation System for your Forum

Brad Padgett

Well-known member
Brad Padgett submitted a new resource:

Add a simple and effective Reputation System for your Forum - reputation ranks based on reaction score

Hey guys this is a short guide for a template modification you can use for adding a reputation system to your site based on reaction score. This is similar to @AzzidReign guide for trophy points on Xenforo 1 but this is for reaction score and for Xenforo 2. Shout outs to @AzzidReign for providing the bare bones to write this guide. This only works on 2.1 since reactions are not in 2.0

First you will need some images for the ranks. I'm currently using half...

Read more about this resource...
 
hmm...could be nice to use font awesome icons(like xen gallery), then have background color width setting on the proper z-index or something for the half stars.......hmm
 
No problem @AzzidReign and thanks for the comments guys. Just to update you I have tested and also message_count works when replacing reaction_count so you could do it for posts too. What I just did on my forum is setup an OR operator so that I could use either message_count or reaction_count both. Working quite nicely.
 
Dear friends,
@Brad Padgett @AzzidReign
I think it is more efficient with add-on.
Because users can manage the counts easily.

Also we can add more options for reputation.
Like that resource count or extra.
Regards.

Thank you for taking the time to post this. I considered making an add-on myself for it but decided on posting a template edit instead.

Can you post this in the resource manager. Also can you add support for message_count (posts) and trophy_points (trophy points)? Just because if you made the add-on to make it easier for people this would be a good idea. Could be a configurable option on which one you could use. All you have to do is replace those with reaction_score and they work just fine I have already tested message_count and I don't believe there is a difference in trophy_points code from xenforo 1 to xenforo 2 so that should work as well.

I haven't looked at the add-on yet as I would first like to know what kind of options it has and see it in the resource manager. And by all means don't let this tutorial stop you from posting it. As I said I was thinking of making one myself and never did. This would be great for people to use.
 
Last edited:
Thank you for taking the time to post this. I considered making an add-on myself for it but decided on posting a template edit instead.

Can you post this in the resource manager. Also can you add support for message_count (posts) and trophy_points (trophy points)? Just because if you made the add-on to make it easier for people this would be a good idea. Could be a configurable option on which one you could use. All you have to do is replace those with reaction_score and they work just fine I have already tested message_count and I don't believe there is a difference in trophy_points code from xenforo 1 to xenforo 2 so that should work as well.

I haven't looked at the add-on yet as I would first like to know what kind of options it has and see it in the resource manager. And by all means don't let this tutorial stop you from posting it. As I said I was thinking of making one myself and never did. This would be great for people to use.

Dear @Brad Padgett ,
Thank you for your positive reply.
We can add more options that will be user-friendly than I post this in the resource manager.

  • message_count (posts) (Possible)
  • resource_count (Possible)
  • reputation bar (Possible maybe a green bar that increases as it goes)
Via this topic, we will create new options based on feedback, this will help the development of the add-on.
Regards.
 
Dear @Brad Padgett ,
Thank you for your positive reply.
We can add more options that will be user-friendly than I post this in the resource manager.

  • message_count (posts) (Possible)
  • resource_count (Possible)
  • reputation bar (Possible maybe a green bar that increases as it goes)
Via this topic, we will create new options based on feedback, this will help the development of the add-on.
Regards.

Sounds good. Let me know if you release it. In the mean time I guess if anyone wants to leave comment on what they'd like to see that's fine.
 
Also @XDinc I wanted to add that this would not be a difficult add-on to make at all. It would take me hardly no time to develop even myself because you could simply use an option to control whether it was reaction_score, message_count, or trophy_points

You basically would be using options and template code is all it is. Would be nice to see a reputation bar though in addition to the star option. Would be an idea however this add-on would not be hard to make in the least bit
 
@Brad Padgett
Yes, it's not hard to do the this add-on, but we need to do it in a way that everyone can use.
For example, users who use UIX themes may have some problems because they have too many template changes on their themes.

While making add-ons, developers do according to master templates, but this is sometimes changing in 3rd-party themes.
We have to consider all these conditions when adding suggestions.
I think you understand me,(y)
 
@Brad Padgett
Yes, it's not hard to do the this add-on, but we need to do it in a way that everyone can use.
For example, users who use UIX themes may have some problems because they have too many template changes on their themes.

While making add-ons, developers do according to master templates, but this is sometimes changing in 3rd-party themes.
We have to consider all these conditions when adding suggestions.
I think you understand me,(y)

Yeah sure I understand. I considered developing this add-on myself but I believe you have already created some well known quality add-ons so I believe you'd be much better for the job anyway. Also I believe you have more experience than I do anyways. Feel free to use whatever methods to create it that you'd like. I only plan on using it myself if it includes a reputation bar. Also wanted to mention that I'm currently using a combination on my site of messages and ratings with the "OR" operator. Feel free to include an option for that if you wish.

Personally I'd like to see an option for trophy points and messages in addition or it wouldn't be a complete add-on. Also the option to combine those properties as well as a reputation bar. However you can do as you feel is best. Either way is fine.
 
@Brad Padgett ,
"OR" operator is not enough! The combination should be,

View attachment 200286

Looks good. I see you were serious about doing this. Also just to let you know I wasn't even mentioning those ideas for my own use. Just that extra options like this are good for other users to use. Something I would have done myself had I of done what your doing now. The front-end portion will be why I may use it (reputation bar). But this looks great. I believe many users will appreciate this when it is finished.

Great work
 
If you were being 100% serious which I'm currently unsure then it does work in this fashion. Apply to all other areas. Here's a one liner from my site:

HTML:
<xf:elseif is="{$user.reaction_score} >= 1200 OR {$user.message_count} >= 2500" /> <img src="/star-ranks-filled/fullstar-10.png" aria-tooltip title="1,200+ Ratings">
 
If you were being 100% serious which I'm currently unsure then it does work in this fashion. Apply to all other areas. Here's a one liner from my site:

HTML:
<xf:elseif is="{$user.reaction_score} >= 1200 OR {$user.message_count} >= 2500" /> <img src="/star-ranks-filled/fullstar-10.png" aria-tooltip title="1,200+ Ratings">

Hahaha :love:
This is simple and manuel! Users can not manage counts :)...

I did it with option but if we want to use "OR" operator we need to more option.
Because reaction_score can be different from user.message_count

200287
 
Hahaha :love:
This is simple and manuel! Users can not manage counts :)...

I did it with option but if we want to use "OR" operator we need to more option.
Because reaction_score can be different from user.message_count

View attachment 200287

If you don't want to add it you don't have to but there must be some solution. Possibly adding the ability to separate them by commas. This is delving into a part of the Xenforo option system I'm not personally used to but I believe it could be possible. You can intel that if you were to select the option simply separate the counts by commas. If you want the back-end to look neat then I can see why you wouldn't just go ahead with the extra option considering your not sure if I'd be the only one using both. However whatever you want to do is fine. I may just edit your template modification myself for my site if it requires me to do that. Though I've never used the comma method before I'm pretty sure there's an ability to do that.
 
Top Bottom