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: Where is the code for checking for/adding thumbnails?  (Read 2255 times)

0 Members and 1 Guest are viewing this topic.

nirvana.addict

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Where is the code for checking for/adding thumbnails?
« 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.
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Where is the code for checking for/adding thumbnails?
« Reply #1 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

nirvana.addict

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Where is the code for checking for/adding thumbnails?
« Reply #2 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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Where is the code for checking for/adding thumbnails?
« Reply #3 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.
Logged
Pages: [1]   Go Up
 

Page created in 0.044 seconds with 20 queries.