Preview of the e-card Preview of the e-card
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

Preview of the e-card

Started by jmt75, November 28, 2004, 09:15:37 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jmt75

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?

Tranz

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

jmt75

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  ;)

Tranz

#3
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.

Tranz

#4
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:
    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:
    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();


Tranz

Here is a mod that will let you preview and edit the ecard before sending.