Extension:LegalLogin/pl
Appearance
This extension is professionally maintained by the WikiTeq team.
WikiTeq provides official support for MediaWiki LTS releases only. It may work with other MediaWiki releases.
LegalLogin Status wydania: stabilne |
|
---|---|
Realizacja | Aktywność użytkownika |
Opis | The LegalLogin extension requires acceptance of legal policies and correct answer on test questions during account creation and login. |
Autor(zy) | Pavel Astakhov (Pastakhovdyskusja) |
Opiekun(owie) | WikiTeq team |
Ostatnia wersja | 1.0 (Jan 2023) |
Polityka zgodności | Dla każdego wydania MediaWiki, które jest wydaniem wsparcia długoterminowego, istnieje odpowiednia gałąź w rozszerzeniu. |
MediaWiki | 1.35, 1.39 |
PHP | 7.4.3+ |
Zmiany w bazie danych | Tak |
Tabele | legallogin_accepted legallogin_logged |
Licencja | Licencja GNU General Public License 2.0 lub nowsza |
Pobieranie | README |
$wgLegalLoginPolicies, $wgLegalLoginQuestions, $wgLegalLoginExpiration, $wgLegalLoginInterval, $wgLegalLoginLogActions |
|
legallogin-view-log |
|
Quarterly downloads | 3 (Ranked 129th) |
Przetłumacz rozszerzenie LegalLogin jeżeli jest dostępne na translatewiki.net | |
Problemy | Otwarte zadania · Zgłoś błąd |
The LegalLogin extension requires acceptance of legal policies and correct answer on test questions during account creation and login.
This extension was created for WikiWorks.
Instalacja
- Pobierz i umieść plik(i) w katalogu o nazwie
LegalLogin
w folderzeextensions/
.
Developers and code contributors should install the extension from Git instead, using:cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/LegalLogin - Dodaj poniższy kod na dole twojego pliku LocalSettings.php :
wfLoadExtension( 'LegalLogin' );
- Zrobione – Przejdź do Special:Version na twojej wiki, aby sprawdzić czy rozszerzenie zostało pomyślnie zainstalowane.
Parametry konfiguracyjne
- $wgLegalLoginPolicies
- The list of legal policies that will require acceptance during account creation and login. Only pages in NS_MEDIAWIKI namespaces allowed as correct values.
- $wgLegalLoginQuestions
- The questions that users will need to answer correctly before login. Only pages in NS_MEDIAWIKI namespaces allowed as correct values.
- $wgLegalLoginExpiration
- Require acceptance of legal policies again after defined seconds.
- $wgLegalLoginInterval
- Require acceptance of legal policies again after defined number of logins.
- $wgLegalLoginLogActions
- Save LegalLogin actions like acceptance of the policies to Special:Log.
Przykład:
$wgLegalLoginPolicies = [
'Terms and Conditions of Use' => [ // text from MediaWiki:Terms and Conditions of Use, title is the same
'require scrolling' => true, // user must scroll it to down or open in popup windows before accept
],
'Privacy policy' => [ // text from MediaWiki:Privacy policy
'captionmsg' => 'privacy-policy-caption', // MediaWiki:Privacy-policy-caption // caption of the policy
],
];
$wgLegalLoginQuestions = [
'I hate this site' => [
'answer' => false,
'help' => 'This is a hint',
],
'I love this site' => [
'answer' => true,
]
];
Uprawnienia użytkownika
- legallogin-view-log
- Allow to view LegalLogin actions like acceptance of the policies in "Special:Log"
Categories:
- Extensions by WikiTeq/pl
- Stable extensions/pl
- User activity extensions/pl
- GPL licensed extensions/pl
- Extensions in Wikimedia version control/pl
- Extensions which add rights/pl
- ApiBeforeMain extensions/pl
- AuthChangeFormFields extensions/pl
- BeforePageDisplay extensions/pl
- PageSaveComplete extensions/pl
- LoadExtensionSchemaUpdates extensions/pl
- All extensions/pl