Advanced search  

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

Pages: [1]   Go Down

Author Topic: Saving thumbnails into different directory  (Read 1970 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.018 seconds with 19 queries.