Description: In
Config set option
Picinfo display fav album link to
NO, the whole Picture information block under the picture disappears without a trace.
The fix is very simple, in
coppermine/displayimage.php, around line 300, replace this
if ($CONFIG['picinfo_display_favorites']) {
if (!in_array($CURRENT_PIC_DATA['pid'], $FAVPICS)) {
$info[$lang_picinfo['addFavPhrase']] = '<a href="' . $CPG_URL . '&file=addfav&pid=' . $CURRENT_PIC_DATA['pid'] . '" >' . $lang_picinfo['addFav'] . '</a>';
} else {
$info[$lang_picinfo['addFavPhrase']] = '<a href="' . $CPG_URL . '&file=addfav&pid=' . $CURRENT_PIC_DATA['pid'] . '" >' . $lang_picinfo['remFav'] . '</a>';
}
if (USER_ID or $CONFIG['allow_anon_fullsize'] or USER_IS_ADMIN) {
return theme_html_picinfo($info);
}
}
with this
if ($CONFIG['picinfo_display_favorites']) {
if (!in_array($CURRENT_PIC_DATA['pid'], $FAVPICS)) {
$info[$lang_picinfo['addFavPhrase']] = '<a href="' . $CPG_URL . '&file=addfav&pid=' . $CURRENT_PIC_DATA['pid'] . '" >' . $lang_picinfo['addFav'] . '</a>';
} else {
$info[$lang_picinfo['addFavPhrase']] = '<a href="' . $CPG_URL . '&file=addfav&pid=' . $CURRENT_PIC_DATA['pid'] . '" >' . $lang_picinfo['remFav'] . '</a>';
}
}
if (USER_ID or $CONFIG['allow_anon_fullsize'] or USER_IS_ADMIN) {
return theme_html_picinfo($info);
}
Hardly see the difference? Well, just a tiny bracket got misplaced
No need to copy/paste, just move the last bracket "}" at line 308 up 3 lines, that's it.
Coppermine is great. My warm regards to Nuke Dev Team: gtroll, DJMaze, kegobeer, ...
Cheers,
TTN