[SOLVED] CTL Module Maker | Upload thumbnails in another (sub) directory

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
cmaunoury
Forum Members
Forum Members
Posts: 36
Joined: Sun Jul 19, 2009 9:52 pm

[SOLVED] CTL Module Maker | Upload thumbnails in another (sub) directory

Post by cmaunoury »

Hi everyone,

I am using CTL Module Maker with an image upload field that generate a thumbnail. Thing is, I am using the uploaded images with the simple rotate tag to display these images on the homepage. the tag reads the content of the directory where the images are uploaded, which is easy and fine.

My problem is that the thumbnails are uploaded in the same directory and so the tag reads both the full res image and the thumbnail. I have been trying to edit directly the way thumbs are handled in the php classes (action.addfile.php / action.assignfiles.php / action.browsefiles.php), but with no success so far.

Of course, I am concerned my altering the code would bring problems with the way the module retrieves the thumbnails for display.

the point is: I would like to upload the images in one directory and the thumbs either in another directory at the same level or inside a subdirectory of this upload dir.

Any idea?

thanks for your attention and your help,

Best,

Colin
Last edited by cmaunoury on Tue Dec 07, 2010 9:56 pm, edited 1 time in total.
mw
Forum Members
Forum Members
Posts: 159
Joined: Mon Aug 25, 2008 8:38 pm
Location: Comox Valley, BC, Canada

Re: CTL Module Maker | Upload thumbnails in another (sub) directory

Post by mw »

if your using the rotate plugin I believe it has an "exclude thumbnail" function which does not include the naming convention of ctlmodule thumbs which I think are named "pl_something.jpeg" ?
I would think you could simply add that exclusion
cmaunoury
Forum Members
Forum Members
Posts: 36
Joined: Sun Jul 19, 2009 9:52 pm

[SOLVED] CTL Module Maker | Upload thumbnails in another (sub) directory

Post by cmaunoury »

Thanks a lot for the answer. That worked fine!

I was looking for complex thing and it was indeed just the matter of adding "pl" to line 93 of the function.rotate.php.

Hope it'll be useful for others. Of course, there could also be another condition added for those not using only CTL Module Maker thumbnails, but this should be quite easy.

Thanks a lot,

Colin
Post Reply

Return to “Modules/Add-Ons”