Jump to content

Shazam_Brazil

Members
  • Content count

    3
  • Joined

  • Last visited

1 Follower

Profile Information

  • Real Name
    Oscar
  1. Shazam_Brazil

    Newsletters Subscribers Manager - Oscommerce 2.3 & 2.2

    Hello brouillard, I think I found the problem that was happening, realized I file "newsletter.boxe.php" extract the block "arobase" all others works well. Then I noticed that the file "/ catalog / includes / languages ​​/ english.php" in line arobase had backslashes "\" in the text ('Incorrect email address, lacks an at sign \ "@ \".');) then pulled out and just let @, why not accept slashes and quotes. So now put the block in the file arobase "newsletter.boxe.php" and everything works fine. Just do not know how to work the two blocks after arobase because I never see any error message appears, but everything now works fine. NB: I'm not the only one who had problems with this, see the post above Michelle, I went there and saw it in the store that has the same error there too, if she read my post here can fix your store. Thank you and sorry for my poor translation. Oscar Rocha São Paulo - Brazil www.shazammagicas.com.br
  2. Shazam_Brazil

    Newsletters Subscribers Manager - Oscommerce 2.3 & 2.2

    Hello Brouillard, The file "newsleter_boxe.php" in its contribution is wrong, I managed to work well with this file below, but it still has an error, if not put anything in the field of e-mail it works fine and the correct phrase appears in the pop-up, but if you put comma or space does not report the correct phrase but the "BOX_NEWSLETTER_ERREUR_VIRGULE" to comma and "BOX_NEWSLETTER_ERREUR_ESPACES" for spaces. I do not know what's wrong but the file below works best: Oscar Rocha São Paulo - Brazil <?php /* $Id: boxe newsletter.php le 05 Avril 2012 Auteur : Brouillard s'embrouille (brouillard-sembrouille@laposte.net) osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2012 osCommerce Released under the GNU General Public License */ ?> <!-- boxe newsletter //--> <script type="text/javascript"> function VerifierMail(form) { if (form.emailabonnement.value == "" ) { alert("<?php echo BOX_NEWSLETTER_ERREUR_CHAMP_VIDE; ?>") form.emailabonnement.focus(); return false; } else if (form.emailabonnement.value.indexOf(",") > 0) { alert("' . BOX_NEWSLETTER_ERREUR_VIRGULE . '") form.emailabonnement.focus(); return false; } else if (form.emailabonnement.value.indexOf(" ") > 0) { alert("' . BOX_NEWSLETTER_ERREUR_ESPACES . '") form.emailabonnement.focus(); return false; } else if (form.emailabonnement.value.indexOf("@") < 0) { alert("' . BOX_NEWSLETTER_ERREUR_AROBASE . '") form.emailabonnement.focus(); return false; } else if (form.emailabonnement.value.lastIndexOf(".") < 0) { alert("' . BOX_NEWSLETTER_ERREUR . '") form.emailabonnement.focus(); return false; } else if ((form.emailabonnement.value.length - 1) - form.emailabonnement.value.lastIndexOf(".") < 2) { alert("' . BOX_NEWSLETTER_ERREUR . '") form.emailabonnement.focus(); return false; } else { // form.submit() return true; } } </script> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('align' => 'left', 'text' => BOX_HEADING_NEWSLETTER ); new infoBoxHeading($info_box_contents, false, false); $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => BOX_NEWSLETTER_TEXT_ABONNEMENT . '<br><br>' . tep_draw_form('newsletterabonnement', tep_href_link(FILENAME_NEWSLETTER_ABONNEMENT, '', 'NONSSL'), 'post', 'onsubmit="return VerifierMail(this);"') . BOX_NEWSLETTER_TEXT_EMAIL . '<br>' . tep_draw_input_field('emailabonnement', '', 'size="20" maxlength="50"') . '<br>' . tep_image_submit('sinscrire_newsletter.gif', IMAGE_BUTTON_CONTINUE, 'SSL') . '</form>'); new infoBox($info_box_contents); ?> </td> </tr> <!-- boxe newsletter eof //-->
  3. Shazam_Brazil

    Newsletters Subscribers Manager - Oscommerce 2.3 & 2.2

    Hello, I'm from Brazil, I installed this contribution and really liked it, everything works fine, but has a problem I can not solve. If you click the subscribe button to accept it anyway, even if they put the wrong email or write with space or @, this is bad. NB: And I have installed the file catalog / includes / language / português.php and all is right. My version is 2.2 my store: www.shazammagicas.com This contribution is in the box to the left below, can be tested and see that just click and not showing an error message. I really appreciate if someone can help me! Oscar Rocha São Paulo - Brazil www.shazammagicas.com.br
×