Is possible to mark new/updated album in gallery?

May by an icon for new albums, that will be visible certain number of days after album creation. And another icon for updated albums (photo or subalbum add/delete inside). Sometimes my guest have trouble with recognize that.

Comments

  • acrylian Administrator, Developer
    How about searching a little on our site/forum before asking?:
    http://www.zenphoto.org/2009/12/flag_thumbnail/
    http://www.zenphoto.org/2009/12/flag_thumbnail/
  • zdzana Member
    Thanks, I found this plugin before, but it seems to have no any configuration options and still nothing are displayed on my newly created album thumbnails. I use default skin/theme.
  • acrylian Administrator, Developer
    It has several options but you might have to adjust your theme's css so it works correctly.
  • zdzana Member
    In plugin source I found only action to mark thumbnails with password_protected or not_visible css class. Nothing to do with creation date.
  • acrylian Administrator, Developer
    A look at the plugin options on the backend will tell you that there are exactly 9 options, one is about that range in days for flagging.
  • zdzana Member
    Are we talk about same plugin? flag_thumbnail.php in zp_extensions folder? Where exactly is that configuration?
  • You will need to download the plugin form the WEB site. The one in the zp_extensions folder will be removed on 1.3.0
  • zdzana Member
    Yes, i know that. However, I can not get the effect by which I mean, it seems that the plugin 'flag_thumbnail' does not mark new albums. Description on the site indicates that it has functionality of a 'flag_thumb_as_new' plugin, but in my opinion this is not true.
  • Then in my opinion you have done something wrong.

    You might start by making sure you have one and only one of the plugins and that it is located in the plugins folder (NOT the zp_extensions folder!)
  • zdzana Member
    I have installed gallery in version 1.2.9, without modification, and use the default theme. In the plugins folder there are only 4 empty folders (effenberger_effects, flvplayer, gd_fonts, watermarks) and no other files. Plugin flag_thumbnail is located in the zp-core/zp-extenstions and from this folder is run (verified by modifying the and observing the results). Below the code of this plugin from my installation, please to indicate which line deals with the imposition of an icon for the new album.

    `
    <?php
    /**
    *
    * Apply a lock image over thumbnails of password protected albums
    *
    * To use simply enable the plugin.
    *
    * @author Stephen Billard (sbillard)
    * @package plugins
    */
    $plugin_description = sprintf(gettext('Apply <img src="%1$s/images/lock.png" alt=""/> over thumbnails of password protected albums and over thumbnails of not published albums and not visible images.'),WEBPATH.'/'.ZENFOLDER);
    $plugin_author = "Stephen Billard (sbillard)";
    $plugin_version = '1.2.9';
    $plugin_URL = "http://www.zenphoto.org/documentation/plugins/_".PLUGIN_FOLDER."---flag_thumbnail.php.html";

    zp_register_filter('standard_image_thumb_html', 'flag_thumbnail_std_image_thumbs');
    zp_register_filter('standard_album_thumb_html', 'flag_thumbnail_std_album_thumbs', 1);
    zp_register_filter('custom_album_thumb_html', 'flag_thumbnail_custom_album_thumbs', 1);
    zp_register_filter('custom_image_html', 'flag_thumbnail_custom_images', 1);

    function flag_thumbnail_insert_class($html) {
    $i = strpos($html, 'class=');
    if ($i !== false) {
    $img = '';
    if (strpos($html, 'password_protected', $i+7) !== false) {
    $img = WEBPATH.'/'.ZENFOLDER.'/images/lock.png';
    } else if (strpos($html, 'not_visible', $i+7) !== false) {
    $img = WEBPATH.'/'.ZENFOLDER.'/images/action.png';
    }
    if ($img) {
    $html = ''."\n".
    $html."\n".
    ''."\n".''."\n";
    }
    }
    return $html;
    }

    function flag_thumbnail_custom_images($html, $thumbstandin) {
    if ($thumbstandin) {
    $html = flag_thumbnail_insert_class($html);
    }
    return $html;
    }
    function flag_thumbnail_std_image_thumbs($html) {
    $html = flag_thumbnail_insert_class($html);
    return $html;
    }
    function flag_thumbnail_std_album_thumbs($html) {
    $html = flag_thumbnail_insert_class($html);
    return $html;
    }
    function flag_thumbnail_custom_album_thumbs($html) {
    $html = flag_thumbnail_insert_class($html);
    return $html;
    }

    ?>
    `
  • As sbillard said above and the plugin's description states, this plugin is not the one that you want. The plugin that you want (of the same name) can be found from acrylian's link above. Unzip that plugin and place it in the root `plugins` folder. Enable it, set up the options, and it should work like a charm. :)
  • did you not read
    You will need to download the plugin form the WEB site. The one in the zp_extensions folder will be removed on 1.3.0
  • zdzana Member
    @kagutsuchi

    From acrilian link plugin description:
    The plugin is still included in the 1.2.9 release but afterwards will be not officially supported anymore.

    So is the same or not?

    I downloaded the plugin and it is different from the 1.2.9 package, so a description of the plugin that it is included in version 1.2.9 is misleading and false. Whatever the case, thank you for your help, downloaded version seems to meet my needs. So sorry and thank you.
  • The description of the 1.2.9 plugin describes what it does, which is different from what the one you downloaded does. They are not the same plugin which is the point we are trying to make to you.
Sign In or Register to comment.