coppermine-gallery.com/forum

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: plancast on February 04, 2015, 11:44:30 PM

Title: make upload preview intermediate image
Post by: plancast on February 04, 2015, 11:44:30 PM
Hi,

Is there a way to make the preview picture on upload the intermediate image rather than the thumbnail image.

Thanks,

Chris
Title: Re: make upload preview intermediate image
Post by: Αndré on February 08, 2015, 08:05:38 PM
Just to make sure, do you mean the pictures which appear below the flash uploader right after you've uploaded them?
Title: Re: make upload preview intermediate image
Post by: plancast on February 09, 2015, 12:13:35 PM
Hi Andre,

That and the picture that appears next to the comments and title sections.

Thanks,

Chris
Title: Re: make upload preview intermediate image
Post by: Αndré on February 09, 2015, 07:52:40 PM
Open upload.php, find
$thumb_url = get_pic_url($CURRENT_PIC_DATA, 'thumb');
and replace with
$thumb_url = get_pic_url($CURRENT_PIC_DATA, 'normal');


Quote from: plancast on February 09, 2015, 12:13:35 PM
the picture that appears next to the comments and title sections.
Erm, do you mean editpics.php, the page that opens after you've uploaded new files? Please be more detailed so I don't need to ask each time. I don't know what you mean with "comments and title sections".
Title: Re: make upload preview intermediate image
Post by: phill104 on February 09, 2015, 11:03:58 PM
That may not work if _normal does not exist.
Title: Re: make upload preview intermediate image
Post by: Αndré on February 10, 2015, 07:57:32 AM
get_pic_url takes care of that.
Title: Re: make upload preview intermediate image
Post by: phill104 on February 10, 2015, 10:58:21 AM
Cheers Andre, I wondered what that bit did.
Title: Re: make upload preview intermediate image
Post by: plancast on February 19, 2015, 03:55:57 PM
Thanks guys
Title: Re: make upload preview intermediate image
Post by: allvip on April 15, 2015, 10:53:49 PM
Board rules / Forum policies http://forum.coppermine-gallery.net/index.php?index.php/topic,55415.0.html (http://forum.coppermine-gallery.net/index.php?index.php/topic,55415.0.html)  Reply #17

Quote from: Joachim Müller on September 28, 2008, 12:46:26 PM
Resolve your threads
If you have found an answer to your question, resolve your thread. Don't just post "I have found the answer", but tell others what you actually did to solve your issues. Posting a link to the page where you found the answer might help. Describing what you did might help as well. Finally, you can tag your thread as "solved" by clicking on the "Topic Solved" button on the bar at the left hand side at the bottom of your thread.