Zenphoto Single-Login

    I have created this hack to cater to people who wish to provide a custom login for users which will take them directly to the albums they are allowed to view and/or administrate. This need was suggested on the forums in the thread Linking my login form to ZenPhoto.

    The hack assumes that you have created admin users with the appropriate rights and albums to manage. Admin users with User Administration rights are directed to the gallery after they log in. All others are directed to the first album in their managed album list.

    Place this script in the root folder of your zenphoto installation. If you installed in 'zenphoto' this file becomes zenphoto/single_login.php. For the page that you tell your users to access create a script that contains only the following:

    <?php header("Location: zenphoto/single_login.php" ); ?>
    The Script is bare-bones. You will want to format and theme it to go with your site.

    This tool has been abandoned by the ZenphotoCMS team or its original developer and we provide it for archival purposes on our "unsuppported-misc" GitHub repository "as is". .

    Info & download (GitHub)

    For questions and comments please use the forum or discuss on the social networks.

    More by author:

    Related items