Skip to content
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

Open
Tracked by #5708
teolemon opened this issue Feb 22, 2014 · 6 comments
Open
Tracked by #5708
Labels
Fixed ? This issue might have been fixed. We can close them once we verify that they have. pathway-to-contribution Signup Page wiki

Comments

@teolemon
Copy link
Member

teolemon commented Feb 22, 2014

What

We would be able to convert people landing on the wiki by chance into contributors

Part of

@teolemon teolemon added this to the Usability milestone May 3, 2015
@teolemon teolemon added the ✨ Feature Features or enhancements to Open Food Facts server label Feb 18, 2016
@VaiTon VaiTon removed this from the Usability milestone Jun 23, 2019
@teolemon teolemon added the wiki label Jan 27, 2020
@CharlesNepote
Copy link
Member

Where would you like it to be?

  1. On the upper part, nex to "Log in"? (seems difficult)
    image

  2. On the side menu?
    image

@CharlesNepote
Copy link
Member

CharlesNepote commented May 14, 2020

Ideally:

  1. the user land on Open Food Facts wiki
  2. he has to see clear links to Open Food Facts website
  3. he has to be able to find a simple way to create an account: to modify the wiki or to contribute to Open Food Facts

User has to see clear links to Open Food Facts database
[x] Added a "Open Food Facts galaxy" section in the left-bar menu

Remove Log in link or convert it to Login Information
It seems to be possible with PersonnalUrls hook:

[x] Finally, I've done it using the CSS, adding #pt-login { display: none; }.

Add link to login
[x] I have coded a little hook for logged out users, that show a link to login, see top of the left menu bar (you musn't be logged in to see it): https://wiki.openfoodfacts.org/Main_Page

@CharlesNepote
Copy link
Member

@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;
}
?>

@CharlesNepote CharlesNepote added the Fixed ? This issue might have been fixed. We can close them once we verify that they have. label May 15, 2020
stephanegigandet pushed a commit that referenced this issue Dec 26, 2020
@jolesh
Copy link
Contributor

jolesh commented Jan 13, 2021

I think we can close the issue, I just tested it and it seems good maybe a bit small but okay

@stephanegigandet
Copy link
Contributor

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).

@stephanegigandet
Copy link
Contributor

Current status:

image

@teolemon teolemon removed the ✨ Feature Features or enhancements to Open Food Facts server label Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fixed ? This issue might have been fixed. We can close them once we verify that they have. pathway-to-contribution Signup Page wiki
Projects
Status: To discuss and validate
Development

No branches or pull requests

5 participants