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]%1$s/images/lock.png[/img] over thumbnails of [i]password protected[/i] albums and [img]%1$s/images/action.png[/img] over thumbnails of [i]not published[/i] albums and [i]not visible[/i] 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".
'[img]'.$img.'[/img]'."\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;
}
?>
`