Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#136 2006-09-30 23:33:13
Re: [archived] bab_newsletter: Newsletter Manager for Textpattern
<strong>Nice one Ben,</strong> this seems like an excellent plug in. Much easier for clients to understand than phplist. Really looking forward to the increased mailing size too.
I have one feature request which is for an unsubscribe form to go on the unsubscribe page if it hasn’t been arrived at from an email. This would mean that people can unsubscribe if they don’t have the email for some reason.
Keep up the great work and feel free to point us towards a tip jar or wish list as I’m sure I’ll use this on client websites.
<strong>Jordi</strong>
I haven’t tried it yet, but it looks like the way to do this is to use a custom subscribe form. I’m guessing that anything within the form will be replaced with the sucess message.
Last edited by fineartdavid (2006-09-30 23:39:12)
Offline
#137 2006-10-02 19:01:16
Re: [archived] bab_newsletter: Newsletter Manager for Textpattern
Thanks David, I’ll try this, it really seems the way to go.
Offline
#138 2006-10-03 03:00:28
Re: [archived] bab_newsletter: Newsletter Manager for Textpattern
Hi all.
I would like to know if it’s possible to do a little merge between bab_newsletter and zem_contact_reborn.
The scenario.
A client needs the following: when a visitor contacts him using the contact form (zem_contact_reborn), the client would like to register the name and e-mail of the visitor into a database.
The idea is that the zem_contact form could also work as a bab_suscribe form. So, the name and e-mail fields and the submit button should be “shared”. The submit button should trigger both actions: send the contact form and add the data to the bab_newsletter database table.
I think an “easy-to-implement” approach could be the following: a checkbox before the submit button. That checkbox, if checked, will trigger the suscription (= will trigger the action of bab_suscribe).
Does this need a true work of merging both plug-ins codes or is there any possible workaround by adding some HTML (related to bab_suscribe) inside a zem_contact form?
That’s the most I can do with my knowledge, so I will try that and will come to share the results!
Thanks <small>and excuse my poor english</small>.
Last edited by maniqui (2006-10-03 03:41:29)
Offline
#139 2006-10-03 08:50:09
Re: [archived] bab_newsletter: Newsletter Manager for Textpattern
The only thing I would say about that idea, if it is possible, is that you would have to make it very clear that they would be subscribed. The law can be quite strict about getting permission to add subscribers in some countries.
Offline
#140 2006-10-03 12:46:48
Re: [archived] bab_newsletter: Newsletter Manager for Textpattern
Yes, fineartdavid. Thanks for the advice.
That’s why I thought about a checkbox (to be or not to be added to the database).
Although, the original idea is to do it silently, just to keep a record of the visitors that contacted the client.
Offline
#141 2006-10-03 13:04:21
Re: [archived] bab_newsletter: Newsletter Manager for Textpattern
maniqui, have a look at the post from DaveR in the <a href=“http://forum.textpattern.com/viewtopic.php?pid=119388#p119388”>zem_contact_reborn</a> topic. I think that is very similar to what you want.
Offline
#142 2006-10-03 13:48:00
Re: [archived] bab_newsletter: Newsletter Manager for Textpattern
Hello all,
I’m working on a release of a major update to the EOP plugin for 4.0.4 that has bulk mailing, and uses ZEM_CONTACT_REBORN as its subscription form (seriously close now … I’ve sent it to the plugin developers mailing list for testing — anyone interested, please contact me at txpplugins@benbruce.com). The ZCR bridge is really easy to set up — but in order to get it to work with your current plugin you’d need some work. Here’s some code and instructions (UNTESTED — I just grabbed code and instructions from the new release and tweaked it) to try:
<P>*Place this at the very top of your plugin:*</p>
<code>
//public-side, to register zem_contact
register_callback(‘bab_nm_zemcontact_submit’,‘zemcontact.submit’);
</code>
<p>*Place this at the very bottom of your plugin:*</p>
<code>
// ZEM_CONTACT API —————————
function bab_nm_zemcontact_submit()
{
global $zem_contact_form;
$bab_txp_subscribers_table = PFX.“txp_subscribers”;
$bab_nm_zemSubscriberName = doSlash(ps(‘zemSubscriberName’));
$bab_nm_zemSubscriberEmail = doSlash(ps(‘zemSubscriberEmail’));
$bab_nm_zemSubscriberCustom1 = doSlash(ps(‘zemSubscriberCustom1’));
$bab_nm_zemSubscriberCustom2 = doSlash(ps(‘zemSubscriberCustom2’));
$bab_nm_zemSubscriberCustom3 = doSlash(ps(‘zemSubscriberCustom3’));
$bab_nm_zemSubscriberCustom4 = doSlash(ps(‘zemSubscriberCustom4’));
$bab_nm_zemSubscriberCustom5 = doSlash(ps(‘zemSubscriberCustom5’));
$create_zem[] = safe_query(“INSERT INTO $bab_txp_subscribers_table values (‘’,’$bab_nm_zemSubscriberName’,’$bab_nm_zemSubscriberEmail’,’$bab_nm_zemSubscriberCustom1’,’$bab_nm_zemSubscriberCustom2’,’$bab_nm_zemSubscriberCustom3’,’$bab_nm_zemSubscriberCustom4’,’$bab_nm_zemSubscriberCustom5’,’‘,’‘)”);
}
</code>
<p>*Here are some instructions for use:*</p>
DETAILED USAGE: PUBLIC
<ul>
<li>Subscription Form
<ul>
<li>Here’s an example subscription form<br />
<code>
<txp:zem_contact to=“example@example.com” ><br />
<txp:zem_contact_text name=“zemSubscriberName” label=“Your Name:” /><br />
<txp:zem_contact_email name=“zemSubscriberEmail” label=“Your Email:” /> <br />
<txp:zem_contact_text name=“zemSubscriberCustom1” label=“Your Favorite Color:” /><br />
<txp:zem_contact_checkbox label=“This is not Spam. “ /><br />
<txp:zem_contact_submit />
</txp:zem_contact>
</code>
</li>
<li>This form will:
<ul>
<li>Send a subscription notice (ie, an email that so-and-so subscribed) to whatever email address you enter in the “to=” field</li>
<li>Display fields for Subscriber Name, Email, and Favorite Color, and a checkbox that is required as an anti-spam method.</li>
<li>The subscription form is truly customizable. Styling is carefully worked out by the folks over at ZCR — check out <a href=“http://thebombsite.com/txpplugins/408” target=”_blank”>this page</a> for documentation.</li>
<li>I suggest reading the ZCR documentation thoroughly, and taking advantage of all the tag attributes you can.</li>
</ul>
</li>
<li>Proper “name” values are important — the possibilities are:
<ul>
<li>name=“zemSubscriberName”</li>
<li>name=“zemSubscriberEmail”</li>
<li>name=“zemSubscriberCustom1”</li>
<li>name=“zemSubscriberCustom2”</li>
<li>name=“zemSubscriberCustom3”</li>
<li>name=“zemSubscriberCustom4”</li>
<li>name=“zemSubscriberCustom5”</li>
</ul>
</li>
<li><a href=“http://thebombsite.com/txpplugins/408” target=”_blank”>Zem Contact Reborn documentation page</a> (with great information on Styling and more)</li>
<li><a href=“http://forum.textpattern.com/viewtopic.php?id=13416” target=”_blank”>Zem Contact Reborn forum thread</a></li>
</ul>
</li>
</ul>
<p>————————>>></p>
<p>Postmaster is quite a major upgrade, but with one caveat — it no longer messes with the HTML emails (this is because, it didn’t seem like there was much success there, and everything I’ve read suggests sending text emails with a link to the HTML version).</p>
<p>But it does have:</p>
<p>
– send emails directly from the “Write” tab<br />
– multiple lists<br />
– bulk emailing<br />
– integration with ZCR for the subscription form<br />
– and much more. <br />
</p>
<p>Given that jw worked hard on improving HTML management, if there were lots of interest in the HTML capability, seems like it could be added back in and have the updated features.</p>
<p>
– Ben
</p>
<p>fineartdavid, <s>an unsubscription form won’t be difficult, either. In fact, if you know some php you can tweak the code above to allow for an unsubscribe field and just add a new mysql query. But seeing as I’m at work</s> I couldn’t resist trying, see below (AGAIN, UNTESTED) …</p>
<P>*Place this at the very bottom of your plugin (if you already added the code from above, replace it with this)*</p>
<code>
// ZEM_CONTACT API —————————
function bab_nm_zemcontact_submit()
{
global $delete_successful, $zem_contact_form;
$bab_txp_subscribers_table = PFX.“txp_subscribers”;
$bab_nm_zemUnSubscribe = doSlash(ps(‘zemUnSubscribe’)); $bab_nm_zemSubscriberEmail = doSlash(ps(‘zemSubscriberEmail’));
if ($bab_nm_zemUnSubscribe == ‘on’) {
if (safe_query(“DELETE from $bab_txp_subscribers_table WHERE email=’$bab_nm_zemSubscriberEmail’”)) {
return $delete_successful;
}
else {
return “There was an error. Please contact the administrator of this website. “;
}
}
else {
$bab_nm_zemSubscriberName = doSlash(ps(‘zemSubscriberName’));
$bab_nm_zemSubscriberCustom1 = doSlash(ps(‘zemSubscriberCustom1’));
$bab_nm_zemSubscriberCustom2 = doSlash(ps(‘zemSubscriberCustom2’));
$bab_nm_zemSubscriberCustom3 = doSlash(ps(‘zemSubscriberCustom3’));
$bab_nm_zemSubscriberCustom4 = doSlash(ps(‘zemSubscriberCustom4’));
$bab_nm_zemSubscriberCustom5 = doSlash(ps(‘zemSubscriberCustom5’));
$create_zem[] = safe_query(“INSERT INTO $bab_txp_subscribers_table values (‘’,’$bab_nm_zemSubscriberName’,’$bab_nm_zemSubscriberEmail’,’$bab_nm_zemSubscriberCustom1’,’$bab_nm_zemSubscriberCustom2’,’$bab_nm_zemSubscriberCustom3’,’$bab_nm_zemSubscriberCustom4’,’$bab_nm_zemSubscriberCustom5’,’‘,’‘)”);
}
}
</code>
<P>*Use something like the following as your unsubscribe form*</p>
<code>
<txp:zem_contact to=“example@example.com” ><br />
<txp:zem_contact_email name=“zemSubscriberEmail” label=“Enter Your Email:” /> <br />
<txp:zem_contact_text name=“zemUnSubscribe” label=“Unsubscribe:” /><br />
<txp:zem_contact_submit />
</txp:zem_contact>
</code>
<P>That should output a field for an email, and a checkbox. If someone checks the box, then the code will remove the subscriber with the email entered. If there is some sort of problem, it just refers you to the website administrator (it’s just a quickie, after all).</p>
Last edited by benbruce (2006-10-03 19:01:07)
Offline
#143 2006-10-19 21:40:18
Re: [archived] bab_newsletter: Newsletter Manager for Textpattern
hi bruce. I’ve now installed your plugin, but it dont’work!!
I’have insert in my page the correct form for subscribe users, and it work, but when i insert the Admin preference and i try to save, it will reload the page without show nothing. I’ve see the table txp_nlpre and the date was insert “ i think correctly”. But when i ask Admin preference page it show me a page with all textareas blank! Why that.
So i can’t send any letters. I’ve try but it will not send nothing
Hupf…. sorry for my english.
Offline
#144 2006-10-23 00:42:52
Re: [archived] bab_newsletter: Newsletter Manager for Textpattern
I just gave it a try and it does seem broken on 4.0.4. Although, it may be me who is broken.
- adc
Offline
#145 2006-10-23 11:58:39
- freshface
- Member
- Registered: 2006-08-23
- Posts: 49
Re: [archived] bab_newsletter: Newsletter Manager for Textpattern
MarcoK I have the same problem.
I have TP 4.0.3
Last edited by freshface (2006-10-23 11:59:15)
Offline
#146 2006-11-02 01:13:13
Re: [archived] bab_newsletter: Newsletter Manager for Textpattern
Postmaster — a simple email-on-post / newsletter manager for TXP — has been submitted to the forum here.
Postmaster is meant as a replacement for NM, but it does not deal with HTML emails. If there were enough interest, NM could be updated separately with jw’s changes and some of the functions from PM to continue on its own path.
Thanks,
– BenOffline
#147 2006-11-07 19:41:19
- jebni
- New Member

