Where is the code for checking for/adding thumbnails? Where is the code for checking for/adding thumbnails?
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Where is the code for checking for/adding thumbnails?

Started by nirvana.addict, May 06, 2008, 10:29:26 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

nirvana.addict

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.

Stramm

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

nirvana.addict

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

Joachim Müller

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.