Help:Extension:SocialProfile/User stats

User statistics in SocialProfile mainly deal with user levels, which is a somewhat "gamified" way to keep your users engaged and contributing to the wiki. In practise this means that through the user levels system, users can be awarded a set amount of points for performing certain actions on-wiki.

A user's points and their corresponding "rank" are shown on their structured social user profile page as well as on various ranking pages like, which shows the users who have the most points on the wiki. The user rank and points shown on social profiles links to a help page; the help page name is controlled by the interface message, but this page is always assumed to exist in the help namespace. Disabling this link is currently not possible.

Additionally the rank and points may be shown in other extensions/locations, like comments on blog pages and user box pages as well as elsewhere, for example.

Configuring user levels
A wiki system administrator needs to define the value of  in the wiki's   file. The variable is an array of  mappings. For example:

To determine which namespaces earn the user social points, set the  variable to an array of one or more namespaces; usually at least the main namespace is what most sites will want to include, but it's possible a site has other namespaces they also want to include in the calculations.

The  variable also needs to be properly defined (see below) to hand out points automatically for actions.

Supported actions for which points can be awarded
The  after the human-readable statistic name refers to the value for , so to give out five (5) points for sending out a gift to another user, a system administrator would set   in the wiki's   file.


 * Making an edit
 * Voting
 * Commenting
 * Having your comment receive an upvote
 * Having your comment receive a downvote
 * Giving someone else's comment an upvote
 * Giving someone else's comment a downvote
 * Having someone else add you to their comment ignore list
 * Creating a blog post


 * Referring another user to the wiki so that they sign up using your referral link
 * Friending another user
 * Foeing another user
 * Receiving a gift (
 * Sending out a gift
 * Challenging someone or being challenged
 * Winning a challenge
 * Receiving a positive challenge rating
 * Receiving a negative challenge rating
 * Having the most points in a week
 * Having the most points in a month
 * Having the most points in total
 * Uploading your first custom avatar image


 * Creating a new picture game
 * Voting in an existing picture game
 * Voting in a poll


 * Answering a quiz question correctly
 * Answering a quiz question
 * Creating a new quiz


 * Submitting a link
 * Having a submitted link approved

Handing out points for edits made before SocialProfile was installed
To give users points for all the edits they made before the SocialProfile extension was installed, someone with the  user right should visit the   page. There's also a maintenance script that will perform the update from the command line:.

Weekly and monthly winners
It's possible to hand out a certain amount of points to users who have the most points in a week or in a month. However, this process cannot be fully automated just yet (see T212174) and it requires some manual interaction from a privileged user.

Assuming  and/or   are properly set in the wiki's   file, someone with the   user right needs to visit the   page.

Visiting this page allows the privileged user to generate the weekly or monthly point report; it will be a page in the project namespaces and the page name is controlled by the interface messages  and. The report will list a certain amount of users who've gained the most points in the period specified, and the user ranking #1 will be marked as the "winner" and awarded the amount of points specified in  or.