From d1e69a4618289da3e790a5e4fb3a414e8ca3fd6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C5=A9=20Minh=20Nguy=C3=AAn?= Date: Sun, 9 Jun 2024 13:00:13 +0700 Subject: [PATCH 1/5] Update footer icon settings so that this will fit the mobile Citizen skin --- LocalSettings.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/LocalSettings.php b/LocalSettings.php index 172afbe03d..7d0ee3aebd 100644 --- a/LocalSettings.php +++ b/LocalSettings.php @@ -1617,7 +1617,7 @@ ], ], 'lhmnwiki' => [ - 'poweredby' => [ + 'hostedby' => [ 'songnguxyz' => [ 'src' => 'https://static.miraheze.org/lhmnwiki/5/58/Footer.SN.xyz.svg', 'url' => 'https://songngu.xyz', @@ -1632,6 +1632,8 @@ "height" => "60", "width" => "60" ], + ], + 'poweredby' => [ 'mediawiki' => [ 'src' => 'https://static.miraheze.org/lhmnwiki/9/9b/MediaWiki.svg', 'url' => 'https://www.mediawiki.org', From e8377f0d4b58de045fc34412ebab7d3d50814e2f Mon Sep 17 00:00:00 2001 From: Pisces Date: Wed, 14 Aug 2024 00:11:52 +0700 Subject: [PATCH 2/5] T12394: Install UserProfileV2 --- LocalSettings.php | 11 +++++++++++ ManageWikiExtensions.php | 16 ++++++++++++++++ ManageWikiSettings.php | 28 ++++++++++++++++++++++++++++ 3 files changed, 55 insertions(+) diff --git a/LocalSettings.php b/LocalSettings.php index a8d4e72139..60e63adf10 100644 --- a/LocalSettings.php +++ b/LocalSettings.php @@ -5798,6 +5798,17 @@ 'wgOnlyUserEditUserPage' => [ 'ext-UserPageEditProtection' => true, ], + + // UserProfileV2 + 'wgUserProfileV2Color' => [ + 'default' => '#E1E1E1', + ], + 'wgUserProfileV2AvatarBorderRadius' => [ + 'default' => '50%', + ], + 'wgUserProfileV2UseGlobalAvatars' => [ + 'default' => false, + ], // Varnish 'wgUseCdn' => [ diff --git a/ManageWikiExtensions.php b/ManageWikiExtensions.php index 5c339b1eed..b0e7d9b704 100644 --- a/ManageWikiExtensions.php +++ b/ManageWikiExtensions.php @@ -3339,6 +3339,22 @@ ], 'section' => 'other', ], + 'userprofilev2' => [ + 'name' => 'UserProfileV2', + 'linkPage' => 'https://www.mediawiki.org/wiki/Special:MyLanguage/Extension:UserProfileV2', + 'conflicts' => 'socialprofile', + 'requires' => [], + 'install' => [ + 'permissions' => [ + 'sysop' => [ + 'permissions' => [ + 'profilemanager', + ], + ], + ], + ], + 'section' => 'other', + ], 'variables' => [ 'name' => 'Variables', 'linkPage' => 'https://www.mediawiki.org/wiki/Special:MyLanguage/Extension:Variables', diff --git a/ManageWikiSettings.php b/ManageWikiSettings.php index e99db7546e..36566cd74b 100644 --- a/ManageWikiSettings.php +++ b/ManageWikiSettings.php @@ -3004,6 +3004,15 @@ 'help' => 'Exclude bots users from the reporting?', 'requires' => [], ], + 'wgUserProfileV2UseGlobalAvatars' => [ + 'name' => 'UserProfileV2 Use Global Avatar', + 'from' => 'userprofilev2', + 'type' => 'check', + 'overridedefault' => false, + 'section' => 'socialtools', + 'help' => 'Whether or not to signal that global avatars are being used in this wiki.', + 'requires' => [], + ], // Styling (E.G skins/logos etc) 'wgDefaultSkin' => [ @@ -3886,6 +3895,25 @@ 'help' => 'Whether or not to show the normal MediaWiki external link icon when using the Chameleon skin.', 'requires' => [], ], + 'egUserProfileV2Color' => [ + 'name' => 'UserProfileV2 Accent Color', + 'from' => 'userprofilev2', + 'type' => 'text', + 'overridedefault' => '#E1E1E1', + 'section' => 'styling', + 'help' => 'The accent/secondary color used for UserProfileV2. This is used as a background colour for the user group tags and the avatar edit button.', + 'requires' => [], + ], + 'egUserProfileV2AvatarBorderRadius' => [ + 'name' => 'UserProfileV2 Avatar Border-radius', + 'from' => 'userprofilev2', + 'type' => 'text', + 'overridedefault' => "50%", + 'section' => 'styling', + 'help' => 'The border-radius applied to the UserProfileV2 avatar.', + 'requires' => [], + ], + // Wikibase 'wmgWikibaseRepoUrl' => [ From 1e9ed9f616b0ac0fc48f7217e57a30beef38b2e1 Mon Sep 17 00:00:00 2001 From: Pisces Date: Thu, 15 Aug 2024 17:17:44 +0700 Subject: [PATCH 3/5] wg, not eg value in LocalSettings are suppose to be variables --- ManageWikiSettings.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ManageWikiSettings.php b/ManageWikiSettings.php index 36566cd74b..74774ab502 100644 --- a/ManageWikiSettings.php +++ b/ManageWikiSettings.php @@ -3895,7 +3895,7 @@ 'help' => 'Whether or not to show the normal MediaWiki external link icon when using the Chameleon skin.', 'requires' => [], ], - 'egUserProfileV2Color' => [ + 'wgUserProfileV2Color' => [ 'name' => 'UserProfileV2 Accent Color', 'from' => 'userprofilev2', 'type' => 'text', @@ -3904,7 +3904,7 @@ 'help' => 'The accent/secondary color used for UserProfileV2. This is used as a background colour for the user group tags and the avatar edit button.', 'requires' => [], ], - 'egUserProfileV2AvatarBorderRadius' => [ + 'wgUserProfileV2AvatarBorderRadius' => [ 'name' => 'UserProfileV2 Avatar Border-radius', 'from' => 'userprofilev2', 'type' => 'text', From 109f6c7176813ac4462e72bc97d0c11c4180c8d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C5=A9=20Minh=20Nguy=C3=AAn?= Date: Mon, 30 Sep 2024 10:32:38 +0700 Subject: [PATCH 4/5] T12466: Remove global avatar setting MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Vũ Minh Nguyên --- ManageWikiSettings.php | 9 --------- 1 file changed, 9 deletions(-) diff --git a/ManageWikiSettings.php b/ManageWikiSettings.php index 74774ab502..40a59c233c 100644 --- a/ManageWikiSettings.php +++ b/ManageWikiSettings.php @@ -3004,15 +3004,6 @@ 'help' => 'Exclude bots users from the reporting?', 'requires' => [], ], - 'wgUserProfileV2UseGlobalAvatars' => [ - 'name' => 'UserProfileV2 Use Global Avatar', - 'from' => 'userprofilev2', - 'type' => 'check', - 'overridedefault' => false, - 'section' => 'socialtools', - 'help' => 'Whether or not to signal that global avatars are being used in this wiki.', - 'requires' => [], - ], // Styling (E.G skins/logos etc) 'wgDefaultSkin' => [ From c703b797fdbf8a1357d81bc4681109ec742619e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C5=A9=20Minh=20Nguy=C3=AAn?= Date: Mon, 30 Sep 2024 10:48:14 +0700 Subject: [PATCH 5/5] Update LocalSettings.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We already have it Signed-off-by: Vũ Minh Nguyên --- LocalSettings.php | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/LocalSettings.php b/LocalSettings.php index 60e63adf10..a8d4e72139 100644 --- a/LocalSettings.php +++ b/LocalSettings.php @@ -5798,17 +5798,6 @@ 'wgOnlyUserEditUserPage' => [ 'ext-UserPageEditProtection' => true, ], - - // UserProfileV2 - 'wgUserProfileV2Color' => [ - 'default' => '#E1E1E1', - ], - 'wgUserProfileV2AvatarBorderRadius' => [ - 'default' => '50%', - ], - 'wgUserProfileV2UseGlobalAvatars' => [ - 'default' => false, - ], // Varnish 'wgUseCdn' => [