MyBB Community Forums

Full Version: Postbit reputation displayed as percentage
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

I would like to ask if it is possible to change {$post['replink']} in postbit_author_user to another variable that shows the reputation as a percentage of (positive / total reputation)*100 of the respective user. I could do it myself but i don't know where to get the "positive" and "total" reputation variables from.

Thank you.
Hello,

I was unable to find the required variable that shows "positive reputation" so that i may use it in the postbit_reputation template for turning Reputation into a percentage rather than a number.
Is there a way to use such a variable in this template ?

Thank you.
The sum of positive reputation is not saved anywhere. You have to query it from mybb_reputation table.

Total reputation is $post['reputation']