Jul 05, 2009, 09:27 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
Search via SMF or Google: modx forums all of modxcms.com web
  MODxCMS.com   Forums   Help Login Register  
News:Read what MODx Developers say: MODx Dev. Blogs
Pages: [1] 2 3 ... 7   Go Down
  Print  
Author Topic: [Snippet] Newsletter (Improved version from Luca Allulli)  (Read 36698 times)
0 Members and 1 Guest are viewing this topic.
Djamoer
Emeritus
******
Posts: 1,495

No one can limit a man other than the man himself.


WWW
« on: Jan 18, 2006, 04:15 PM »


Name: Newsletter (Improved version from Luca Allulli)
For: MODx cms (modxcms.com)
Description: Database calendar module for MODx
Version: 0.2b
Written by: Wendy Novianto
Created: 1/18/2006
Modified: 1/19/2006

Fully Tested on MODx v0.9.1

Added RichTextEditor and HTML Editing option, before sending the newsletter out, if it's fetch from a page.


Hi,

I'm not trying to duplicate somebody else snippet, but I took Luca Allulli snippet and make it as an example for me to start building the newsletter from scratch. Ever since he is the pioneer, so credit still goes to him, even though the code is totally different, but the concept is still the same.

Things to note, this will use web user groups as the newsletter database, and allowing extra field as a textarea to insert more email into it. It's also able to copy the exact page view of the given document/page id and send it through email. So the newsletter template can be handled by the MODx engine.

Here is the full features listing, as well as the testing site.
http://test.djamoer.net/newsletter.html
Username: newsletter
Password: djamoer

Please try it out and report to me if you guys found anything weird going on with the snippet, which is what we usually call bugs Wink

I tested for a while, but I haven't fully tested the system capability of sending a lot of emails to users. If somebody willing to help me out as the beta tester, please let me know the end result of it.

Regards,

* Newsletter_v0.1b.snippet.tpl.txt (27.63 KB - downloaded 725 times.)
* Nerwsletter_v0.2a.snippet.tpl.txt (28.83 KB - downloaded 628 times.)
* Newsletter_v0.2b.snippet.tpl.txt (36.8 KB - downloaded 961 times.)
« Last Edit: Jan 27, 2006, 10:16 PM by Djamoer » Logged

Djamoer
Emeritus
******
Posts: 1,495

No one can limit a man other than the man himself.


WWW
« Reply #1 on: Jan 18, 2006, 04:16 PM »

Mark, I think it's better to approach it as a snippet rather than a module, so I came up with this approach.

Sorry for not continuing the modules that you've built.
Logged

davidm
MODx evangelist
Marketing & Design Team
*
Posts: 7,026


Software is like sex, it's better when it's free !


WWW
« Reply #2 on: Jan 18, 2006, 05:16 PM »

Wendy, I am amazed by all the things you come up with lately !
Man, are you hyperactive or what Wink ??

Anyway, I'll try this one out and report any problems I might encounter. I am glad to see this snippet being updated again, not to mention, improved Smiley
Logged

.: 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
Briggsy
Sr. Member
****
Posts: 372



WWW
« Reply #3 on: Jan 18, 2006, 05:40 PM »

Wicked..... I'm going to need a way to keep visitors updated of changes. Was going to run a separate Mailman annoucment list, but this might just do the trick, especially since it will send the updated page to the recipients.  Nice!

I'll have to play with it once you get the user database sorted. Not sure how it will work as the recipients may or may not have an existing web account which accesses other stuff.

So if they subscribe to the newsletter, and it just adds them to another group or something, that should work. However if it gives them a default web user account that would be bad, as that gives other access and I don't allow people to register for new accounts.

Guess I'll just wait and see Smiley
Logged

Emergency Management Academy of New Zealand
      http://www.emanz.ac.nz

MODx Sandbox   Login: sandbox  Password: castle

Admin Sandbox   Login: sandbox  Password: castle
Mark
Coding Team
*
Posts: 3,250


Ditto Developer


