User "Raymond" posted a comment on MediaWiki.r91854. Full URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/91854#c19422 Commit summary:
SocialProfile: add a special page, Special:GenerateTopUsersReport, to generate the report of the users who earned the most points during the past week or month. This is the only way to update the points_winner_weekly and points_winner_monthly columns in the user_stats table. This requires that the user_points_archive, user_points_monthly and user_points_weekly tables exist in the database; SocialProfile does not yet ship with the schemas for those tables, but I'll try to fix that soon-ish. To access Special:GenerateTopUsersReport, you need the generatetopusersreport user right, which isn't given to any user group by default. Code from http://trac.wikia-code.com/browser/wikia/trunk-1.15/extensions/wikia/UserStats/SpecialGenerateTopUserReport.php with tweaks and cleanup by me Comment: I do not know this extension, so take it as suggestions only: * 'user-stats-weekly-win-congratulations' and others needs PLURAL support for "$2 extra points" * Numbers should be run through $wgLang->formatNum() or $wgContLang->formatNum() * Add <code>$wgAvailableRights[] = 'generatetopusersreport';</code> * Add a special page alias file _______________________________________________ MediaWiki-CodeReview mailing list mediawiki-coderev...@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview