Synchronise a mailing list with a user group

  • Trevor
  • Trevor's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 year 6 days ago #1 by Trevor
Hi Chris

I think a useful future feature would be to automatically synchronise users in a Joomla user group with a mailing list. Perhaps it can already be done but I haven't found it yet!

Best regards
Trevor

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

  • Christopher Mavros
  • Christopher Mavros's Avatar
  • Offline
  • Administrator
  • Administrator
More
11 months 3 weeks ago #2 by Christopher Mavros
Replied by Christopher Mavros on topic Synchronise a mailing list with a user group
Hello Trevor,

Unfortunately, this is not possible at the moment. We could theoretically look for Joomla events for adding users to a group but I'm not sure if something like that exists.
Would you like me to search?

Thanks again.

Christopher Mavros
me@mavxr.com
If you like our extensions, please rate us on the JED!

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

  • Trevor
  • Trevor's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
11 months 3 weeks ago #3 by Trevor
Hi Christopher

Thanks for the reply. It's not urgent so don't spend any time on it. If I get some time I will try and put something together myself. It would be a good opportunity to learn about plugins. I was wondering if I could use the onUserAfterSave event.

Best regards
Trevor

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

  • Christopher Mavros
  • Christopher Mavros's Avatar
  • Offline
  • Administrator
  • Administrator
More
11 months 3 weeks ago #4 by Christopher Mavros
Replied by Christopher Mavros on topic Synchronise a mailing list with a user group
Thank you Trevor!

Yes, you can use that event and also expand on the existing NS Pro User plugin, so that you avoid all the boilerplate code required to get the plugin installed in the first place.

Let me know if you manage to find something!

Christopher Mavros
me@mavxr.com
If you like our extensions, please rate us on the JED!
The following user(s) said Thank You: Trevor

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

  • Trevor
  • Trevor's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
11 months 1 day ago #5 by Trevor
Hi Christopher

I have attached my first attempt at a plugin to synchronise an NS Pro mailing list with a Joomla user group. It seems to work OK but I will do some more testing.

Best regards
Trevor
 
This attachment is hidden for guests.
Please log in or register to see it.

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

  • Christopher Mavros
  • Christopher Mavros's Avatar
  • Offline
  • Administrator
  • Administrator
More
10 months 3 weeks ago #6 by Christopher Mavros
Replied by Christopher Mavros on topic Synchronise a mailing list with a user group
Thank you for sharing Trevor!
I will try to test this as well.

Christopher Mavros
me@mavxr.com
If you like our extensions, please rate us on the JED!

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

Moderators: Christopher Mavros