TOPIC:

Error 1062 with adress mail "End of submission" for Acymailing 6 days 13 hours ago #249608

  • Topic Author
  • greg.o
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 37
  • Thanks: 0
Hello,

How can I add a control script, that the email address is already in the Acymailing list? If the person checks the box "subscribe to our newsletter" and the address is already in the list, we get an error 1062.

The checkbox is in all forms.

Can you help me? Guide me? :blush::blush:

This message contains confidential information


Thank you for your precious help!

Please Log in or Create an account to join the conversation.

Last edit: Post by greg.o.

Error 1062 with adress mail "End of submission" for Acymailing 6 days 13 hours ago #249614

  • tihana.krivic's Avatar
  • tihana.krivic
  • Away
  • Moderator
  • Moderator
  • Posts: 1661
  • Karma: 3
  • Thanks: 149
The following user(s) said Thank You: greg.o

Please Log in or Create an account to join the conversation.

Error 1062 with adress mail "End of submission" for Acymailing 5 days 1 hour ago #249651

  • Topic Author
  • greg.o
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 37
  • Thanks: 0
Great!

Thank you very much for your help! As always!

Can we add, in the following code, a function that ignores the registration if the email address is already existing?
$this->execPieceByName('ff_InitLib');
  if(!ff_getSubmit('souscription')) return;
    include_once(rtrim(JPATH_ADMINISTRATOR,DIRECTORY_SEPARATOR).DIRECTORY_SEPARATOR.'components'.DIRECTORY_SEPARATOR.'com_acym'.DIRECTORY_SEPARATOR.'helpers'.DIRECTORY_SEPARATOR.'helper.php');

    $myUser = new stdClass();
    $myUser->email =ff_getSubmit('email'); 
    $myUser->name =ff_getSubmit('nomPrenom');

    $userClass = acym_get('class.user');
    $subid = $userClass->save($myUser);

    $subscribe = array(1);
    $newSubscription = array();
    if(!empty($subscribe)){
    $userClass->subscribe($subid, $subscribe);
}

Please Log in or Create an account to join the conversation.

Last edit: Post by greg.o.

Error 1062 with adress mail "End of submission" for Acymailing 5 days 56 minutes ago #249652

  • tihana.krivic's Avatar
  • tihana.krivic
  • Away
  • Moderator
  • Moderator
  • Posts: 1661
  • Karma: 3
  • Thanks: 149
Hi,

for this you can use ajax email check (here is an example):

File Attachment:

File Name: Ajax_Email_Check.zip
File Size:7 KB


Code is located in email's element->Advanced->Actionscript.

Hope this helps

Regards,
Tihana
Attachments:
The following user(s) said Thank You: greg.o

Please Log in or Create an account to join the conversation.

Error 1062 with adress mail "End of submission" for Acymailing 3 days 46 minutes ago #249709

  • Topic Author
  • greg.o
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 37
  • Thanks: 0
Thank you for your answer and your help!

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Moderators: ForumSupport
Time to create page: 0.050 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

September Discount!

Massive discounts on all subscriptions!

Get Your Subscription Here

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Special Offer

Summer Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!