forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: dacian20033 on May 08, 2009, 05:28:10 pm

Title: [Solved]: Whend mouse on picture show a text
Post by: dacian20033 on May 08, 2009, 05:28:10 pm
My question is quite simple, if it is possible when you are runing your mouse over a picture (after you have clickend on the thumbail) to show an custom text. Like click to close or something.
If it is possible can you  please help me, and tell me how to do that?
Thanks
Title: Re: Whend mouse on picture show a text
Post by: Joachim Müller on May 09, 2009, 02:36:14 pm
Edit lang/yourlanguage.php (e.g. lang/english.php), find
Code: [Select]
  'view_fs' => 'Click to view full size image',and edit as you see fit.
Title: Re: Whend mouse on picture show a text
Post by: dacian20033 on June 02, 2009, 08:04:16 pm
Thanks for the answer. Now can I do the same thing but to the thumbails?
I found "lang_display_thumbnails" , but i don't know what to edit there to show me what i want instead of filemane, filesize etc.
Please help  :'(
Title: Re: Whend mouse on picture show a text
Post by: Joachim Müller on June 03, 2009, 08:17:10 am
Depends on what you want to accomplish. You might want to edit include/functions.inc.php, find
Code: [Select]
                        $pic_title =$lang_display_thumbnails['filename'].$row['filename']."\n".
                                $lang_display_thumbnails['filesize'].($row['filesize'] >> 10).$lang_byte_units[1]."\n".
                                $lang_display_thumbnails['dimensions'].$row['pwidth']."x".$row['pheight']."\n".
                                $lang_display_thumbnails['date_added'].localised_date($row['ctime'], $album_date_fmt);
and edit as you see fit, if editing the language file is not enough for you.
However, we have a strict "one question per thread (http://forum.coppermine-gallery.net/index.php/topic,55415.msg270618.html#msg270618)" policy that you agreed to respect when signing up!