Saving thumbnails into different directory Saving thumbnails into different directory
 

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

Saving thumbnails into different directory

Started by Templarart, March 03, 2008, 02:19:30 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Templarart

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!

Joachim Müller

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.

Templarart

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

opulence

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....