Quote by hatric:The bolding of the album titles you suggested did not work, nothing changed in apperance.
worked for me. You must be using IE?
Quote by hatric:In the random picture block, is there a way to describe, underneath the thumbnail, text to tell which album the picture came from?
yup. can you write PHP? You'll need to modify inm_getRandomMedia() in the functions.inc file. ...or you can just replace it with this:
Text Formatted Code
function inm_getRandomMedia($id = ''){
global $INM_TABLES, $_CONF, $INM_CONF;
if (!empty($id)){
if (inm_hasAlbumAccess($id)){
$A = array();
$result = DB_query("SELECT mid, filename, title, caption FROM {$INM_TABLES['media']} WHERE aid='$id' AND status='0'" . COM_getPermSQL('and') . " ORDER BY RAND() LIMIT 1");
list($A['mid'],$A['filename'],$A['title'],$A['caption']) = DB_fetchArray($result);
$retval = $A;
} else {
$retval = '';
}
} else {
//get random mid
$result = DB_query("SELECT mid, title, caption, aid FROM {$INM_TABLES['media']}" . COM_getPermSQL('where') . " ORDER BY RAND()");
if (DB_numRows($result) < 1){
return;
}
while ($A = DB_fetchArray($result)){
if (inm_hasMediaAccess($A['mid']) >= 2){
if(!empty($A['title'])){
$alt = trim(COM_stripslashes($A['title']));
} else {
$alt = 'link to image #' . $A['mid'];
}
$albumname = COM_stripslashes(DB_getItem($INM_TABLES['albums'], 'name', "id='{$A['aid']}'"));
$thumbsize = DB_getItem($INM_TABLES['settings'], 'thumbsize', "thumbsize<>''");
$src = $INM_CONF['url_html'] . '/image.php?thumb=1&size=' . $thumbsize . '&mid=' . $A['mid'];
$retval = '<a href="' . $INM_CONF['url_html'] . '/browse.php?mid=' . $A['mid'] . '"><img src="' . $src . '" title="' . $alt . '" alt="' . $alt . '" /></a>';
if (!empty($albumname)){
$retval .= '<p>' . $albumname . '</p>';
}
if (!empty($A['caption'])){
if (strlen(trim(COM_stripslashes($A['caption']))) > 64){
$retval .= '<p>' . substr(trim(COM_stripslashes($A['caption'])), 0, 64) . '...</p>';
} else $retval .= '<p>' . trim(COM_stripslashes($A['caption'])) . '</p>';
}
break;
} else {
continue;
}
}
}
return $retval;
}
in version 1.0, this function will be changed a bit to allow easier editing from the template file.
Quote by hatric:When using the slideshow there is no "exit" button to kill it and return to the gallery... or am I missing something?