TOPIC:

BreezingForms and AcyMailing 3 months 2 days ago #260425

  • Topic Author
  • poldi171254
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 80
  • Thanks: 0
Hi,
I'm still looking for a solution to this.

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

BreezingForms and AcyMailing 3 months 1 day ago #260428

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 6888
  • Karma: 3
  • Thanks: 492

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

BreezingForms and AcyMailing 3 months 1 day ago #260445

  • Topic Author
  • poldi171254
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 80
  • Thanks: 0
I think the first issue is as one of my first postings indicated

poldi171254 wrote: The code in french looks pretty much identical to what I have (posted) and doesn't work in 7

This is what I got from support

Hi,

we have changed the API calls in version 7 (and version 6 before that)
docs.acymailing.com/developers/acymailin...eloper-documentation

Version 5 and version 7 are completely different extensions and subscription in one doesn't mean that you will have the same subscription in another

Regards


I'm no php guru, but I think what's needed is along the lines of this; not sure how to test, though
use AcyMailing\Classes\UserClass;
​
$subscribe = [2,4,6]; // Id of the lists you want the user to be subscribed to (can be empty)
$unsubscribe = [1,3]; // Id of the lists you want the user to be unsubscribe from (can be empty)
$acyUserId = '23'; // you can use the previous example code to get the user by its site user id or its email address
 
$userClass = new UserClass();
 
if(!empty($subscribe)){
    $userClass->subscribe($acyUserId, $subscribe);
}
 
if(!empty($remove)){
    $userClass->unsubscribe($acyUserId, $unsubscribe);
}


I don't know how to include the new class into the existing code

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

Moderators: ForumSupport
Time to create page: 0.082 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!