Additional metrics for User Profiles. It's like experience in video games. Plugin is good for gamification of your board.
MIT License
Additional metrics for User Profiles. It's like experience in video games. Plugin is good for gamification of your board.
The Ranking calculator is a function, that should accept 2 parameters - settings and raw points. Settings could vary from one calculator to another. Calculator must return object with properties listed below:
rank
[Number] - user's rank, levelrankProgress
[Number] - amount of points on current levelrankTotal
[Number] - amount of points needed to level-uptotal
[Number] - raw amount of pointsExample: Default Function
Plugin populates both: Profile
and Topic
views. Search for points
property in corresponding entities.
Don't forget to add link on overview page, link should look like - /points
If you want points in Profile, do very basic changes to your theme:
Example: Persona Theme,
v4
, findtemplates/account/profile.tpl
, edit template in package directory -node_modules
Find block that is responsible for stats, and insert template where you want:
<div class="account-stats">
...
<!-- IMPORT partials/points_profile.tpl -->
...
</div>
Every post will have additional field: points
.
If you want utilize points calculation feature in topic view, you should use theme that supports such type of integration.