WWW
« Reply #4 on: Jan 18, 2006, 07:17 PM »

Wendy, my version was going to be a snippet in the end as well. I just coded the backend first (as a module) so that the code was cleaner. Did you ever try mine?
Logged

Djamoer
Emeritus
******
Posts: 1,495

No one can limit a man other than the man himself.


WWW
« Reply #5 on: Jan 18, 2006, 08:31 PM »

Wendy, my version was going to be a snippet in the end as well. I just coded the backend first (as a module) so that the code was cleaner. Did you ever try mine?
Yeap I did. I just found out that adding a more system to organize the template for the newsletter will add more task to achieve what I need right now. So I just use the current document/page on MODx to do the tricks. Later when I have some time, I will try to think of a better architecture in having this as a full-fledge newsletter system, like what you're planning to do, and we can work together on that Smiley

Quote
Wendy, I am amazed by all the things you come up with lately !
Man, are you hyperactive or what Wink ??
Ehm David, it's not that I'm hyperactive, it's just that I need to extend MODx to meet my project. Hope somebody will help me in improving the snippet for both newsletter and calendar.

Quote
I'll have to play with it once you get the user database sorted. Not sure how it will work as the recipients may or may not have an existing web account which accesses other stuff.

So if they subscribe to the newsletter, and it just adds them to another group or something, that should work. However if it gives them a default web user account that would be bad, as that gives other access and I don't allow people to register for new accounts.
What I'm planning to do with the user subscription part, it will just be the extended part of the websignup snippet. The only different, you need to choose the web group default for the signup, and make their username as their email address, and their password will be a random string which later can be reset, if you need to transfer the current newsletter user into your website user later on. This is the plan that Mark and the rest of the core team came up with, and I'm just trying to finish up their idea. So credit should go to Mark, Luca, and the rest of the core team.

Regards,
Logged

Djamoer
Emeritus
******
Posts: 1,495

No one can limit a man other than the man himself.


WWW
« Reply #6 on: Jan 19, 2006, 03:14 PM »

The first beta release of the snippet. It's suppose to be called done, but I haven't tested the capability of sending it to a lot of multiple users.

Please report back to me if somebody willing to beta tested this.

Regards,
Logged

MOZx
Guest
« Reply #7 on: Jan 20, 2006, 10:06 AM »

Quote
Congratulation, you've been subscribed to the system.
3 times, 3 congratulations: it's a lucky day Cheesy

Thanks you a lot for this very expected snippet.
Logged
Djamoer
Emeritus
******
Posts: 1,495

No one can limit a man other than the man himself.


WWW
« Reply #8 on: Jan 20, 2006, 10:34 AM »

Well, I actually want to make a validity check, to make sure that the user is on the group already or not, but it seems to me that it will be a lot of processing power again, because it needs to do a couple trip back to the database.

NOTE: When you unsubscribed, you're not being removed from the system, but you only going to be removed from the web group of the newsletter. f you decided to subscribed again, it will actually put you in to the group again, and this process can be repeated several times. The bad thing is, the system will use your email address as the username, so if you are a users of the web user, and you use a username different from your email address, then it will create a new accunt, when you subscribed to the newsletetr with email address as the username.
Logged

Dimmy
Testers
*
Posts: 1,898


Я не говорю по-русски 私は日本語を話さない


WWW
« Reply #9 on: Jan 20, 2006, 01:48 PM »

