Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#217 2007-04-18 23:17:20

benbruce
Plugin Author
Registered: 2006-01-13
Posts: 328
Website

Re: [archived] Postmaster -- A simple email-on-post / newsletter manager

Sugoo,

I had a thought which is you should paste the new code into the Postmaster Library, since that may not change when the next version of Postmaster comes out — that would save you some trouble.

kvnmcwebn,

It sounds like you’re running into this issue here. There is a “fix” you can try (it worked for me but not for others) and notice this is unresolved. If you can try it in a different browser, or if you can submit your setup here so we can keep aggregating information on this problem. It’s possible this will just “go away” with the next version.

  • Ben

Offline

#218 2007-04-19 15:36:24

gemal
Member
From: Copenhagen, Denmark
Registered: 2007-01-09
Posts: 107
Website

Re: [archived] Postmaster -- A simple email-on-post / newsletter manager

1) Is there a way to require a confirm mail when you subscribe?

2) Is there a way to have <txp:bab_pm_unsubscribe /> return a error when it doesn’t succed? Fx if you click on the link multiple times. It only the first time the user is actually removed

Offline

#219 2007-04-19 18:14:16

sugoo
Member
Registered: 2006-05-29
Posts: 20

Re: [archived] Postmaster -- A simple email-on-post / newsletter manager

benbruce wrote:

Sugoo,
I had a thought which is you should paste the new code into the Postmaster Library, since that may not change when the next version of Postmaster comes out — that would save you some trouble.

even better! thanks!

Offline

#220 2007-04-19 19:41:49

kvnmcwebn
Member
From: Ireland
Registered: 2007-01-27
Posts: 724
Website

Re: [archived] Postmaster -- A simple email-on-post / newsletter manager

hi ben,
k, the browser’s i am using are firefox and safari 2.X mac os x 10.4.8.
Turned off pop up blocking in firefox but still no getting out of the refresh loop. However manually refreshing in safari worked – thanks for that. Also when i select the test button both browsers said it had sent.

Regarding what you said about submitting my setup.
Will this cover do or do you want more info?
I’ll give you access to the admin if you want.

Last edited by kvnmcwebn (2007-04-19 19:44:35)


its a bad hen that wont scratch itself.
photogallery

Offline

#221 2007-04-19 22:57:33

kvnmcwebn
Member
From: Ireland
Registered: 2007-01-27
Posts: 724
Website

Re: [archived] Postmaster -- A simple email-on-post / newsletter manager

Darn this is a handy plugin.

Im trying to send an image out to subscribers with it. – But i think i need some help because
nothing is showing up in the emails at all now after i modified the form…
Heres my form.

$listEmailForm = <<<eop_form

<txp:bab_pm_mime type=“text” />
Dear <txp:bab_pm_data display=“name” />,
The weekly image at <txp:site_url /> has been posted.
Image Discription: <txp:bab_pm_data display=“excerpt” />
View it here: <txp:bab_pm_data display=“link” />

<txp:bab_pm_mime type=“html” />
<txp:bab_pm_data display=“image” />

eop_form;

Does that pm_data = “image” need the image number or anything and does it need the mime type before it?

Thanks in advance. sorry for the ignorance.


its a bad hen that wont scratch itself.
photogallery

Offline

#222 2007-04-20 00:05:27

quickestpastor
New Member
Registered: 2007-03-18
Posts: 3

Re: [archived] Postmaster -- A simple email-on-post / newsletter manager

Great plugin,

Is there a way to set up a list of the subscribers from a postmaster list on a textpattern page? I am using Postmaster to gather contact info and would like to set up a directory of sorts so that people can use it to contact other people in the list. (it would be password protected of course)

thanks jason

Offline

#223 2007-04-20 06:53:46

benbruce
Plugin Author
Registered: 2006-01-13
Posts: 328
Website

Re: [archived] Postmaster -- A simple email-on-post / newsletter manager

gemal,

confirmation could be done, sure. It just hasn’t been :). It’s on the Feature Request list. As for returning a message when it fails to unsubscribe … it looks to me like it should. May I ask you to go into your Postmaster Library plugin, right near the top (about 20-30 lines down), and look for this …

// ---- BAB_PM_UNSUBSCRIBE ------------------------------------------------

… underneath there, do you see a line of code like this …

return 'That is not a valid unsubscription. Please contact the list administrator or website owner. ';

… or what do you see in that block of code?

The line I’m seeing should be pulled out into the preferences in any case, but I’m wondering if I’m looking at an older version and it WAS pulled out.

kvnmcwebn,

Thanks for your info. We’ll just add it to the list and at some point we’ll see the bug.

As for your your form, it looks like you’re in the PHP code? You shouldn’t need to go into the PHP code to create the forms — just go to the TXP > Presentation > Forms tab and create a new one. In it, paste this (from the bit you posted):

<txp:bab_pm_mime type=“text” />
Dear <txp:bab_pm_data display=“name” />,
The weekly image at <txp:site_url /> has been posted.
Image Discription: <txp:bab_pm_data display=“excerpt” />
View it here: <txp:bab_pm_data display=“link” />
<txp:bab_pm_mime type=“html” />
<txp:bab_pm_data display=“article_image” />
<txp:bab_pm_mime type=“end” />

