forum.coppermine-gallery.net

No Support => Feature requests => Topic started by: jmt75 on November 28, 2004, 09:15:37 pm

Title: Preview of the e-card
Post by: jmt75 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?
Title: Re: Preview of the e-card
Post by: Tranz 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.
Title: Re: Preview of the e-card
Post by: jmt75 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  ;)
Title: Re: Preview of the e-card
Post by: Tranz 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.
Title: Re: Preview of the e-card
Post by: Tranz 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();
Title: Re: Preview of the e-card
Post by: Tranz on December 16, 2004, 12:35:39 am
Here is a mod  (http://forum.coppermine-gallery.net/index.php?topic=12641.0)that will let you preview and edit the ecard before sending.