Add Picture Name under Filmstrip thumbnails Add Picture Name under Filmstrip thumbnails
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

Add Picture Name under Filmstrip thumbnails

Started by wetteddy, March 25, 2014, 10:30:50 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

wetteddy

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

allvip

#1
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.




allvip

#2
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):


.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;
}


allvip

#3
 style the filmstrip current thumbnail (active thumbnail) :

http://forum.coppermine-gallery.net/index.php/topic,77353.0.html

wetteddy

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

allvip


allvip