Mailman Mailinglist auto-subscribe plugin released
- mortenhm
- OFFLINE
- Posts: 11
- Thanks: 0
- Karma: 5
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
Please Log in or Create an account to join the conversation.
- beat
- ONLINE
- Posts: 8176
- Thanks: 528
- Karma: 352
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 or Create an account to join the conversation.
- mortenhm
- OFFLINE
- Posts: 11
- Thanks: 0
- Karma: 5
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 or Create an account to join the conversation.
- mortenhm
- OFFLINE
- Posts: 11
- Thanks: 0
- Karma: 5
Bugs fixed:
* Rejected users are no longer added to the mailinglist
Attachment ea65af9a735eeeddc9f444a894fb7519. not found
--
Morten Holdflod Møller
CB3PD subscribemailman
Please Log in or Create an account to join the conversation.
- beat
- ONLINE
- Posts: 8176
- Thanks: 528
- Karma: 352
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 ? 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.
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 or Create an account to join the conversation.
- mortenhm
- OFFLINE
- Posts: 11
- Thanks: 0
- Karma: 5
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 or Create an account to join the conversation.