- Registered: 2004-05-24
- Posts: 8
Re: [archived] bab_newsletter: Newsletter Manager for Textpattern
I’m surprised by the silence — I, for one, would love a bulk-posting alternative to PHPList that does HTML, so chalk up a vote for retrofitting Newsletter Manager with Postmaster’s industrial strength features.
Offline
#148 2006-11-07 19:45:47
Re: [archived] bab_newsletter: Newsletter Manager for Textpattern
Yes, very yes.
I love what you’ve done with postmaster, but a need the HTML to make use of it.
Offline
#149 2006-11-08 05:10:37
Re: [archived] bab_newsletter: Newsletter Manager for Textpattern
mrdale,
After reading your comment above and some of the comments in the NM thread, I couldn’t help thinking about the HTML bit sitting on the bus on the way home. I think I sketched out a pretty simple update, actually, that would allow HTML emails as an option.
So I’ll tinker with that a bit and see where that goes.
– Ben[copied and pasted from the Postmaster thread]
Last edited by benbruce (2006-11-08 05:11:24)
Offline
#150 2006-11-10 22:46:24
Re: [archived] bab_newsletter: Newsletter Manager for Textpattern
Postmaster has been updated to include an option to mail HTML emails.
Here’s the Postmaster forum thread:
http://forum.textpattern.com/viewtopic.php?pid=130440
Offline