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: Saving thumbnails into different directory  (Read 1976 times)

0 Members and 1 Guest are viewing this topic.

Templarart

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
Saving thumbnails into different directory
« on: March 03, 2008, 02:19:30 am »

Could someone please tell me which function of which file saves thumbnails when a file is uploaded?

I just want to save a copy of the thumbnail to a different directory so I assumed that once I found the line that saved the thumb I could just add another line saving the same thumb in a different directory.

I've been looking through the code for hours and just thought I'd ask for help.

Thanks!
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Saving thumbnails into different directory
« Reply #1 on: March 03, 2008, 08:21:39 am »

include/picmgmt.inc.php contains the code you're looking for. You'll have to understand what coppermine does: the resized image gets created within the edit folder first. After successfull creation, it get's moved to the target folder. You'll have to look into the function that performs that move after the creation.
Logged

Templarart

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
Re: Saving thumbnails into different directory
« Reply #2 on: March 04, 2008, 12:24:33 am »

Thank you - I'll try to figure that out!  :)
Logged

opulence

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 46
Re: Saving thumbnails into different directory
« Reply #3 on: March 21, 2008, 10:43:06 pm »

I would like thumbnails saved into a different directory as well... reason why is I want to give non-users access to view thumbnails, but by using Paver's plugin, restrict them from viewing full size pictures.  Unfortunately all someone would have to do is look at the thumbnail URL and remove thumb_ and they will be taken to the full size image without registering.  Unfortunately unlike the OP I doubt I would be able to code this myself....
Logged
Pages: [1]   Go Up
 

Page created in 0.025 seconds with 20 queries.