forum.coppermine-gallery.net
Support => cpg1.3.x Support => Older/other versions => cpg1.3 Miscellaneous => Topic started by: etcohen on July 15, 2004, 11:11:19 pm
-
Hello,
I know that you can see the file description, size, dimensions and date added when you point the mouse arrow above the picture, but I'm interested in having this information under all the thumbs. Can anyone help?
Thanks, Eran.
-
edit include/functions.inc.php and find
// Set picture caption
if ($set_caption) foreach ($rowset as $key => $row){
$caption = "<span class=\"thumb_title\">";
$caption .= ($rowset[$key]['title']||$rowset[$key]['hits']) ? $rowset[$key]['title'] : '';
if ($CONFIG['views_in_thumbview']){
if ($rowset[$key]['title']){$caption .= " – ";}
$caption .= sprintf($lang_get_pic_data['n_views'], $rowset[$key]['hits']);
}
$caption .= "</span>";
if ($CONFIG['caption_in_thumbview']){
$caption .= $rowset[$key]['caption'] ? "<span class=\"thumb_caption\">".bb_decode(($rowset[$key]['caption']))."</span>" : '';
}
if ($CONFIG['display_comment_count']) {
$comments_nr = count_pic_comments($row['pid']);
if ($comments_nr > 0) $caption .= "<span class=\"thumb_num_comments\">".sprintf($lang_get_pic_data['n_comments'], $comments_nr )."</span>";
}
if ($CONFIG['display_uploader']){
$caption .= '<span class="thumb_title"><a href ="profile.php?uid='.$rowset[$key]['owner_id'].'">'.$rowset[$key]['owner_name'].'</a></span>';
}
$rowset[$key]['caption_text'] = $caption;
Put into the caption whatever you want.
GauGau