• Hi,

    first of all thank you for the great work.

    I ran a piwigo gallery v.2.5 and a wordpress v.3.5.1 only for private
    users. The problem is, that it is not possible to give a login
    and a pwd via the piwigopress plugin to the gallery.

    Is it possible in the firts step to send a login and a pwd in the
    3 method in PiwigoPress_get.php with an user defined in piwigo
    (e.g. user:wp_pwg; password:wp_pwg_pwd) to login and get the photos ??

    Only to ad
    @curl_setopt($ch, CURLOPT_POSTFIELDS, "username=" . "wp_pwg" . "&password=" . "wp_pwg_pwd"); dont work.

    See also A Method To View Private Photos in WordPress using PiwigoPress
    in the piwigo forum.

    Many thanks

    mfG Matthias

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author vpiwigo

    (@vpiwigo)

    Nice idea.

    2nd priority…
    Solving RSS issue first.
    Thanks.
    Vince

    Plugin Author vpiwigo

    (@vpiwigo)

    RSS issue solved by PiwigoPress 2.23

    Login is now on study.
    ;o)

    Plugin Author vpiwigo

    (@vpiwigo)

    1 – Even if WordPress and Piwigo galleries are in private access, never forget that the “PiwigoPress username” in your galleries should stay a simple user (not an admin) for security reasons. There is a risk by saving a Piwigo password within WordPress table, the password becomes readable by any plugin.

    2 – Knowing above risk and limiting the access rights to simple user accesses, we can probably add a connection system (I mean feasible only).
    But how many people could be interested in such enhancement ?
    Not a lot.

    3 – What’s happen if one member has less access than the “PiwigoPress username” ???
    Link to not authorized access page in Piwigo.

    Let me think about something else
    (maybe there is another solution in your case)…

    Plugin Author vpiwigo

    (@vpiwigo)

    I red “See also A Method To View Private Photos in WordPress using PiwigoPress” in the piwigo forum. – Thanks for this useful link.
    This is a draft version, please don’t use it.

    Now back on purpose.
    Not sure if it works but if we used the same authentication protocol in WP and in PWG, it might solve.
    E.g.: Authentication through Twitter or FBK
    If each blog visitor is connected by his Twitter account,
    and if each access to the gallery is as well connected by his Twitter account… Maybe all access will be limited by the connection id and the granted access in Piwigo.

    Another idea is to share the connection between WP and PWG (same user/password), at the connection time to WP add a hook to be connected to the gallery. But remember that PiwigoPress gave you the opportunity to access several galleries on several URLs and not only your Piwigo gallery.

    Just an idea of what OAuth could provide in the future or never.

    For the time being, I will try to build and acceptable private access and analyse further consequences on the code.
    Consequences on the widget and/or the shortcode.

    Thread Starter schmimat

    (@schmimat)

    In piwigo there is a config option:
    $conf['guest_access'] = false;
    with this option there will be no photos shown unless you are logged in
    (but i think you now this option ;-))

    At the moment I create a generic user (user can only see photos; no change of pwd, tags, photos ..) called wp_pwg with a password.

    A solution for the problem with the several galleries maybe is solved in the piwigomedia plugin. In this plugin it is possible to pre define several URLS in the admin page of the plugin. In this admin definition it should also be possible to set the user login and password and store it in a config file. (e.g. the password of the database login also saved in the wp-config.php file)

    Another topic would be the widget. I have not found a solution to hide the sidebar befor someone logged in. (I did not search yet)

    mfG Matthias

    Plugin Author vpiwigo

    (@vpiwigo)

    Hi,

    Just a question, if I implement a such enhancement,
    do you prefer to get it first on sidebar widget or with shortcode ?

    Thanks.
    Vince

    Thread Starter schmimat

    (@schmimat)

    Hi,

    Good morning and have nice day.

    I prefere to get it first with shortcode, because I have a small public album for the sidbar widget. So it would be nice to have the private photos in the blog. For the first solution it’s also possible if i can’t drag and drop the photos to create the shortcut

    Many thanks

    mfG Matthias

    Plugin Author vpiwigo

    (@vpiwigo)

    Hi,

    For the first solution it’s also possible if i can’t drag and drop the photos to create the shortcut
    Please clarify…

    For the time being, I will try to build and acceptable private access and analyse further consequences on the code on shortcode only.

    Don’t forget several points:
    – you can be connected to several galleries with PiwigoPress.
    – One connection per shortcode.
    – One connection per widget usage.
    – Private access is going to add authentication process to each connection.

    That means a longer response time with private access for each Piwigopress usage, example for a main page:
    – Public access by a widget (1 connection)
    – Private access by a second widget usage (1 connection including authentication, remember widget for private access not yet planned, need further studies)
    – 5 shortcode = 5 connections (with or without authentication)
    or more…

    Shortcode with private access is on top of the list.
    ;o)
    Vince

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Login to private gallerys’ is closed to new replies.