forum.coppermine-gallery.net

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: lnguyen on April 25, 2004, 11:19:07 pm

Title: [Solved]: customizing thumbnail view?
Post by: lnguyen on April 25, 2004, 11:19:07 pm
under the thumbnails, we get the title and the #of views... i'm just using the waterdrops theme, and wanted those two on separate lines.  

is there anyway to do this? from what I can tell, it's buried somewhere in the PHP, but i don't know where...

Thanks
Linh
Title: Re: customizing thumbnail view?
Post by: Ocean on April 26, 2004, 03:13:46 am
Yes, I'd like to know this as well.  I don't like the count being right there.

I've gone through the template files and even started going through the main PHP files, but there's so many, I couldn't find where to do that.
Title: Re: customizing thumbnail view?
Post by: Joachim Müller on April 26, 2004, 08:08:46 am
in include/functions.inc.php, find
Code: [Select]
                // Set picture caption
                if ($set_caption) foreach ($rowset as $key => $row){
                        $caption = ($rowset[$key]['title']||$rowset[$key]['hits']) ? "<span class=\"thumb_title\">".$rowset[$key]['title'].(($rowset[$key]['title'])?"-":"").sprintf($lang_get_pic_data['n_views'], $rowset[$key]['hits'])."</span>" : '';
and edit accordingly.

GauGau
Title: Re: customizing thumbnail view?
Post by: Ocean on April 26, 2004, 12:58:37 pm
Thank you very much!! ;D
Title: Re: customizing thumbnail view?
Post by: lnguyen on April 26, 2004, 02:48:15 pm
thanks!