Huh
Quote
Description: Database calendar module for MODx
copy/past is nice (;
Logged

"They say if you play a Microsoft CD backwards, you hear satanic messages. That's nothing, because if you play it forwards, it installs Windows."
Nederlands beste portal voor pda en mobiel internet
Djamoer
Emeritus
******
Posts: 1,495

No one can limit a man other than the man himself.


WWW
« Reply #10 on: Jan 20, 2006, 07:53 PM »

Huh
Quote
Description: Database calendar module for MODx
copy/past is nice (;

lol, my bad. I'll fix it, when we reach 0.1 release, withuot the beta.

Any response yet from testing the system?
Do you guys think it's better to have captcha for subscribing to the system? Do you think having an option to send html mail with richtexteditor will be awesome? I have a couple idea here, but haven't got a chance to put those thing in this snippet.

Another thing, I think it's better to have another snippet called DocumentTools, which contains several features such as "send email to friend", "print page", "show document in pdf", "bookmark page", and etc.

WHat do you guys think? One stop solution for document side tools that might help improving the usability of website build using MODx. Somebody want to take on this project?
Logged

rthrash
Foundation
*
Posts: 10,471



WWW
« Reply #11 on: Jan 21, 2006, 11:02 AM »

rich text based HTML newsletters would be ideal... good stuff!
Logged

MODx is a framework that allows web professionals to turn over sites to end-users for daily maintenance without worrying. Community participation and questions are encouraged, especially when you help us help you, read the wiki, and review snippet parameters – even if you have to look at the source. Searching the forums helps, too.
Ryan Thrash
MODx Co-Founder
Principal @ Collabpad
work productively.
work intelligently.
work together.
Commodore64
Moderators
*
Posts: 93



WWW
« Reply #12 on: Jan 23, 2006, 02:52 PM »

Hi Wendy,

thank you for your very nice "credits" Smiley

You're very welcome to improve/redesign my Newsletter snippet. I didn't have the time to look at your new snippet yet. However, here are some old ideas I would have liked to implement, if I had time: feel free to do it yourself, if you haven't done it already.

* Multiple newsletters. Devote some web user groups (to be specified as snippet parameters) to "newsletter" groups; let web users subscribe/unsubscribe to these groups. When you post a news, you specify to which groups you want it to be sent (if a user belongs to more than one group, only one copy of the message should be sent to him!)

* Rich text editing.

* Page sending confirmation via Rich Text Editor. When you want to send the content of a page as a newsletter, you click on a link. Then the Rich Text Editor opens with the content of the page, letting you edit it, and send it to some newsletter groups, as specified in the first point.

* Integration with Newslisting. When you insert a new Newslisting news, the system offers to send it as a newsletter, too.
Logged
OpenGeek
MODx Co-Founder
Foundation
*
Posts: 5,814


damn accurate caricatures...


WWW
« Reply #13 on: Jan 23, 2006, 05:23 PM »

One another quick idea for this, based on a module I used with several Nuke forks; it would be cool to create a way to create plugins to be able to pull in any kind of new content from a site, from latest calendar events to latest blog posts, to latest links, etc.  Each "plugin" could be defined so that it can be configured to show x number of items (or whatever config options are approriate for the data being pulled by that plugin) and place them into the newsletter body.  You might be able to use placeholders in the newsletter body to include content from these different "newsletter content plugins" as selected for your newsletter (ignoring them and removing the leftover placeholders otherwise).

In this way, users could easily create and add their own newsletter content plugins (or whatever you want to call them, plugin is probably a bad choice of words here so as to avoid confusion with MODx plugins in general) for custom content they are maintaining in their MODx site.
Logged

Jason Coward
MODx Co-Founder
xPDO Founder
CTO @ Collabpad
work productively.
work intelligently.
work together.
Light is just a vibration of a note too. Everything is. You've got to keep that in mind.
  Frank Zappa
MOZx
Guest
« Reply #14 on: Jan 23, 2006, 05:38 PM »

Very nice idea to have in the end a multinewsletter possibilty in one site.

Database1: people interest by the 'Tutorials for MODx'.
Database2: people interest by a page 'Design tips with MODx'
Database3: et...
One or more newsletters for each section site or pages.
Sure: Subscribe / Unsubscribe for each newsletter for the same email account.

(sorry for my english 'codage' Cheesy)
Logged
Pages: [1] 2 3 ... 7   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP

Copyright © 2005-2008 MODxCMS, All rights reserved. Contact Us
Styles by ziworks.com

Powered by SMF | SMF © 2006-2008, Simple Machines LLC

Valid XHTML 1.0! Valid CSS!