Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Archives
  3. » Newsletter

#1 2005-03-06 09:03:56

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

Newsletter

Do any of you guys know of a simple (subscribe/unsubscribe) free newsletter php/mysql script which can be inserted in txp?


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

Offline

#2 2005-03-07 01:07:50

t1m
Member
From: Massachusetts, USA
Registered: 2004-09-11
Posts: 17
Website

Re: Newsletter

textpattern.com uses one of these (http://notifylist.com/)


“You know you’ve achieved perfection in design, not
when you have nothing more to add, but when you have
nothing more to take away.” -Antoine de Saint-Exupery

Offline

#3 2005-03-07 03:58:07

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: Newsletter

Speaking as someone who’s built several: there’s no such thing as a simple newsletter script.

If you want something easy, an external service or an application like Mailman is your best bet.


Alex

Offline

#4 2005-03-07 08:26:06

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

Re: Newsletter

Sorry I should have made myself clear. By ‘simple’ I meant to say one email field and one pull down menu/radio buttons, whatever, subscribe/unsubcribe button. Also a web interface to send email to the list.

Back end I’m looking for a php to insert in txp and mysql to store the emails.

I found a wonderful open source script here but it offers much more than I need. i do not expect to have over 500 subscribers so a light weight newsletter would do.

I had a look at mailman but its system requirements (python) are not met by my server.
As far as notifylist goes, it sounds like a good service but I would rather have the scripts/database stored in my server.

Last edited by colak (2005-03-30 18:15:31)


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

Offline

#5 2005-03-30 10:29:21

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,909
Website

Re: Newsletter

(I’ve double-posted this here, from there because this thread title is a bit more meaningful.)

Some kind of working solution to this would be good, whether an integrated solution or clever combination with a third party product. There’s a number of other relevent threads on this topic; I’ll rope them in here…

And there’s probably more, but it seems there is a need/interest to employ a newsletter. I don’t think it would make much difference how it’s done, but it would be nice to have some proven technique working that could be documented in TextBook that people could use.

Last edited by Destry (2005-03-30 10:33:26)

Offline

#6 2005-03-30 18:19:52

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

Re: Newsletter

Hi Destry,
have managed to include the phplist newsletter in my site. A bit of a process as I am not a programmer but managed to figure it out in the end.
If there is an interest I can post here the steps i used.

Last edited by colak (2005-03-30 18:20:56)


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

Offline

#7 2005-03-30 18:20:56

alicson
Member
Registered: 2004-05-26
Posts: 465
Website

Re: Newsletter

there is definitely an interest. :) please do write.


textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation

Offline

#8 2005-03-30 22:13:06

-jw-
Member
From: fruitbelly, the Netherlands
Registered: 2004-03-16
Posts: 79

Re: Newsletter

steps! we want steps….

indeed, i´m also interested… as alicson says; please do write


textile deletes my identity

Offline

#9 2005-03-31 18:52:22

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

Re: Newsletter

1. download phplist from the site and install it in your server. You can install it in your txp database or on another location and/or database as I did. You will find the installation instructions in the phplist site.
2. configure the php list following the instructions from their site.

And here is how to incorparate it with txp (i use rc1)

1. Go to the Presantation/Pages tab and insert the js in the body

Note that I have the newsletter in a folder called lists in my site root so do edit the routes below as per your folder name… whatever

<script language="javascript" type="text/javascript">
<!--

function setToUnsubscribe()
{
    document.subscribeform.action = "/lists/index.php?p=unsubscribe";
    return true;
}

function setToSubscribe()
{
   document.subscribeform.action = "/lists/index.php?p=subscribe";
   return true;
}

//-->
</script>

2. Find the place you wish to have the email field the subscribe and unsubscribe buttons.

note that I only use one list so list[1] is that list.
Also the line below 'listname[1]" value="Interdisciplinary Arts News"
should be edited according to your list too

<form method="post" name="subscribeform" action="/lists/index.php?p=subscribe">
<input type="hidden" name="htmlemail" value="0"/>
<input type="text" name="email"/>
<input type="submit" value="Unsubscribe" onclick="javascript: setToUnsubscribe();" name="unsubscribe"/>
<input type="submit" onclick="javascript: setToSubscribe();" value="Subscribe" name="subscribe"/>
<input type="hidden" name="list[1]" value="signup"/>
<input type="hidden" name="listname[1]" value="Interdisciplinary Arts News"/>
</form>

3. Apply styles as per your preferences to the fields above.

let me know if i missed anything

Now, if anyone can help in replacing the 2 buttons (subscribe, unsubscribe) with a pull down menu containing the 2 commands would be appreciated. The reason for the 2 butons is because it seems that both the name and the value of the buttons are needed by the program for the command to be processed.

If anyone has any ideas can you post them here?


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

Offline

#10 2005-11-13 16:46:16

soulship
Member
From: Always Sunny Charleston
Registered: 2004-04-30
Posts: 669
Website

Re: Newsletter

Thanks for the instructions colak…

did you need any .htacess trickery to avoid 404 error in trying to get to the setup funtions of phplist?

<p style=“margin:0px 0px 0px 20px; color: #6C6C6C; font-weight: bold; font-size: 9pt;”>Quote: </p> <div style=” float: relative; margin:0px 20px 0px 20px; padding:10px 10px 10px 10px; background-color:#EBEBEB; border:1px dotted #D1D1D1; font-size: 9pt;” ><em>Use your browser to go to the admin index on your site (yoursite.com/lists/admin/). You will be asked to initialise the database. Click the link.</em></div>

keeps sending me to my new 404 page on the site I am trying to setup.

Thanks
Jamie

EDIT: I got it working just fine now. Silly oversite on my part. Thanks for your instructions it made implementing this mostly pain free.

;)

Last edited by soulship (2005-11-13 22:59:20)

Offline

#11 2005-11-14 05:57:10

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

Re: Newsletter

Hi soulship, When I posted the above i was using rc1 and no htaccess or clean urls.

Initial suggestion. temporarilly rename your .htaccess to something else and try reaching the link… alternatively point your browser to the particular url ie yoursite.com/lists/admin/index.php…


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

Offline

#12 2012-05-26 23:41:50

gfdesign
Member
From: Argentina
Registered: 2009-04-20
Posts: 401

Re: Newsletter

Hi Colak
I know this is an old topic, but I’m wonder how do you do when the user completes the suscription form he/she can to stay on Txp instead to go to PHPList page?
Your code works, but I don’t know how to do that all steps happen inside Txp site.
Best regards.

Offline

  1. Index
  2. » Archives
  3. » Newsletter

Board footer

Powered by FluxBB