-
-
Notifications
You must be signed in to change notification settings - Fork 384
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The wiki should show a link to let you create your OpenFoodFacts account #6
Comments
Ideally:
User has to see clear links to Open Food Facts database Remove Log in link or convert it to Login Information
[x] Finally, I've done it using the CSS, adding Add link to login |
@teolemon can we close the bug? As a reminder, code to add login link in the left menu bar (to be added to LocalSettings.php) <?php
// code adding a 'navigation' sidebar block with a login link for logged out users.
// see: https://www.mediawiki.org/wiki/Manual:Interface/Sidebar#Change_sidebar_content_when_logged_in_(PHP)
$wgHooks['SkinBuildSidebar'][] = 'lfHideSidebar';
function lfHideSidebar( $skin, &$bar ) {
global $wgUser;
// Add login link for anonymous users
if ( !$wgUser->isLoggedIn() ) {
$bar['navigation'][] = [
'text' => wfMessage( 'login' ) -> text(),
'href' => "https://world.openfoodfacts.org/",
'id' => 'n-login',
'active' => '',
];
}
return true;
}
?> |
I think we can close the issue, I just tested it and it seems good maybe a bit small but okay |
There's no way to logout from the wiki though. It's also very unclear that "Connection" means that you need to create and use the OFF account. Can we add a message like "Create an user and login to Open Food Facts to be identified on the wiki" when not logged in? And a button to logout? (if I'm logged out of OFF, I'm still logged on the wiki it seems). |
What
We would be able to convert people landing on the wiki by chance into contributors
Part of
The text was updated successfully, but these errors were encountered: