Here is a mod that will display in the thumbnail selection listbox on Album properties page, for all albums, both uploaded and linked files.
DEMO:
http://vanrokken.altervista.org/ (Album Fiori)
FILES TO EDIT: 2
index.php
modifyalb.php
OPEN
index.phpFIND (2 times)
if ($count > 0) {
REPLACE WITH
if ($count > 0 || $alb_stat['link_pic_count'] > 0) {
OPEN
modifyalb.phpFIND
global $CONFIG, $ALBUM_DATA, $album, $lang_modifyalb_php,$USER_DATA;
REPLACE WITH
global $CONFIG, $ALBUM_DATA, $album, $lang_modifyalb_php, $USER_DATA, $FORBIDDEN_SET_DATA;
FIND
$results = cpg_db_query("SELECT pid, filepath, filename, url_prefix FROM {$CONFIG['TABLE_PICTURES']} WHERE aid='$album' AND approved='YES' ORDER BY filename");
REPLACE WITH
(count($FORBIDDEN_SET_DATA) > 0) ? $forbidden_set_string = "AND aid NOT IN (".implode(",", $FORBIDDEN_SET_DATA).")" : $forbidden_set_string = '';
($ALBUM_DATA['keyword']) ? $where_string = " (aid='$album' OR (keywords LIKE '%{$ALBUM_DATA['keyword']}%' $forbidden_set_string))" : $where_string = "aid='$album'";
$results = cpg_db_query("SELECT pid, filepath, filename, url_prefix FROM {$CONFIG['TABLE_PICTURES']} WHERE $where_string AND approved='YES' ORDER BY filename");
SAVE AND CLOSE ALL FILES
EDIT: added check on private albums. I don't have any private album on my gallery, so I can't test it