Extension talk:Contribution Scores

Jump to navigation Jump to search

About this board

Archive


Filtering out specific usernames

1
Tinss (talkcontribs)

Is there a way to filter out specific users from the query? I'd very much like to have the extension on my wiki, but I'm the largest contributor by far so that would be somewhat demotivating to other users ;)

Reply to "Filtering out specific usernames"

Configuration directive to only score edits from content namespaces?

2
Chrishel (talkcontribs)

For my wiki, we would like the contribution score to only measure edits to pages in content namespaces (i.e. defined in $wgContentNamespaces). If I created a patch to add this feature, would this be of enough broad interest to be merged into the master branch?

Tinss (talkcontribs)

I think it would be a very useful switch to have in LocalSettings.php.

Reply to "Configuration directive to only score edits from content namespaces?"

1.35 download is broken

2
Summary by Kghbln

Installation instructions were amended.

Jobgh (talkcontribs)

I tried installing this extension through the download link, and got a whole bunch of installation issues. The issue turned out to be missing files and folders. I had no extension.json and no /src folder.


I cloned from the GitHub repo, and it installed perfectly. I'm not familiar with the extension pipeline.

Is anyone else getting this issue?

Kghbln (talkcontribs)

The installation instructions were incorrect. I adapted them to also cater for MediaWiki 1.35 and earlier. Moreover I had a go at the whole page and hopefully made it easier to read an grasp. Anyhow, thanks for the pointer.

Usek2 (talkcontribs)

At the moment extension is used on nearly brand new Wiki with few articles.


Two articles have been created and edited with two different users however no score shows up.


Any ideas?

Camponez (talkcontribs)

I'm having the same problem with a brand new 1.33. After more than 100 edits, no scores at all.

Camponez (talkcontribs)
Camponez (talkcontribs)
Nick Parrott (talkcontribs)

Validated that the patched version camponez/mediawiki-extensions-ContributionScores is working fine on both 1.33 and 1.34


However, to download and install, you will need to git-clone via HTTPS, then unpack and relocate to your extension directory...

MusikAnimal (talkcontribs)
Timingliu (talkcontribs)

confrimed that the master branch is working, but you will have to download from the master branch, not the download extension link.

Reply to "Does not show any results"
87.48.23.112 (talkcontribs)

Would it be possible for a way to call 2 dates and get the score for between the 2 days

such as you would define 01012019 and 01022019 and it would show you the score for january

or define a start date and how many days ahead such as 01012019 as start date and then you an put in a days such as 31 and it would show all of january or you could do 14 and get the score for the first 14 days of january?

PhotographerTom (talkcontribs)

I agree.

Reply to "Feature request"

Critical: Does not work in 1.18

3
86.61.12.125 (talkcontribs)

With enabled $wgShowSQLErrors in LocalSettings.php:

A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was:


SELECT user_id, user_name, page_count, rev_count, page_count+SQRT(rev_count-page_count)*2 AS wiki_rank FROM user u JOIN ((SELECT rev_user, COUNT(DISTINCT rev_page) AS page_count, COUNT(rev_id) AS rev_count FROM revision WHERE rev_timestamp > '20120925235315' AND rev_user NOT IN (SELECT ipb_user FROM ipblocks WHERE ipb_user <> 0) AND rev_user NOT IN (SELECT ug_user FROM user_groups WHERE ug_group='bot') GROUP BY rev_user ORDER BY page_count DESC LIMIT 50) UNION (SELECT rev_user, COUNT(DISTINCT rev_page) AS page_count, COUNT(rev_id) AS rev_count FROM revision WHERE rev_timestamp > '20120925235315' AND rev_user NOT IN (SELECT ipb_user FROM ipblocks WHERE ipb_user <> 0) AND rev_user NOT IN (SELECT ug_user FROM user_groups WHERE ug_group='bot') GROUP BY rev_user ORDER BY rev_count DESC LIMIT 50)) s ON (user_id=rev_user) ORDER BY wiki_rank DESC LIMIT 50


from within function "". Database returned error "1: near "UNION": syntax error".

12.25.107.2 (talkcontribs)

I am getting the same thing in 1.24

