I am not a developer with ZP but looked into that function quite a lot
In my mind you would need to develop a custom function in customfunctions.php in your themes folder. (i.e. have some PHP skills) check zpfocus theme for that !
in there it could work like this:
see example below
a) you pass in $thumbalbum ;
b) backup real $_zp_current_album
c) set new album depending on your parameter
d) revert to real current album at the end;
`
function printCustomAlbumThumbImage($thumbalbum=NULL,$alt, $class=NULL, $id=NULL) {
global $_zp_gallery, $_zp_current_album, $_zp_themeroot;
$orig_location = $_zp_current_album ;
if ($thumbalbum) $_zp_current_album = new Album($_zp_gallery, $thumbalbum);
if (!$_zp_current_album->getShow()) {
$class .= " not_visible";
} else {
$pwd = $_zp_current_album->getPassword();
if (zp_loggedin() && !empty($pwd)) {
$class .= " password_protected";
}
}
$class = trim($class);
if (!getOption('use_lock_image') || checkAlbumPassword($_zp_current_album->name, $hint)) {
$html = '[img]' . htmlspecialchars(getAlbumThumb()) . '[/img]';
$html = zp_apply_filter('standard_album_thumb_html', $html);
echo $html;
} else {
if (getOption('thumb_crop')) {
$s = getOption('thumb_size');
$w = getOption('thumb_crop_width');
$h = getOption('thumb_crop_height');
if ($w > $h) {
$h = round($h * $s/$w);
$w = $s;
} else {
$w = round($w * $s/$w);
$h = $s;
}
$size = 'width="'.$w.'" height="'.$h.'"';
} else {
$size = '';
}
echo getPasswordProtectImage($size);
}
$_zp_current_album = $orig_location ;
}
`