coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: nirvana.addict on May 06, 2008, 10:29:26 AM

Title: Where is the code for checking for/adding thumbnails?
Post by: nirvana.addict on May 06, 2008, 10:29:26 AM
Hi, I'm trying to make a mod for adding flv's with thumbnails, but can't find the code where the thumbnails are looked for.

For example, when I add an .flv at the moment it uses the generic video thumbnail, where is the code that handles this so I can change it to look for thumbnails in the same way as images?

Thanks.
Title: Re: Where is the code for checking for/adding thumbnails?
Post by: Stramm on May 06, 2008, 10:40:25 AM
It already does look for thumbnails. Please read the section about custom thumbs in the docs.
http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#cust_thmb
Title: Re: Where is the code for checking for/adding thumbnails?
Post by: nirvana.addict on May 06, 2008, 10:46:23 AM
Thanks!

I realise my mistake now.

Is there any way to prevent it from converting .'s to _'s?

For example I want to be able to add the file:
video.asf.flv
with the thumb
thumb_video.asf.jpg

but coppermine looks for
thumb_video_asf.jpg
Title: Re: Where is the code for checking for/adding thumbnails?
Post by: Joachim Müller on May 06, 2008, 06:36:43 PM
Allowing more than one dot in filenames can cause security issues on poorly set up webservers, that's why they get converted. Don't use such filenames (video.asf.flv) in the first place.