Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#217 2012-05-17 18:57:44

frickinmuck
Member
Registered: 2008-05-01
Posts: 118

Re: mem_postmaster - Postmaster Revamp

What happened to this plugin? I can’t seem to download it from the link provided.


The AI does not hate you, nor does it love you, but you are made out of atoms which it can use for something else.

Offline

#218 2012-05-17 20:30:13

kees-b
Member
From: middelburg, nl
Registered: 2004-03-03
Posts: 235
Website

Re: mem_postmaster - Postmaster Revamp

frickinmuck wrote:

What happened to this plugin? I can’t seem to download it from the link provided.

You can find it here

kees

Offline

#219 2012-06-28 15:57:34

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,090
Website GitHub Mastodon Twitter

Re: mem_postmaster - Postmaster Revamp

In the postmaster manual it says that we can enter <txp:bab_pm_zemTime custom_field="zemSubscriberCustom2" /> should we want the subscription date.

I have tried numerous variations of that including <txp:zem_contact_zemTime custom_field="zemSubscriberCustom2" /> but nothing works. Can anybody shed some light?


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#220 2012-06-29 10:37:45

THE BLUE DRAGON
Member
From: Israel
Registered: 2007-11-16
Posts: 637
Website

Re: mem_postmaster - Postmaster Revamp

OK so after a lot of time I’m back using this plugin and here some things I notice:

1.
Installing v1.0.10, will not create the “bab_pm_subscribers” table in the database,
and that’s why you will get bunch of SQL errors.

So for now you will need to first install v1.0.7,
visit the “Postmaster” tab in the “Extensions”,
you will see some errors, ignore it,
then remove that version (1.0.7),
and install v1.0.10.

If you already installed v1.0.10 first, then you better not taking risks and totally remove the two other tables from your databse:
“bab_pm_list_prefs”
“bab_pm_subscribers_list”

A working installation will need all the 3 database tables that I just mentioned:
“bab_pm_list_prefs”
“bab_pm_subscribers”
“bab_pm_subscribers_list”

Then you will not get any errors.

2.
There is a small change you need to do to the plugin code,
Search for:

<tr id="nav-secondary"><td align="center" class="tabs" colspan="2">
		<td>

and remove the second <td> tag, this is just a syntax error that fixing it will make the menu to look better.

3.
If you wish to use some PHP inside your html-form, and want to link/include scripts and files from the root folder or so, then regular path to the files will not work.
You will need to use a global name $path_to_site; and set your path including it.
For example I use a script that takes the stylesheet and convert it to inline-style.
and also store a full .css file content in a variable, so this is how I set the path to the files:

<txp:variable name="the_contnet">
	all the html content goes here
</txp:variable>

<txp:php>
	global $variable;
	global $path_to_site;

	ob_start();
	include ($path_to_site.'/default.css');
	$the_css = ob_get_contents();
	ob_end_clean();

	// require
	require_once $path_to_site.'/css_to_inline_styles.php';

	// create instance
	$cssToInlineStyles = new CSSToInlineStyles($variable['the_contnet'], $the_css);

	// grab the processed HTML
	$processedHTML = $cssToInlineStyles->convert();
	echo $processedHTML;
</txp:php>

maybe there is better way instead of using $path_to_site;, but that’s what I found working good.
(I don’t know PHP)
BTW: if you want then here’s the “css_to_inline_styles” script that I use: http://classes.verkoyen.eu/css_to_inline_styles

.
.

What I also wish is to automatically send a mail to a subscriber on birthday, base on the date from each subscriber custom-field.
Do you have any idea how can we do that please?

Offline

#221 2012-06-29 12:49:42

THE BLUE DRAGON
Member
From: Israel
Registered: 2007-11-16
Posts: 637
Website

Re: mem_postmaster - Postmaster Revamp

I get this error when try to add a new subscriber:

