×

info

Dear guests,
You are currently on the old forum we kept as a knowledge base. You will find the new community forum here
Welcome, Guest
Username: Password: Remember me
Keyword

TOPIC: Plugin Trigger for onAcyUserImport ?

Plugin Trigger for onAcyUserImport ? 3 years 8 months ago #105655

  • Anonymous user
  • groovezog's Avatar
  • Posts: 13
  • Karma: 0
I'm integrating ACY with another product using a custom plugin.

I'm already successfully using Plugin Triggers for onAcySubscribe() and onAcyUserCreate() and onAcyUserModify()
Next, I need to execute some code for each subscriber when they are imported (via textarea or a CSV file) in the administration area. Unfortunately, there is not a trigger for onAcyUserImport() and when subscribers are imported onAcyUserCreate() is not called.

I'm looking for the best file to hook into to execute code on each user that is imported.
Last Edit: 3 years 8 months ago by Anonymous user.
Please log in to post a reply

Plugin Trigger for onAcyUserImport ? 3 years 8 months ago #105676

  • Dax
  • Dax's Avatar
  • Posts: 6423
  • Karma: 227
Hi,

I'll add the triggers "onAcyBeforeUserImport" and "onAcyAfterUserImport" in the next version (it should be available in this week) ;)

Jeremy
-AcyMailing developer-
This email address is being protected from spambots. You need JavaScript enabled to view it.

I helped you? The best way to thank me is to post a review on the JED :laugh:

Do not hesitate to illustrate your messages with screenshots, I love images :)
Always consult our tutorials before asking a question on our forum, the answer is surely there ;)

Hey look at our Video tutorials, It's really helpful to understand how Acy works!
Please log in to post a reply

Plugin Trigger for onAcyUserImport ? 3 years 8 months ago #105711

  • Anonymous user
  • groovezog's Avatar
  • Posts: 13
  • Karma: 0
Wonderful! Thank you.

For reference, I added:
$this->dispatcher->trigger('onAcyAfterUserImport',array($this->allSubid,$this->importUserInLists,$this->subscribedUsers));
...in the function:
finalizeImport()
...in the file:
administrator/components/com_acymailing/helpers/import.php
This seemed to work for what I'm doing.

I'll wait to see what you added in the new release. Thanks again for your help!
Please log in to post a reply
Time to create page: 0.072 seconds
Powered by Kunena Forum