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: make upload preview intermediate image  (Read 3195 times)

0 Members and 1 Guest are viewing this topic.

plancast

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 25
make upload preview intermediate image
« 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
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: make upload preview intermediate image
« Reply #1 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?
Logged

plancast

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 25
Re: make upload preview intermediate image
« Reply #2 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
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: make upload preview intermediate image
« Reply #3 on: February 09, 2015, 07:52:40 pm »

Open upload.php, find
Code: [Select]
$thumb_url = get_pic_url($CURRENT_PIC_DATA, 'thumb');and replace with
Code: [Select]
$thumb_url = get_pic_url($CURRENT_PIC_DATA, 'normal');

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

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: make upload preview intermediate image
« Reply #4 on: February 09, 2015, 11:03:58 pm »

That may not work if _normal does not exist.
Logged
It is a mistake to think you can solve any major problems just with potatoes.

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: make upload preview intermediate image
« Reply #5 on: February 10, 2015, 07:57:32 am »

Code: [Select]
get_pic_url takes care of that.
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: make upload preview intermediate image
« Reply #6 on: February 10, 2015, 10:58:21 am »

Cheers Andre, I wondered what that bit did.
Logged
It is a mistake to think you can solve any major problems just with potatoes.

plancast

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 25
Re: make upload preview intermediate image
« Reply #7 on: February 19, 2015, 03:55:57 pm »

Thanks guys
Logged

allvip

  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Posts: 1362
Re: make upload preview intermediate image
« Reply #8 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  Reply #17

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.
Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 19 queries.