Topic: Notify Users - backend module for emailing manager and/or web users  (Read 2155 times)

Pages: [1]   Go Down

#1: 16-Jan-2010, 04:37 PM

alik
Posts: 194

WWW
This is a thing coded for my site - I am sharing it because I saw several posts on this forum whose authors claimed that it is desirable.

Installation:
- download package in suitable archive format;
- extract package to the site's root preserving archive's internal structure or unpack it locally and send files over ftp;
- create new module named "Notify Users" and fill in its code block by pasting the content of "assets/modules/notify_users/notifyusers.txt";
- (possibly you need to re-login);
- enjoy emailing your manager/web users from within backend of your MODx site.

Some assumptions that I have made:
- web users who had registered via Websignup and did not activate their accounts are not listed as potential recipients;
- module sends emails via PHPMailer that is integrated into MODx distribution and therefore configuration of a proper method used for sending emails is required within PHPMailer itself (by default PHPMailer is set to use mail() function so it should fit most cases, but if an administrator of your hosting server turned this function off, then you need to adjust PHPMailer for another available method).

You can check for the newer version at http://setpro.pl/software/notify-users#attachments


* notifyusers-screenshot.jpg (25.45 KB, 640x480 - viewed 140 times.)
* notifyusers-0.3.1.tar.bz2 (4.73 KB - downloaded 29 times.)
* notifyusers-0.3.1.tar.gz (4.54 KB - downloaded 27 times.)
* notifyusers-0.3.1.zip (6.92 KB - downloaded 37 times.)
« Last Edit: 4-Feb-2010, 10:58 PM by alik »

#2: 17-Jan-2010, 01:44 AM


mrhaw
Posts: 2,237

modx == freedom

WWW
Wow, there is even BCC!!  Cool

You made my day!!  Grin
My playground: http://4up2date.info | Twitter: mrhaw
---> Check out: ReadSpeaker webReader Plugin | Support/Comments Thread

--=[ MR. HAW ]=--

#3: 17-Jan-2010, 01:52 AM


sharkbait
Posts: 2,004

hey alik - thank you - module's working great  Cheesy !

#4: 17-Jan-2010, 05:34 AM

Marketing & Design Team

davidm
MODx evangelist
Posts: 7,076

The best way to predict the future is to invent it

WWW
Very nice, this was one of my most wanted feature, adding to my "to test" list Smiley
.: nodeo.net : Pour un web libre, moderne et ouvert ! :: david-molliere.net : Suivez en "live" mes expérimentations et billets sur les CMS et autres applications web :.

*** Forums modxcms.fr Participez à l'élaboration du site MODx francophone ! ***

! Nouveau !  En live, ne manquez pas les news de modxcms.fr sur Twitter   ! Nouveau !

MODx est l'outil idéal pour les developpeurs et webdesigners qui cherchent un framework de gestion de contenu hautement flexible et performant, tout en étant simple d'accès pour les utilisateurs finaux.

Config : Apache 2.2.8 - MySQL 5.0.67 - PHP 5.2.8 | Debian 4.0 (Etch)

Réalisations sous MODx : | pargade-notaires.fr | soleil.info | gican.asso.fr | michelez-notaires.com | amadom.gerondicap.com | jocelyne-violet.net

#5: 22-Jan-2010, 02:30 PM

alik
Posts: 194

WWW
Version 0.2 has been attached to the first post.

Changes:
- now it is possible to add language file (under "/assets/modules/notify_users" folder) so the module will be displayed according to language set within system/user settings.

#6: 24-Jan-2010, 09:26 AM

alik
Posts: 194

WWW
Version 0.3 has been attached to the first post.

Changes:
- data flow was improved: now cancellation of a submit, unsuccessful form validation, and mail errors are preserving data in the mail form.

#7: 24-Jan-2010, 11:54 AM

Marketing & Design Team

davidm
MODx evangelist
Posts: 7,076

The best way to predict the future is to invent it

WWW
Very nice feature set, I definetly need to check this out Smiley
.: nodeo.net : Pour un web libre, moderne et ouvert ! :: david-molliere.net : Suivez en "live" mes expérimentations et billets sur les CMS et autres applications web :.

*** Forums modxcms.fr Participez à l'élaboration du site MODx francophone ! ***

! Nouveau !  En live, ne manquez pas les news de modxcms.fr sur Twitter   ! Nouveau !

MODx est l'outil idéal pour les developpeurs et webdesigners qui cherchent un framework de gestion de contenu hautement flexible et performant, tout en étant simple d'accès pour les utilisateurs finaux.

Config : Apache 2.2.8 - MySQL 5.0.67 - PHP 5.2.8 | Debian 4.0 (Etch)

Réalisations sous MODx : | pargade-notaires.fr | soleil.info | gican.asso.fr | michelez-notaires.com | amadom.gerondicap.com | jocelyne-violet.net

#8: 24-Jan-2010, 02:32 PM


mrhaw
Posts: 2,237

modx == freedom

WWW
@davidm Yes you do!  Smiley
My playground: http://4up2date.info | Twitter: mrhaw
---> Check out: ReadSpeaker webReader Plugin | Support/Comments Thread

--=[ MR. HAW ]=--

#9: 29-Jan-2010, 03:21 PM

wilcosky
Posts: 29

I'm going to try this out tonight. This should be added to the Modx Extras section.

#10: 31-Jan-2010, 04:26 AM

alik
Posts: 194

WWW
This should be added to the Modx Extras section.
My experience with "Extras" repository is unpleasant -- for each thing I tried to post there I was getting at least one error while posting/attaching to threads works smoothly and above expectation Smiley If you like this module, simply bookmark this thread or a link given in the first post.

#11: 4-Feb-2010, 11:10 PM

alik
Posts: 194

WWW
Version 0.3.1 has been attached to the first post.

Minor change:
- now active users are typographically differentiated from those blocked.

#12: 25-Feb-2010, 04:50 AM

wias
Posts: 7

If i don´t fill in "Extra Recipients (comma-separated email addresses)" with an email, it says i have omitted required fields.

#13: 25-Feb-2010, 07:28 AM

alik
Posts: 194

WWW
Thanks for this replay. I will check whether the module behaves improperly or not and post the result here.

#14: 25-Feb-2010, 03:26 PM

alik
Posts: 194

WWW
2wias
I looked into the both core code and my working copies of the module. It behaves properly.

The situation that you have described appears just in one case -- when you have no users in your system (except default admin account, i.e. yourself) -> it is shown on 1st screenshot. But the behavior of the module in this case is absolutely correct -- email should have at least one valid recipient so module (in the situation when there are no users) expects to obtain such a recipient from Extra Recipients field.

On the 2nd screenshot you can see a real system with one additional manager user and several web users.


* sshot_1.jpg (56.94 KB, 1152x864 - viewed 78 times.)

* sshot_2.jpg (75.93 KB, 1152x864 - viewed 79 times.)

#15: 8-Jul-2010, 07:13 AM

imandic
Posts: 67

WWW
Thanx alik - module is great...tested and working...
Pages: [1]   Go Up
0 Members and 1 Guest are viewing this topic.