Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: [Solved]: Whend mouse on picture show a text  (Read 3505 times)

0 Members and 1 Guest are viewing this topic.

dacian20033

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
[Solved]: Whend mouse on picture show a text
« 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
« Last Edit: June 03, 2009, 08:17:24 am by Joachim Müller »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Whend mouse on picture show a text
« Reply #1 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.
Logged

dacian20033

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Whend mouse on picture show a text
« Reply #2 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  :'(
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Whend mouse on picture show a text
« Reply #3 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" policy that you agreed to respect when signing up!
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 19 queries.