zenphoto forums » Feature Requests

Password Protected Gallery Login Form

(13 posts)
  1. terriann

    Apprentice
    Joined: Oct '08
    Posts: 3

    I think it would be great to separate the form for gallery logins to a template file rather than automatically created. I'd like to be able to customize my form and add a message to my clients including a graphic about where they get their username / password.

    Does anyone else think this would be a valuable addition or modification?

    Posted 4 years ago #
  2. Zenphoto development team
    sbillard

    Chief Developer
    Joined: May '07
    Posts: 9,768

    There is no reason why you cannot do this on your own. Just create a form of your desire including the components needed for the login.

    Don't forget to read the Forum rules and usage resources
    Posted 4 years ago #
  3. terriann

    Apprentice
    Joined: Oct '08
    Posts: 3

    I was referring more to the form that automatically pops up for a protected album than a form that I would just link to or use on an existing page or template.

    Posted 4 years ago #
  4. Zenphoto development team
    sbillard

    Chief Developer
    Joined: May '07
    Posts: 9,768

    Ok, I understand, but still you can do this yourself--just a little bit of work.

    insert

    if (checkforPassword(true) {
     <link to or load your form>
    }

    at the front of your theme scripts.

    Don't forget to read the Forum rules and usage resources
    Posted 4 years ago #
  5. terriann

    Apprentice
    Joined: Oct '08
    Posts: 3

    Oh can't believe I missed that! I'll have to give that a whirl later tonight, thanks!

    Posted 4 years ago #
  6. imelik

    Junior
    Joined: Sep '09
    Posts: 6

    Hi. Where i find a default album password form. In which file? I need replace "The page you are trying to view is password protected" and "password" words. Thank you

    Posted 3 years ago #
  7. Zenphoto development team
    sbillard

    Chief Developer
    Joined: May '07
    Posts: 9,768

    If you are running the current version of zenphoto that form is either part of your theme (for the ones distributed with zenphoto). If you are not using one of the standard themes, copy the password.php form from them and modify it to your desire.

    Don't forget to read the Forum rules and usage resources
    Posted 3 years ago #
  8. imelik

    Junior
    Joined: Sep '09
    Posts: 6

    I use default dark theme. password.php include only
    <div id="padbox">
    <?php checkforPassword(); ?>
    </div>

    beside album name and footer.
    No form. Where i find checkforPassword()function ?
    Thank you

    Posted 3 years ago #
  9. Zenphoto development team
    acrylian

    Developer
    Joined: Jul '07
    Posts: 13,359

    And a few lines above is the line " "The page you are trying to view is password protected".

    Don't forget to read the Forum rules and usage resources
    Posted 3 years ago #
  10. imelik

    Junior
    Joined: Sep '09
    Posts: 6

    Show me.

    <body>
    <div id="outer"><div id="headerpic">
    <div id="header">
    <div id="headercontent">
    <h1>Mina , mu pere ja hobid</h1>
    </div>
    </div>
    </div>
    <div id="menu">

    </div></div>
    <div id="main">
    <div id="gallerytitle">
    <h2>
    <span>
    <?php printHomeLink('', ' | '); ?>" title="<?php echo gettext('Gallery Index'); ?>"><?php echo getGalleryTitle();?>
    </span> | <?php echo gettext("Sisesta parool"); ?>
    </h2>
    </div>

    <div id="padbox">
    <?php checkforPassword(); ?>
    </div>

    </div>

    <div id="credit">
    <?php printZenphotoLink(); ?>
    </div>

    <?php printAdminToolbox(); ?>

    </body>

    Posted 3 years ago #
  11. Zenphoto development team
    acrylian

    Developer
    Joined: Jul '07
    Posts: 13,359

    You already replace that sentence with "Sisesta parool" it seems.

    Don't forget to read the Forum rules and usage resources
    Posted 3 years ago #
  12. Zenphoto development team
    sbillard

    Chief Developer
    Joined: May '07
    Posts: 9,768

    You should invest in a tool that will allow you to search files. That is the easiest way to find function code.

    Don't forget to read the Forum rules and usage resources
    Posted 3 years ago #
  13. imelik

    Junior
    Joined: Sep '09
    Posts: 6

    1."Sisesta parool" is replacement for "A password is required to access this page".

    2."You should invest in a tool that will allow you to search files". It seems like a only option.

    I found it. Form is in template-functions.php

    Posted 3 years ago #

RSS feed for this topic

Reply

You must log in to post.