Arrow Home arrow Forums
larger font smaller font default font Fixed screen resolution Auto adjust screen size

Joomlapolis Forums  


<< Start < Prev 1 2 Next > End >>
Mailman Mailinglist auto-subscribe plugin released
Date: 2005/12/09 20:40 By: mortenhm Status: Moderator  
Karma: 5  
Moderator

Posts: 11
graphgraph
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.

File Attachment:
File name: subscribemailman.zip
File size:10472 bytes

--
Morten Holdflod Møller
CB3PD subscribemailman
Click here to see the profile of this user 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
graphgraph
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
Click here to see the profile of this user 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
graphgraph
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
Click here to see the profile of this user 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
graphgraph
Bugfix release

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

File Attachment:
File name: ea65af9a735eeeddc9f444a894fb7519.
File size:10495 bytes

--
Morten Holdflod Møller
CB3PD subscribemailman
Click here to see the profile of this user 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
graphgraph
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
Click here to see the profile of this user 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
graphgraph
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
Click here to see the profile of this user The topic has been locked.

<< Start < Prev 1 2 Next > End >>

Documentation

Documentation Subscription Service
(updated for CB 1.2 RC2)

What?

Why?

Where?

Just click here for answers!

Click here for a yearly subscription: subscribe now

Download Latest Release

The latest stable Community Builder Release is version 1.1 for Joomla 1.0 and Mambo.
You need to be a registered member of Joomlapolis to download.

The latest release candidate of Community Builder is version 1.2 RC3, native for Joomla 1.0, 1.5 and Mambo.
It is available as "thank you" to all CB documentation subscribers at this time.

CB Login