Password Protected Gallery Login Form

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?

Comments

  • 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.
  • 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.
  • Ok, I understand, but still you can do this yourself--just a little bit of work.

    insert
    `
    if (checkforPassword(true) {

    }
    `
    at the front of your theme scripts.
  • Oh can't believe I missed that! I'll have to give that a whirl later tonight, thanks!
  • 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
  • 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.
  • 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
  • acrylian Administrator, Developer
    And a few lines above is the line " "The page you are trying to view is password protected".
  • 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">

      <li >Albumid
      <li >Minust
      <li >Kontakt
      <li >Blogi
    </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>
  • acrylian Administrator, Developer
    You already replace that sentence with "Sisesta parool" it seems.
  • You should invest in a tool that will allow you to search files. That is the easiest way to find function code.
  • 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
Sign In or Register to comment.