I'm working on a plugin that reorganizes the file information on the photo page and I was able to easily add the album description as well. The plugin is not quite ready but I think it will be soon.
Plugins are preferrable for many reasons, but here's a 2-line hack that does what you want. All the following refers to the script displayimage.php.
Look for this line in the function html_picinfo():
$info[$lang_picinfo['Album name']] = '<span class="alblink">' . $owner_link . $ipinfo . '<a href="thumbnails.php?album=' . $CURRENT_PIC_DATA['aid'] . '">' . $CURRENT_ALBUM_DATA['title'] . '</a></span>';
Add this line after it:
$info['Album description'] = $CURRENT_ALBUM_DATA['description'];
Look for these lines near the end:
/ Retrieve data for the current album
if (isset($CURRENT_PIC_DATA)) {
$result = cpg_db_query("SELECT title, comments, votes, category, aid FROM {$CONFIG['TABLE_ALBUMS']} WHERE aid='{$CURRENT_PIC_DATA['aid']}' LIMIT 1");
In the last line, add in 'description' after 'title' as shown:
$result = cpg_db_query("SELECT title, description, comments, votes, category, aid FROM {$CONFIG['TABLE_ALBUMS']} WHERE aid='{$CURRENT_PIC_DATA['aid']}' LIMIT 1");
And that should do it. This hack is not lang-compatible since you use the static text 'Album description', but to use the variable $lang_modifyalb_php['alb_desc'] which would be language-compatible requires a bit more of a hack since that variable is only set for the modifyalb script. In any case since this is a hack, I figured it didn't have to be language-compatible. If you do want it to be, you need to do the following:
At the beginning of displayimage.php, before the require line, add this line:
define('MODIFYALB_PHP', true);
At the beginning of the function html_picinfo(), add this line:
global $lang_modifyalb_php;
Finally, instead of the line above, use this line in the same place:
$info[$lang_modifyalb_php['alb_desc']] = $CURRENT_ALBUM_DATA['description'];
This second hack may be dangerous in the future though since it makes the displayimage.php script pretend to be the modifyalb.php script and that may break things in the future. Right now, it's OK. There is a way to be safer about this pretense, but not completely safe so let's just leave it at that.
In any case, my plugin will do what you want once it's ready.