Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Preview of the e-card  (Read 3881 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.021 seconds with 20 queries.