Just to be clear: this will show one of two emails to your subscriber, depending on whether or not their email client accepts HTML. If it does accept HTML, the email will be JUST the image (all that’s below the HTML mime is the image tag) — none of that text will show. If it does not, then the email will be all the text, with the link. If you wanted the text to show in the HTML version, you need to place that in there as well. Something like this …

<txp:bab_pm_mime type=“text” />
Dear <txp:bab_pm_data display=“name” />,
The weekly image at <txp:site_url /> has been posted.
Image Discription: <txp:bab_pm_data display=“excerpt” />
View it here: <txp:bab_pm_data display=“link” />
<txp:bab_pm_mime type=“html” />
Dear <txp:bab_pm_data display=“name” />,
Here's the weekly image from <txp:site_url />:
<txp:bab_pm_data display=“article_image” />
Image Discription: <txp:bab_pm_data display=“excerpt” />
View it here: <txp:bab_pm_data display=“link” />
<txp:bab_pm_mime type=“end” />

Finally, the tag <txp:bab_pm_data display=“article_image” /> uses the article_image field from the write tab to call the image — so you’ll need to have associated an image with the article you’re launching your emails from in order for that tag to display anything.

Is all of that making sense? Try here for pretty extensive documentation.

quickestpastor,

There’s not currently a tag that does this, but it wouldn’t be too hard.

  • Ben

Offline

#224 2007-04-20 21:03:59

kvnmcwebn
Member
From: Ireland
Registered: 2007-01-27
Posts: 724
Website

Re: [archived] Postmaster -- A simple email-on-post / newsletter manager

Hi Ben, first thanks for the brilliant reply. The multipart mime solution makes perfect sense. But im confused about this:

>>As for your your form, it looks like you’re in the PHP code?

Yes because after going through the documentation a couple times i didnt understand how postmaster would insert the form into the article i was trying to mail. I still havnt coped on. I took the examples you provided, which btw are dead on, and created a form called postmaster, type = misc. I even tried inserting <txp:output_form form=“postmaster” /> into the article i was trying to send.
How does this work?


its a bad hen that wont scratch itself.
photogallery

Offline

#225 2007-04-20 22:55:11

benbruce
Plugin Author
Registered: 2006-01-13
Posts: 328
Website

Re: [archived] Postmaster -- A simple email-on-post / newsletter manager

kvnmcwebn,

Have you read the tutorial here? It takes you through the basic steps so that you get a better understanding of what’s going on with this plugin.

I think your confusion is in the difference between “inserting a form into an article” or “inserting parts of an article into a form”. For Postmaster, the email template is the FORM itself — this is what Postmaster emails. The bab_pm_data tag pulls in data from the article into the form, so that each email can be fully customized. When you select “Yes” on the write tab, and a list, Postmaster takes the form you’ve associated with that list, inserts the content from the article (if any — it’s not required) and sends the mail. It’s associating a form with a list that I think you’re missing.

Do read through the Postmanual to see if that helps — if you’ve already read through it and it’s not helping, please let me know where it’s going astray.

  • Ben

Last edited by benbruce (2007-04-21 03:19:58)

Offline

#226 2007-04-22 14:24:42

kvnmcwebn
Member
From: Ireland
Registered: 2007-01-27
Posts: 724
Website

Re: [archived] Postmaster -- A simple email-on-post / newsletter manager

Hi,
I did read the tutorial but i didnt read it carefully enought. After re-reading it again i see how it works. however if i put anything at all, even the simple default form into the list>form field than any emails sent from postmaster are blank. I think it might be related to the browser issue.
thanks


its a bad hen that wont scratch itself.
photogallery

Offline

#227 2007-04-23 18:39:49

kvnmcwebn
Member
From: Ireland
Registered: 2007-01-27
Posts: 724
Website

Re: [archived] Postmaster -- A simple email-on-post / newsletter manager

hi,
I downloaded netscapte mac and everything sends fine but still anytime i put anything in the form field the emails are blank.


its a bad hen that wont scratch itself.
photogallery

Offline

#228 2007-04-23 18:56:22

benbruce
Plugin Author
Registered: 2006-01-13
Posts: 328
Website

Re: [archived] Postmaster -- A simple email-on-post / newsletter manager

kvnmcwebn,

It’s very hard for me to know exactly what you are doing on your end, but if I’m reading correctly, I think you need to:

  • Put your form — your email template — in a FORM, using TXP > Presentation > Forms. Create a new form, called “pm_test” and paste in your email template*
  • Now go to TXP > Extensions > Postmaster > Lists and either create a new list “test” or edit an existing list
  • On the edit screen, paste “pm_test” into the form field and save your changes.
  • Now go to the TXP > Content > Write screen, pull up an existing article, select the list you just edited from the dropdown, select “Yes” and click “Save.”

Let me know if that works.

  • Ben
*ie, <txp:bab_pm_mime type=“text” />
Dear <txp:bab_pm_data display=“name” />,
The weekly image at <txp:site_url /> has been posted.
Image Discription: <txp:bab_pm_data display=“excerpt” />
View it here: <txp:bab_pm_data display=“link” />
<txp:bab_pm_mime type=“html” />
<txp:bab_pm_data display=“article_image” />
<txp:bab_pm_mime type=“end” />

Last edited by benbruce (2007-04-23 18:56:51)

Offline

Board footer

Powered by FluxBB