4images Forum & Community

International => Français => Topic started by: danjoe on May 03, 2007, 08:35:03 AM

Title: Envoi cartes ne fonctionne pas
Post by: danjoe on May 03, 2007, 08:35:03 AM
Bonjour,
Je viens de constater que la fonction envoi de cartes virtuelles ne fonctionne pas (horreur ! j'ai mis ce script dans ce but !)... sauf si je les envoie en étant connectée. Je ne comprends pas ce qui se passe, j'ai essayé de changer la configuration rien n'y fait.
Pouvez-vous m'aider s'il vous plait.
Remerciements
Title: Re: Envoi cartes ne fonctionne pas
Post by: manurom on May 03, 2007, 09:27:27 AM
Bonjour;
Quote
Please enter the verification code.
Il y a un problème de captcha au niveau de votre template.
Votre fichier de template postcard_preview.html devrait être comme ceci:
Code: [Select]
{header}
<p align="center">{if msg}<b>{msg}</b>{endif msg}</p>
<form action="{url_postcard}" method="post">
  <table border="0" cellspacing="0" cellpadding="0" align="center">
    <tr>
      <td>
        <table border="0" cellspacing="0" cellpadding="1">
          <tr>
            <td bgcolor="{border_color}">
              <table border="0" cellspacing="0" cellpadding="10" bgcolor="{bg_color}">
                <tr>
                  <td valign="top">{image}</td>
                  <td valign="top" width="200" height="250">
                    <div align="right"><img src="{template_url}/images/stamp.gif" border="0" /></div>
                    <br /><br />
                    <b><font face="{font_face}" color="{font_color}" size="4">{headline}</font></b>
<br /><br />
                    <font face="{font_face}" color="{font_color}" size="2">{message}</font>
<br /><br />
                    <font face="{font_face}" color="{font_color}" size="2">{sender_name}</font><br />
<a href="mailto:{sender_email}"><font face="{font_face}" color="{font_color}" size="2">{sender_email}</font></a>
                  </td>
                </tr>
              </table>
            </td>
          </tr>
        </table>
        <br />
        <br />
        <b>{lang_sender}:</b> {sender_name} ({sender_email})<br />
        <b>{lang_recipient}:</b> {recipient_name} ({recipient_email}) </td>
    </tr>
  </table>
{if captcha_postcards}
<br />
  <table width="450" border="0" cellspacing="0" cellpadding="1" align="center">
    <tr>
      <td valign="top" class="head1">
        <table width="100%" border="0" cellpadding="4" cellspacing="0">
          <tr>
            <td class="row1" valign="top"><b>{lang_captcha}</b></td>
            <td class="row1">
  <a href="javascript:new_captcha_image();"><img src="{url_captcha_image}" border="0" id="captcha_image" /></a> <br />
              <input type="text" name="captcha" size="30" value="" class="commentinput" id="captcha_input" />
              <br />
              {lang_captcha_desc}
</td>
          </tr>
        </table>
      </td>
    </tr>
  </table>
  {endif captcha_postcards}
  <p align="center">
    <input type="hidden" name="bg_color" value="{bg_color}" />
    <input type="hidden" name="border_color" value="{border_color}" />
    <input type="hidden" name="font_color" value="{font_color}" />
    <input type="hidden" name="font_face" value="{font_face}" />
    <input type="hidden" name="sender_name" value="{sender_name}" />
    <input type="hidden" name="sender_email" value="{sender_email}" />
    <input type="hidden" name="recipient_name" value="{recipient_name}" />
    <input type="hidden" name="recipient_email" value="{recipient_email}" />
    <input type="hidden" name="headline" value="{headline}" />
    <input type="hidden" name="message" value="{message}" />
    <input type="hidden" name="action" value="sendcard" />
    <input type="hidden" name="image_id" value="{image_id}" />
    <input type="hidden" name="back_url" value="{back_url}" />
    <input type="button" value="{lang_edit_postcard}" onclick="history.go(-1)" class="button" />
    <input type="submit" value="{lang_send_postcard}" class="button" />
  </p>
</form>
{footer}

Si en revanche, vous désirez que n'importe quel visiteur non identifié puisse envoyer une carte, il est possible de désactiver le captcha pour cette fonction.
Il suffit d'ajouter cette ligne dans votre fichier config.php, juste avant le tag de fin ?>:
Code: [Select]
$captcha_enable_postcards = 0;
Title: Re: Envoi cartes ne fonctionne pas
Post by: danjoe on May 03, 2007, 10:02:39 AM
Merci infiniment premièrement pour la réponse ultra rapide et deuxièmement pour l'éfficacité...

J'ai suivi vos consignes et tout fonctionne parfaitement.

Merci encore et bonne continuation

Estelle