1 of 3
1
Multiple Newsletters Extension
Posted: 03 October 2006 08:06 AM   [ Ignore ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  879
Joined  02-05-2002

Hi all,

THANKS to Paul!
This extension is based on the “Newsletter Extension” Paul quietly released in this thread.

IMPORTANT!
This extension does not play nice with Pauls extension, make sure you disable that one first.
sorry Paul wink

The extension allows you to create multiple newsletters, based on regular templates.
You can also specify a default subject if you like.

I created it with multi language websites in mind, but it can be used however you see fit.

Please, please read the README for instructions first!

After reading the readme and setting up your newsletters you can access them by clicking the appropriate Tab.
Your Communicate page will still works as usual! (unlike Pauls extension).

Installation should be pretty easy but the Tabs part is a but unusual, feel free to spam me with questions if you have any.

EDIT1: updated to 1.1
EDIT2: Updated the extension to play nice with other extensions using the same hook.

File Attachments
multiple_newsletters_extension_1.1.zip  (File Size: 5KB - Downloads: 779)
 Signature 

Member of the EE Pro Network

Profile
 
 
Posted: 03 October 2006 08:20 AM   [ Ignore ]   [ # 1 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  768
Joined  03-16-2002

Thanks! I’ll definitely test it as soon as time permits.

Profile
 
 
Posted: 04 October 2006 06:20 AM   [ Ignore ]   [ # 2 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  879
Joined  02-05-2002

I updated the extension to version 1.1.

Version 1.1 adds a “Custom Javascript” field which you can use to add some extra javascript to the page, you can use this to select checkboxes, set the value of drop-down menus etc. so your client does not have to worry about that part.

You could add this for example:

// ============================================
// Formatting (plain, html)
document.forms['0'].mailtype.value ='html';

// Word Wrapping (y, n)
document.forms['0'].wordwrap.value ='n';

// Priority (1, 2, 3, 4, 5)
document.forms['0'].priority.value ='3';

// Send to Mailing Lists (list_1, list_2, etc.)
document.forms['0'].list_1.checked = true;
// ============================================

Of course this feature requires some javascript knowledge.

If you were using 1.0 you’ll have to update your language file to add the Javascript field.

Enjoy

 Signature 

Member of the EE Pro Network

Profile
 
 
Posted: 15 February 2007 10:33 AM   [ Ignore ]   [ # 3 ]  
Summer Student
Avatar
Total Posts:  28
Joined  01-01-2007

Hi, trying desperately to get this to work so I can give it a whirl.  I changed the variable names in both the extension and language files, enabled the extension (Paul Burdick’s has been disabled - it’s didn’t do what I needed anyway) and added the tab as you suggested.  Once I clicked on the tab I got this error message:

Notice: Uninitialized string offset: 0 in /www/pmh5340/public_html/publish/extensions/ext.multiple_newsletters.php on line 170

Notice
: Undefined index: 1 in /www/pmh5340/public_html/publish/extensions/ext.multiple_newsletters.php on line 172

Notice
: Uninitialized string offset: 0 in /www/pmh5340/public_html/publish/extensions/ext.multiple_newsletters.php on line 175
MySQL ERROR
:

Error Number: 1064

Description
: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1

Query
: SELECT group_name FROM exp_template_groups WHERE group_id =

Any thoughts?

—-EDIT—-

I hadn’t hit submit on the email template setup page.  That’s what threw the error.  This is pulling content exactly as I had hoped.  So far, so good.

Thanks!
Scott

 Signature 

What’s so great about sliced bread?

Profile
 
 
Posted: 07 March 2007 02:49 PM   [ Ignore ]   [ # 4 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  427
Joined  10-10-2004

I installed this on some test sites and had no problems—it’s a really neat solution that you came up with. But I tried it on a live site and the “create newsletter tab” link did not show up in the newsletter extension settings. Any thoughts why that happened and any steps to workaround that?

Thanks!

Profile
 
 
Posted: 07 March 2007 02:57 PM   [ Ignore ]   [ # 5 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  879
Joined  02-05-2002

No idea why the link isn’t showing.

There is a simple workaround for creating tabs.
Point your browser to this page and change the last part of the URL to match the name of your newsletter.

http://domain.com/system/index.php?S=0&C=myaccount&M=tab_manager&link=C—communicate/newsletter—NEWSLETTER_NAME

 Signature 

Member of the EE Pro Network

Profile
 
 
Posted: 07 March 2007 02:59 PM   [ Ignore ]   [ # 6 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  427
Joined  10-10-2004

Great, I’ll give that a shot. Thanks for the quick response!

Profile
 
 
Posted: 07 March 2007 03:04 PM   [ Ignore ]   [ # 7 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  879
Joined  02-05-2002

Those links are actually stored in the language file, could you chack and make sure you have the latest version?

it should look something like this for each newsletter:

<?php

$L
= array(

"EN_subject" =>
"Subject",
"EN" =>
"English Template - <a target='_blank' href='index.php?S=0&C=myaccount&M=tab_manager&link=C--communicate/newsletter--EN'>Create Tab</a>",
"EN_scripts" =>
"Custom Javascript",

etc...

 Signature 

Member of the EE Pro Network

Profile
 
 
Posted: 07 March 2007 03:10 PM   [ Ignore ]   [ # 8 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  427
Joined  10-10-2004

Yes, that is what I have:

"EN_subject" =>
"Subject",
"EN" =>
"English Template - <a target='_blank' href='index.php?S=0&C=myaccount&M=tab_manager&link=C--communicate/newsletter--EN'>Create Tab</a>",
"EN_scripts" =>
"Custom Javascript",

Profile
 
 
Posted: 07 March 2007 03:12 PM   [ Ignore ]   [ # 9 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  879
Joined  02-05-2002

Ok, thanks.

Still no idea why the link isn’t showing up ohh

 Signature 

Member of the EE Pro Network

Profile
 
 
Posted: 07 March 2007 05:10 PM   [ Ignore ]   [ # 10 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  427
Joined  10-10-2004

Just a thought but I’ve got the multi-text extension and was wondering if that lanaguage file being so closely named to multiple_newsletters might have contributed to the problem. I may investigate this at a later time.

Profile
 
 
Posted: 09 May 2007 03:11 AM   [ Ignore ]   [ # 11 ]  
Lab Assistant
RankRank
Total Posts:  258
Joined  05-26-2003

Hi Cocoaholic,
just a couple of q’s about your ext..

We currently have an english newsletter on our site, but we would slowly like to roll out also an italian, french and spanish version.

Ideally visitors would be able to choose which version they can subscribe to and receive the email confirmation in their native language. Is this what your extension achieves?

thanks, kenny

 Signature 

ExpressionEngine 1.6.4 - Build:  20080808

Profile
 
 
Posted: 09 May 2007 03:42 AM   [ Ignore ]   [ # 12 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  879
Joined  02-05-2002

Hi Kenny,

Not exactly, but you can use it for the purpose.
All the extension does is allow you to use regular templates as a basis for (more than one) newsletters.

Visitors that visit your site cannot subscribe to a newsletter directly, they subscribe to a mailinglist, and you decide what to send to that particular list. see docs.

You could have a mailinglist for each language, and setup the extension to check (select) the correct mailinglist by default in the communicate page.

There are some examples on how to do this in the README.txt

I might look into updating the extension and add some more settings instead of having to do this manually using javascript.

 Signature 

Member of the EE Pro Network

Profile
 
 
Posted: 09 May 2007 03:58 AM   [ Ignore ]   [ # 13 ]  
Lab Assistant
RankRank
Total Posts:  258
Joined  05-26-2003

Hi,
yes that is exactly what i have done (set up individual mailing lists), however there seems to be only one Mailing List Activation Email template. I suppose I could include text in all languages in this template but that is a bit messy. I was wondering if I could use an if structure in this template to sniff out what mailing list is active and display only the relevent text.

 Signature 

ExpressionEngine 1.6.4 - Build:  20080808

Profile
 
 
Posted: 24 August 2007 12:43 AM   [ Ignore ]   [ # 14 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  599
Joined  10-14-2005

Hi Cocoaholic. This sounds like a very exciting extension. However, I can’t get the tabs to appear in the communicate tab, running EE 1.6. Any ideas?

 Signature 

Nathan Pitman

Nine Four Ltd - a member of the EEPro Network

Profile
 
 
Posted: 24 August 2007 01:38 AM   [ Ignore ]   [ # 15 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  879
Joined  02-05-2002

Hi nathan,

The tabs should appear as a regular tab in the tab manager.
I just tested on 1.6 and it seems to be working fine.

 Signature 

Member of the EE Pro Network

Profile
 
 
Posted: 24 August 2007 03:59 AM   [ Ignore ]   [ # 16 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  599
Joined  10-14-2005

Ok, my bad. I was expecting to see a new ‘sub tab’ on the communicate page which would allow me to select my template. I understand how this works now, though I think a better implementation would be to introduce a drop down select on the right hand side of the communicate page which allows you to select from:

Template:

- None
- Monthly News
... etc

The select could trigger a page redirect ‘onchange’ and warn the user that they will loose any content that they have input. This would be far more intuitive I think, plus if you have lots of templates, you don’t want to have to add loads of tabs to get to them. smile

That being said, this could well turn into one of the most fantastic extensions to the control panel that I have seen since the ‘Pages’ module. Keep up the good work!

 Signature 

Nathan Pitman

Nine Four Ltd - a member of the EEPro Network

Profile
 
 
Posted: 24 August 2007 04:03 AM   [ Ignore ]   [ # 17 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  879
Joined  02-05-2002

Thanks, I might look into integrating it into the Communicate page, sounds like a good idea.

 Signature 

Member of the EE Pro Network

Profile
 
 
Posted: 05 September 2007 12:54 PM   [ Ignore ]   [ # 18 ]  
Grad Student
Rank
Total Posts:  55
Joined  10-15-2005

Some of the people are seeing blank emails from the newsletters. The two people I know of so far use SBC Yahoo for the email. Has there been any problems reported by others? Or is there an update to the newsletter extension?

Profile
 
 
   
1 of 3
1
 
‹‹ Checkboxes      Markdown and Smarty Pants ››
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 66471 Total Logged-in Users: 35
Total Topics: 84870 Total Anonymous Users: 21
Total Replies: 455376 Total Guests: 219
Total Posts: 540246    
Members ( View Memberlist )