hi, i really like inmemoriam gallery - it really solved my gl gallery problems because gallery 1.x and 2 were really pain in the ass..
i'm now hacking inmemoriam to suit my needs and few suggestions to next version:
- picture and view count of album should show picture and view count of album and subalbums combined.
- if album doesn't have any pictures in it nor default thumb pic, but has subalbums, it should take thumbnail pic from a random sub-album pic.
fast hack for this starting in functions.inc at line 1477:
Text Formatted Code
} elseif (DB_count($INM_TABLES['albums'], 'pid', $A['id']) >= 1) {
// if album only contains subalbums, get random thumb from subalbum
$TR = DB_query("SELECT id FROM {$INM_TABLES['albums']} WHERE pid='{$A['id']}'" . COM_getPermSQL('and') . " ORDER BY RAND() LIMIT 1");
$R = DB_query("SELECT mid, filename, title FROM {$INM_TABLES['media']} WHERE aid='" . DB_result($TR,0,0) . "' " . COM_getPermSQL('and') . " ORDER BY RAND() LIMIT 1");
list($randommid,$filename,$alttext) = DB_fetchArray($R);
$albumthumb = $_CONF['site_url'] . '/inmemoriam/image.php?mid=' . $randommid . '&thumb=1';
$summary->set_var('alt', stripslashes($alttext));
- by default there is topic that goes like "topic -- slogan" ($LANG_INM01[11] -- $LANG_INM01[12]) at every page. if you don't have a slogan you have to go through several php -files and remove "--" from code, if you don't want stupid outlook for your gallery ("topic --" at every page). if that would be handled by one function or something like that, it'd be easier to customize.
i might come up with more suggestions later...
and i'm working on finnish language file. i will send that when ready.