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: Preview of the e-card  (Read 3360 times)

0 Members and 1 Guest are viewing this topic.

jmt75

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Preview of the e-card
« on: November 28, 2004, 09:15:37 pm »

I didn't see how to preview the e-card that you are preparing to send. It is frustrating.

Is it a forgotten feature; or I did understand anything?
« Last Edit: December 16, 2004, 12:38:17 am by TranzNDance »
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Preview of the e-card
« Reply #1 on: November 28, 2004, 09:17:30 pm »

There is no preview. If you want to see how an ecard will look, you can send one to yourself.
Logged

jmt75

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Preview of the e-card
« Reply #2 on: November 30, 2004, 06:37:24 am »

So bad. I think it is not logical. If the idea is to send a beautiful card to somebody, it is logical to want to see the result before to send it.

Did you see, there is a preview of the message in this forum  ;)
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Preview of the e-card
« Reply #3 on: November 30, 2004, 06:53:52 am »

I'll bring this up in the dev board. I'll look into the code to see how to show the preview when confirming that the ecard was sent. However using a preview while editing will be more complex, I think.
« Last Edit: November 30, 2004, 08:13:14 am by TranzNDance »
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Preview of the e-card
« Reply #4 on: November 30, 2004, 08:05:02 am »

OK, I figured out how to show a preview of the ecard when the confirmation shows up. However, I'm not skilled enough to do the preview-while-editing, but this is a start. It's not what you want but maybe someone else can make use of this.

You will edit the file ecard.php

Look for:
Code: [Select]
    if ($result) {
        pageheader($lang_ecard_php['title'], "<META http-equiv=\"refresh\" content=\"3;url=displayimage.php?album=$album&pos=$pos\">");
        msg_box($lang_cpg_die[INFORMATION], $lang_ecard_php['send_success'], $lang_continue, "displayimage.php?album=$album&pos=$pos");

Replace with:
Code: [Select]
    if ($result) {
        pageheader($lang_ecard_php['title']);
        msg_box($lang_cpg_die[INFORMATION], $lang_ecard_php['send_success'], $lang_continue, "displayimage.php?album=$album&pos=$pos");
        echo '<br />';
        starttable('100%', "Preview of the ecard");
        echo '<tr><td>';
        echo template_eval($template_ecard, $params);
        echo '</td></tr>';
        endtable();
« Last Edit: November 30, 2004, 08:12:30 am by TranzNDance »
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Preview of the e-card
« Reply #5 on: December 16, 2004, 12:35:39 am »

Here is a mod that will let you preview and edit the ecard before sending.
Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 19 queries.