|
|
Mailman Mailinglist auto-subscribe plugin released
|
|
Date: 2005/12/09 20:40
|
By: mortenhm
|
Status: Moderator
|
|
|
Karma: 5  
|
|
Moderator  | Posts: 11 |   | |
|
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.
-- Morten Holdflod Møller CB3PD subscribemailman
|
|
The topic has been locked. |
|
|
|
Re:Mailman Mailinglist auto-subscribe plugin released
|
|
Date: 2005/12/09 22:04
|
By: beat
|
Status: Admin
|
|
|
Karma: 241  
|
|
Admin  | Posts: 4061 |   | |
|
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: |
$_PLUGINS->trigger( 'onBeforeUpdateUser', array(&$row,&$rowExtras));
| Beat - Developer on Community Builder core Team - If you like CB and this forum, you will love Nick's CB 1.1 reference manual ! : Click here to Get it now  - Would like to help us move faster ? Get it, and/or help us spend more time coding by helping others in this forum, many thanks
|
|
The topic has been locked. |
|
|
|
Re:Mailman Mailinglist auto-subscribe plugin released
|
|
Date: 2005/12/09 22:39
|
By: mortenhm
|
Status: Moderator
|
|
|
Karma: 5  
|
|
Moderator  | Posts: 11 |   | |
|
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... -- Morten Holdflod Møller CB3PD subscribemailman
|
|
The topic has been locked. |
|
|
|
Re:Mailman Mailinglist auto-subscribe plugin released
|
|
Date: 2005/12/09 22:42
|
By: mortenhm
|
Status: Moderator
|
|
|
Karma: 5  
|
|
Moderator  | Posts: 11 |   | |
|
Bugfix release
Bugs fixed: * Rejected users are no longer added to the mailinglist -- Morten Holdflod Møller CB3PD subscribemailman
|
|
The topic has been locked. |
|
|
|
Re:Mailman Mailinglist auto-subscribe plugin released
|
|
Date: 2005/12/09 23:17
|
By: beat
|
Status: Admin
|
|
|
Karma: 241  
|
|
Admin  | Posts: 4061 |   | |
|
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... 
Look carefully : 
Backend:
| Code: |
$_PLUGINS->trigger( 'onBeforeUpdateUser', array(&$row,&$rowExtras));
|
Frontend:
| Code: |
$_PLUGINS->trigger( 'onBeforeUserUpdate', array(&$row,&$rowExtras));
|
It's not the same event. Frontdoor and Backend are opposite of each other, right ? You need to register to both events....
I'm not sure if it was planed like that 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 - Developer on Community Builder core Team - If you like CB and this forum, you will love Nick's CB 1.1 reference manual ! : Click here to Get it now  - Would like to help us move faster ? Get it, and/or help us spend more time coding by helping others in this forum, many thanks
|
|
The topic has been locked. |
|
|
|
Re:Mailman Mailinglist auto-subscribe plugin released
|
|
Date: 2005/12/10 00:35
|
By: mortenhm
|
Status: Moderator
|
|
|
Karma: 5  
|
|
Moderator  | Posts: 11 |   | |
|
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
OK!
I will give it a go! -- Morten Holdflod Møller CB3PD subscribemailman
|
|
The topic has been locked. |
|
|