Warning: Unknown column 'newSubscriberFirstName' in 'field list' insert into bab_pm_subscribers set `newSubscriberFirstName` = 'My first name', `newSubscriberLastName` = 'My last name', `newSubscriberEmail` = 'name@example.com', 
`newSubscriberCustom1` = '', `newSubscriberCustom2` = '', `newSubscriberCustom3` = '', `newSubscriberCustom4` = '', `newSubscriberCustom5` = '', `newSubscriberCustom6` = '', `newSubscriberCustom7` = '', `newSubscriberCustom8` = '', `newSubscriberCustom9` = '', 
`newSubscriberCustom10` = '', `newSubscriberCustom11` = '', `newSubscriberCustom12` = '', `newSubscriberCustom13` = '', `newSubscriberCustom14` = '', `newSubscriberCustom15` = '', `newSubscriberCustom16` = '', `newSubscriberCustom17` = '', `newSubscriberCustom18` = '', 
`newSubscriberCustom19` = '', `newSubscriberCustom20` = '', `unsubscribeID` = '6465115ac46034ff43d21a48b0f258aa' in /textpattern/lib/txplib_db.php on line 89

Warning: 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 
insert into bab_pm_subscribers_list set list_id = 14, subscriber_id = in /textpattern/lib/txplib_db.php on line 89

Offline

#222 2012-06-29 13:55:47

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,090
Website GitHub Mastodon Twitter

Re: mem_postmaster - Postmaster Revamp

Hi Gil

I only have this problem for our ‘off line’ subscribers but the front end forms work just fine. Is this the case with you?


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#223 2012-06-29 15:07:36

THE BLUE DRAGON
Member
From: Israel
Registered: 2007-11-16
Posts: 637
Website

Re: mem_postmaster - Postmaster Revamp

colak wrote:

Hi Gil

I only have this problem for our ‘off line’ subscribers but the front end forms work just fine. Is this the case with you?

Yep I’m trying to enter new subscribers manually, and then get the error,
I didn’t tried using a signup form, as I don’t use it for now.

I see that v.1.0.7 set 10 custom fields, and v.1.0.10 sets 20 custom fields.

I just went all the way back to the old original plugin which for now seems to work fine and do no problems at all, but I’m still playing with it so can’t say for sure for now.
I went to the database and removed all the 3 tables and all the preferences from the “txp_prefs” table.

If I will face with problems with the old plugin I will try once again the new one in version 1.0.10 and as you said I will use a signup form, if the form will work then I will just put it into an iframe or smd_tabber or so, if the signup will not work then I will go to use v.1.0.7.

I wish there was a change-log to see why we should use v.1.0.10 on top of v.1.0.7, if it’s only about these SQL errors show-up and do no harm then that’s fine, worst case I will hide the errors using JS or so.

Offline

#224 2012-06-30 13:15:42

THE BLUE DRAGON
Member
From: Israel
Registered: 2007-11-16
Posts: 637
Website

Re: mem_postmaster - Postmaster Revamp

OK day #3 !

The old plugin is not that good after all, because you can’t get the direct unsubscribe link to work,
if you use the tag <txp:bab_pm_unsubscribeLink /> then while sending you will get an error:

Warning: tag does not exist in /textpattern/publish.php on line 1202

.
.
So I’m back to the new one using v1.0.10,
can we please get the direct unsubscribe link to work in this version?
if so then how please?

Offline

#225 2012-06-30 13:45:34

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,090
Website GitHub Mastodon Twitter

Re: mem_postmaster - Postmaster Revamp

Hi Gil
I always hand coded the link to the unsubscribe page in the newsletter form


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#226 2012-06-30 13:56:18

THE BLUE DRAGON
Member
From: Israel
Registered: 2007-11-16
Posts: 637
Website

Re: mem_postmaster - Postmaster Revamp

colak wrote:

Hi Gil
I always hand coded the link to the unsubscribe page in the newsletter form

Hi hi Yiannis!
Do you mean:
1. A regular manually unsubscribe page with an unsubscribe form into it.
2. A link to the direct unsubscribe page.
?

If to the direct, then how do I build the link please, what parameters do I need to set?

Offline

#227 2012-06-30 14:40:15

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,090
Website GitHub Mastodon Twitter

Re: mem_postmaster - Postmaster Revamp

I have made a template with

<txp:zem_contact to="mail@mail.com" label="" thanks="We are sorry to see you go. We will still be here should you ever change your mind.">
<txp:zem_contact_email name="zemSubscriberEmail" label="Your Email:" /><br />
<txp:zem_contact_checkbox name="zemUnSubscribe" label="Unsubscribe" required="no" /><br />
<txp:zem_contact_submit label="unsubscribe" />
</txp:zem_contact>

