Advanced search  

News:

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

Pages: [1]   Go Down

Author Topic: Add Picture Name under Filmstrip thumbnails  (Read 2183 times)

0 Members and 1 Guest are viewing this topic.

wetteddy

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Add Picture Name under Filmstrip thumbnails
« on: March 25, 2014, 10:30:50 pm »

Hi,
I am trying to add the file name under the filmstrip pictures. I found this thread
http://forum.coppermine-gallery.net/index.php?topic=74799.0
but when I do the modifications as described, I get all the file info (filename, filesize, dimensions, date taken) instead of just the filename. I have added two screen shots. The first one is what my site looks like, the second one is what I want my site to look like.
Thanks
Logged

allvip

  • Global Moderator
  • Coppermine addict
  • *****
  • Country: 00
  • Offline Offline
  • Posts: 1290
Re: Add Picture Name under Filmstrip thumbnails
« Reply #1 on: March 26, 2014, 02:58:35 pm »

In that thread Andre forgot to say that $pic_title = ... is found twice in include/functions.inc.php.
Once in function display_thumbnails for thumbnails and once in function display_film_strip for filmstrip thumbnails.

You need to find both $pic_title = ... and replace the second one.

You replaced the first one and now you have the pic title when you hover over album thumbnails.You replaced the filename,date etc for album thumbnails.
You made the edits to js/displayimage.js that placed the filename,date etc under the filmstrip thumbunails.

Attachments t2 is with the edits to js/displayimge.js and then I repaced the first $pic_title = ... like you did.



« Last Edit: March 26, 2014, 08:15:07 pm by allvip »
Logged

allvip

  • Global Moderator
  • Coppermine addict
  • *****
  • Country: 00
  • Offline Offline
  • Posts: 1290
Re: Add Picture Name under Filmstrip thumbnails
« Reply #2 on: March 26, 2014, 03:28:53 pm »

Add this css rule to style.css (your css file may have a diffrent name) to change the color for the filmstrip thumb title(I used the curve theme and the tumb cell has class .thumb):

Code: [Select]
.thumb a:link{
        color: #FFFFFF;
}
.thumb a:visited{
        color: #009;
}
.thumb a:focus{
        color: #444;
}
.thumb a:hover{
        color: #5A7E9F;text-decoration:none;
}
.thumb a:active{
        color: #FFCC01;
}

« Last Edit: March 26, 2014, 04:05:48 pm by allvip »
Logged

allvip

  • Global Moderator
  • Coppermine addict
  • *****
  • Country: 00
  • Offline Offline
  • Posts: 1290
Re: Add Picture Name under Filmstrip thumbnails
« Reply #3 on: March 26, 2014, 04:04:05 pm »

 style the filmstrip current thumbnail (active thumbnail) :

http://forum.coppermine-gallery.net/index.php/topic,77353.0.html
« Last Edit: March 26, 2014, 04:11:58 pm by allvip »
Logged

wetteddy

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Re: Add Picture Name under Filmstrip thumbnails
« Reply #4 on: March 26, 2014, 04:45:57 pm »

Thanks allvip. I was going crazy for the last 2 days trying to figure it out. After following your additional instructions, it work perfectly. Thanks again
Logged

allvip

  • Global Moderator
  • Coppermine addict
  • *****
  • Country: 00
  • Offline Offline
  • Posts: 1290
Re: Add Picture Name under Filmstrip thumbnails
« Reply #5 on: March 26, 2014, 04:52:26 pm »

You're welcome.
Logged

allvip

  • Global Moderator
  • Coppermine addict
  • *****
  • Country: 00
  • Offline Offline
  • Posts: 1290
Re: Add Picture Name under Filmstrip thumbnails
« Reply #6 on: March 26, 2014, 05:02:08 pm »

You might also like:Images to fit screen resolution

http://forum.coppermine-gallery.net/index.php/topic,76542.0.html
Logged
Pages: [1]   Go Up
 

Page created in 0.025 seconds with 22 queries.