A database query error has occurred. This may indicate a bug in the software.

  • Query:
    SELECT user_id, user_name, user_real_name, page_count, rev_count, page_count+SQRT(rev_count-page_count)*2 AS wiki_rank FROM user u JOIN ((SELECT rev_user, COUNT(DISTINCT rev_page) AS page_count, COUNT(rev_id) AS rev_count FROM revision WHERE rev_timestamp > '20151203135947' AND rev_user NOT IN (SELECT ipb_user FROM ipblocks WHERE ipb_user <> 0) AND rev_user NOT IN (SELECT ug_user FROM user_groups WHERE ug_group='bot') GROUP BY rev_user ORDER BY page_count DESC LIMIT 50) UNION (SELECT rev_user, COUNT(DISTINCT rev_page) AS page_count, COUNT(rev_id) AS rev_count FROM revision WHERE rev_timestamp > '20151203135947' AND rev_user NOT IN (SELECT ipb_user FROM ipblocks WHERE ipb_user <> 0) AND rev_user NOT IN (SELECT ug_user FROM user_groups WHERE ug_group='bot') GROUP BY rev_user ORDER BY rev_count DESC LIMIT 50)) s ON (user_id=rev_user) ORDER BY wiki_rank DESC LIMIT 50
  • Function: DatabaseBase::query
  • Error: 1 near "UNION": syntax error
2001:638:208:2301:E9CB:4927:E660:1F2C (talkcontribs)

For me the same in 1.32; do you maybe need a MySQL database instead of a SQLite database?

Reply to "Critical: Does not work in 1.18"

What does "unique pages edited" mean?

1
Sances tb (talkcontribs)

This phrase is mentioned at the first paragraph, The score is defined as (number of unique pages edited) + 2 * square root ((number of edits) - (number of unique pages edited)).--Sances tb (talk) 08:40, 11 June 2018 (UTC)

Reply to "What does "unique pages edited" mean?"
Stuartbman (talkcontribs)

Just in case anyone is looking for a way to hide columns when inserting the table into pages, this can be added into Common.css:

.contributionscores td:nth-child(2) {     display:none; } .contributionscores .header th:nth-child(2) {     display:none; }

Reply to "Hiding columns"
Berrygator (talkcontribs)

I want to be able to rank people by how many words they have contributed. People adding files and making small changes is distorting the rankings from showing the true Top Contributors on my Wiki. Is this possible?

Nemo bis (talkcontribs)

Would (approximate) characters be good enough?

192.91.75.30 (talkcontribs)

Yes, that would definitely be helpful!

Berrygator (talkcontribs)

That would work. Is there a way to do this? Thanks!

Fbstj (talkcontribs)

that would be so awesome

Reply to "Rank by Words Added"

change the way score is calculated

1
Rbirmann (talkcontribs)

Hi,

First of all, just wanted to say this extension is great.

We have installed it in our corporate wiki, as part of an internal program to motivate users to contribute to it. We would like, however, to give more points to users who create new articles as well as to differentiate longer, well thought, editions (such as a 5 paragraph long new section on an article) from shorter, quicker, less relevant changes (such as a one letter typo correction).

While thinking about this it came to me that maybe it is possible to allow users to create, on their LocalSettings.php a custom calculating function. I am no php expert myself, so please see the pseudo-code below:

on the extension itself:


efContributionScores_Render (...)
  
  for u in all_users do

    new_articles = countNewArticles(u)
    total_edits = countTotalEdits(u)
    unique_edits = countUniquePageEdits(u)
    other_data = countOtherRelevantData(u)
    (...)

    if function_exists "csCustomUserCalculation" then

      score[u] = csCustomUserCalculation (new_articles, total_edits, unique_edits, other_data)

    else

      score[u] = unique_edits + 2 * sqrt(total_edits - unique_edits)    // default behaviour
  
    end if

  end for

return score


Users would then be able to add a custom way of calculating scores to their LocalSettings, something like this (again in pseudo-code):


csCustomUserCalculation (new_articles, total_edits, unique_edits, ...)

    score = 10 * new_articles + total_edits

return score

Any thoughts???

Rbirmann (talk) 16:10, 22 January 2015 (UTC)

Reply to "change the way score is calculated"