and it has its own url

When I send emails I use this form

Dear <txp:bab_pm_data display="subscriberFirstName" />,

<txp:bab_pm_data display="Body" strip_html="yes" />

http://www.neme.org
http://neme-imca.org
===========
Please do not reply to this email. Should you wish to get in touch with us, you may do so by using our online form on
http://www.neme.org/contact/
===========
You are receiving this message because your email is in the NeMe database. If you do not wish to receive emails from us please go to
http://www.neme.org/unsubscribe-url-here
and enter your email to unsubscribe. Once you do that, your name and email will be completely deleted from our database.


<txp:bab_pm_mime type="text" />

Dear <txp:bab_pm_data display="subscriberFirstName" />,

<txp:bab_pm_data display="Body" strip_html="yes" />

http://www.neme.org
http://neme-imca.org
===========
Please do not reply to this email. Should you wish to get in touch with us, you may do so by using our online form on
http://www.neme.org/contact/
===========
You are receiving this message because your email is in the NeMe database. If you do not wish to receive emails from us please go to
http://www.neme.org/unsubscribe-url-here
and enter your email to unsubscribe. Once you do that, your name and email will be completely deleted from our database.

<txp:bab_pm_mime type="html" />

<table width="600" border="0" align="center" cellpadding="0" cellspacing="0" style="font-family:Arial, Helvetica, sans-serif; font-size:12px;">
<tr>
<td align="left" valign="top" style="width:50px; border-bottom:1px solid #666666;padding:10px 0"><txp:image id="329" /></td>
<td align="right" valign="top" style="border-bottom:1px solid #666666;padding:10px 0"><p style="margin-left:5px;"><a href="http:www.neme.org/">www.neme.org</a><br /><a href="http:neme-imca.org/">www.neme-imca.org</a><br /><a href="http://www.neme.org/contact/">NeMe contact</a></p></td>
</tr>
<tr>
<td colspan="2" style="padding:10px 0"><p>Dear <txp:bab_pm_data display="subscriberFirstName" />,</p><txp:body /></td>
</tr>
<tr>
<td colspan="2" style="border-top:1px solid #666666;padding:10px 0"><p>Please do not reply to this email. Should you wish to get in touch with us, you may do so by using our online form on<br /><a href="http://www.neme.org/contact/">www.neme.org/contact/</a></p></td>
</tr>
<tr>
<td colspan="2" style="border-top:1px solid #666666;padding:10px 0"><p>You are receiving this message because your email is in the NeMe database. If you do not wish to receive emails from us please go to<br /><a href="http://www.neme.org/newsletter-unsubscribe/">www.neme.org/newsletter-unsubscribe/</a><br />and enter your email to unsubscribe. Once you do that, your name and email will be completely deleted from our database.</p></td>
</tr>
</table>

<txp:bab_pm_mime type="end" />

Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#228 2012-06-30 15:05:58

THE BLUE DRAGON
Member
From: Israel
Registered: 2007-11-16
Posts: 637
Website

Re: mem_postmaster - Postmaster Revamp

OK we can get the direct unsubscribe link to work!

it’s simply done by linking to the unsubscribe page with the parameter uid (unsubscribeID)
For example: http://example.com/unsubscribe?uid=264ba0db8e8e1586d53a647d848fa04a

In your “unsubscribe” page, you will need to just include this tag anywhere in it: <txp:bab_pm_unsubscribe />
example:

<!DOCTYPE html>
<html>
<head>
</head>
<body>
you have been successfully unsubscribed from our newsletter!
<txp:bab_pm_unsubscribe />
</body>
</html>

Now the question is how do we get the user unsubscribeID ?
I tried using both <txp:bab_pm_data display="subscriberID" /> and <txp:bab_pm_data display="unsubscribeID" /> but with no luck :/
any idea how can we output it please?
(we are almost there!)

EDIT: I found a way! read it here

Last edited by THE BLUE DRAGON (2012-06-30 21:25:53)

Offline

Board footer

Powered by FluxBB