Mailman Mailinglist auto-subscribe plugin released

18 years 4 months ago #1736 by mortenhm
New release: subscribemailman

Description:

Subscribes users to a mailman mailing list on approval and updates the e-mail address when it is changed by the user and unsubscribes when the user is deleted.

The plugin has only been tested with mailman version 2.1.6 webinterface

Features:

The plugin has the following features:
* Subscribes new users to a Mailman list when approved
* Unsubscribes old email address on change
* Subscribes new email address on change
* Unsubscribes email address when user is deleted

Known limitation:
* Only changes done in the front-end are handled. As far as I know the BeforeUpdate event is not fired when changing in the backend.

Suggestions for additional features can be sent to me by PM.

Attachment subscribemailman.zip not found


--
Morten Holdflod Møller
CB3PD subscribemailman
Attachments:

Please Log in to join the conversation.

18 years 4 months ago #1740 by beat
mortenhm wrote:

New release: subscribemailman

..

Known limitation:
* Only changes done in the front-end are handled. As far as I know the BeforeUpdate event is not fired when changing in the backend.


Great ! Thanks for this nice plugin.

The backend user update event for plugins is fired as follows from admin.comprofiler.php:

[code:1]
$_PLUGINS->trigger( 'onBeforeUpdateUser', array(&$row,&$rowExtras));
[/code:1]

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info

Please Log in to join the conversation.

18 years 4 months ago #1742 by mortenhm
beat wrote:

The backend user update event for plugins is fired as follows from admin.comprofiler.php:


Hmm... Ok... What is the difference then?

My code works when users change their e-mail address from the frontend and it does not when admin does it from the backend... :huh:

--
Morten Holdflod Møller
CB3PD subscribemailman

Please Log in to join the conversation.

18 years 4 months ago #1744 by mortenhm
Bugfix release

Bugs fixed:
* Rejected users are no longer added to the mailinglist

Attachment ea65af9a735eeeddc9f444a894fb7519. not found


--
Morten Holdflod Møller
CB3PD subscribemailman
Attachments:

Please Log in to join the conversation.

18 years 4 months ago #1749 by beat
mortenhm wrote:

beat wrote:

The backend user update event for plugins is fired as follows from admin.comprofiler.php:


Hmm... Ok... What is the difference then?

My code works when users change their e-mail address from the frontend and it does not when admin does it from the backend... :huh:


Look carefully : ;)

Backend:
[code:1]
$_PLUGINS->trigger( 'onBeforeUpdateUser', array(&$row,&$rowExtras));
[/code:1]

Frontend:
[code:1]
$_PLUGINS->trigger( 'onBeforeUserUpdate', array(&$row,&$rowExtras));[/code:1]

It's not the same event. Frontdoor and Backend are opposite of each other, right ? :D You need to register to both events.... :whistle:

I'm not sure if it was planed like that :blush: but at least it gives you the possibility to detect if it's a frontend or backend event, so we keep it like that. :P

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info

Please Log in to join the conversation.

18 years 4 months ago #1755 by mortenhm
beat wrote:

mortenhm wrote:

Hmm... Ok... What is the difference then?


Look carefully : ;)


Hmm... I see...

beat wrote:

I'm not sure if it was planed like that :blush:


OK! :laugh:

I will give it a go!

--
Morten Holdflod Møller
CB3PD subscribemailman

Please Log in to join the conversation.

Moderators: beatnantgeefflandkrileon
Time to create page: 0.411 seconds

Facebook Twitter LinkedIn