diff --git a/LocalSettings.php b/LocalSettings.php index 311ae1dbbd..782bf0b602 100644 --- a/LocalSettings.php +++ b/LocalSettings.php @@ -5573,6 +5573,26 @@ 'quiz_points' => 0, 'quiz_created' => 0, ], + 'lhmnwiki' => [ + 'edit' => 50, + 'vote' => 0, + 'comment' => 0, + 'comment_plus' => 0, + 'comment_ignored' => 0, + 'opinions_created' => 0, + 'opinions_pub' => 0, + 'referral_complete' => 0, + 'friend' => 0, + 'foe' => 0, + 'gift_rec' => 100, + 'gift_sent' => 0, + 'points_winner_weekly' => 200, + 'points_winner_monthly' => 500, + 'user_image' => 1000, + 'poll_vote' => 10, + 'quiz_points' => 1, + 'quiz_created' => 5, + ], ], 'wgFriendingEnabled' => [ 'default' => true, diff --git a/LocalWiki.php b/LocalWiki.php index 1e5d5854a4..366586b6f6 100644 --- a/LocalWiki.php +++ b/LocalWiki.php @@ -311,6 +311,7 @@ function onBeforePageDisplay( OutputPage $outputPage ) { break; case 'lhmnwiki': + // UploadWizard configurations $wgUploadWizardConfig = [ 'tutorial' => [ 'skip' => false, @@ -328,21 +329,42 @@ function onBeforePageDisplay( OutputPage $outputPage ) { 'en' => 'English' ], 'licenses' => [ + 'cc-by-sa-4.0' => [ + 'msg' => 'mwe-upwiz-license-cc-by-sa-4.0-text', + 'msgExplain' => 'mwe-upwiz-source-ownwork-cc-by-sa-4.0-explain', + 'icons' => [ 'cc-by', 'cc-sa' ], + 'url' => '//creativecommons.org/licenses/by-sa/4.0/', + 'languageCodePrefix' => 'deed.', + 'availableLanguages' => 'en' + ], + 'cc-zero' => [ + 'msg' => 'mwe-upwiz-license-cc-zero-text', + 'msgExplain' => 'mwe-upwiz-source-ownwork-cc-zero-explain', + 'icons' => [ 'cc-zero' ], + 'url' => '//creativecommons.org/publicdomain/zero/1.0/', + 'languageCodePrefix' => 'deed.', + 'availableLanguages' => 'en' + ], 'snxyz' => [ 'msg' => 'mwe-upwiz-license-snxyz', 'msgExplain' => 'mwe-upwiz-license-snxyz-explain', - 'url' => '//songngu.xyz/license', - 'template' => 'SNXYZ' + 'url' => '//songngu.xyz/', + 'template' => 'SNXYZ', + 'languageCodePrefix' => 'licenses.', + 'availableLanguages' => 'vi' ], 'lhmn' => [ 'msg' => 'mwe-upwiz-license-lhmn', - 'url' => '//facebook.com/lophocmatngu', - 'template' => 'LHMN' + 'msgExplain' => 'mwe-upwiz-license-lhmn-explain', + 'url' => '//go.lophocmatngu.wiki/', + 'template' => 'LHMN', + 'languageCodePrefix' => 'licenses.', + 'availableLanguages' => 'vi' ] ], 'licensing' => [ - 'defaultType' => 'ownwork', - 'ownWorkDefault' => 'notown', + 'defaultType' => 'thirdParty', + 'ownWorkDefault' => 'choices', 'ownWork' => [ 'type' => 'or', 'template' => 'self', @@ -380,7 +402,29 @@ function onBeforePageDisplay( OutputPage $outputPage ) { ] ] ]; - + + // SocialProfile/UserStats configurations + require_once( "$IP/extensions/SocialProfile/UserStats/EditCount.php" ); + // User level definitions + $wgUserLevels = [ + 'Lớp lá' => 0, + 'Mầm non' => 1200, + 'Lớp 1' => 5000, + 'Lớp 2' => 10000, + 'Lớp 3' => 20000, + 'Lớp 4' => 35000, + 'Lớp 5' => 50000, + 'Lớp 6' => 75000, + 'Lớp 7' => 100000, + 'Lớp 8' => 150000, + 'Lớp 9' => 250000, + 'Lớp 10' => 350000, + 'Lớp 11' => 500000, + 'Lớp 12' => 650000, + 'Đại học' => 800000, + 'Cao học' => 1000000 + ]; + break; case 'libertygamewiki': $wgHooks['BeforePageDisplay'][] = 'onBeforePageDisplay';