Page 1 of 1

Using php for providing links after subscription

PostPosted: 12:19pm, Wed 18 Mar, 2015
by namak
I want to use phplist for providing links (for download, videos etc) to subscribers. From some place of my website the reader is directed to a subscription page, then he fills in the form and submits. The "Request for confirmation" letter is sent to the subscriber, where, by clicking on the "Confirmation link" the subscriber receives "Welcome to our newsletter" letter.
I am trying to do this by placing the link in the "Welcome to our newsletter" by editing "Message they receive when they confirm their subscription" in EDIT A SUBSCRIBE PAGE. This works fine for the first time. But when the same subscriber tries to receive another link from my website via another subscribe page, he receives only "Request for confirmation" and does not receive "Welcome to our newsletter", where the new link is placed.
Is it possible that after subscribing the first time, the subscriber may continue to receive "Welcome to our newsletter" letters from other subscribe pages?
Or, alternatively, does phplist have other ways to provide more than one link to the same subscriber of my website?
Any help is appreciated.
phplist version: 3.0.12, browser: Chrome

Re: Using php for providing links after subscription

PostPosted: 9:38am, Thu 19 Mar, 2015
by duncanc
I think that you might be affected by a recent change to phplist that avoids sending a "welcome" email when the subscriber is already confirmed.

I have added a comment to the original issue on the bug tracking system https://mantis.phplist.com/view.php?id=17513

Re: Using php for providing links after subscription

PostPosted: 10:44pm, Thu 19 Mar, 2015
by namak
duncanc wrote:I think that you might be affected by a recent change to phplist that avoids sending a "welcome" email when the subscriber is already confirmed.

I have added a comment to the original issue on the bug tracking system https://mantis.phplist.com/view.php?id=17513


Thank you very much for your quick reply.
It seems to me that the best solution for my problem would be if the confirmation message $strConfirmInfo = 'Thank you for confirming your subscription to our newsletters. The newsletters you are subscribed to are listed below';
is editable for each list. In that case I might be able to place the link of my video or pdf in this message. And this would be even better than to place the link in the final "Welcome to our newsletter" e-mail because it would cause less hassle for the subscriber who wants to download my video or pdf.
In my opinion this would greatly improve the functionality and overall value of the program.
Is it possible by means of code modification or plugin?

Re: Using php for providing links after subscription

PostPosted: 3:40am, Wed 25 Mar, 2015
by thewitt
I have exactly the same problem.

I am trying to use PHPList like MailChimp, and allow people to sign up for Free downloads to selected books that I sell from my website.

When they sign up, I would like to send them a free code to download the eBook tied to the list, however I don't want to include the download code in this message

Content of message subscribers receive when they subscribe

Since this will go to people even if they did not subscribe themselves to the list.

I would like to send the free code in this message:

Message they receive when they confirm their subscription

However that message is NOT sent if the user is already a confirmed member in my database because they are on another list.

Any other options anyone can think of?
---
PHPList 3.0.12

Re: Using php for providing links after subscription

PostPosted: 5:27am, Thu 26 Mar, 2015
by duncanc
You might want to look at the Autoresponder plugin. Using that you can send a campaign to subscribers a specified time after they have signed-up. I think that the minimum period is one hour so the campaign won't be sent immediately.
See the plugin documentation page https://resources.phplist.com/plugins/start.

Re: Using php for providing links after subscription

PostPosted: 6:14am, Thu 26 Mar, 2015
by thewitt
duncanc wrote:You might want to look at the Autoresponder plugin. Using that you can send a campaign to subscribers a specified time after they have signed-up. I think that the minimum period is one hour so the campaign won't be sent immediately.
See the plugin documentation page https://resources.phplist.com/plugins/start.


Thank you. I'll check it out. This might be exactly what I'm looking for!

Re: Using php for providing links after subscription

PostPosted: 6:51am, Sat 04 Apr, 2015
by namak
duncanc wrote:You might want to look at the Autoresponder plugin. Using that you can send a campaign to subscribers a specified time after they have signed-up. I think that the minimum period is one hour so the campaign won't be sent immediately.
See the plugin documentation page https://resources.phplist.com/plugins/start.


It seems that the plugin for 3.x does not exist yet, is it?
If so, does the version for 2.x work for 3.0.12?

Re: Using php for providing links after subscription

PostPosted: 11:53am, Sat 04 Apr, 2015
by duncanc
The plugin for phplist 3 is on that page, immediately below the one that you referred to.

Re: Using php for providing links after subscription

PostPosted: 6:31am, Fri 10 Apr, 2015
by namak
duncanc wrote:The plugin for phplist 3 is on that page, immediately below the one that you referred to.


I installed as explained in README.md file. It is advised in that file that it is beneficial to change the plugin directory outside phplist root, which I did. I also moved the existing plugins (Campaigns Plugin, Common Plugin, FCKeditor plugin for phpList) to that new directory. I aso set the PLUGIN_ROOTDIR to that directory. After that under Config>plugins I can see all plugins, old and the new. But when I try to compose a draft message through Campaigns>Send a Campaign, under first tab content I receive the following:
"Not Found

The requested URL /phplist/admin/plugins/fckphplist/fckeditor/editor/fckeditor.html was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request
."
Please advise what is wrong?


phplist 3.0.12

Re: Using php for providing links after subscription

PostPosted: 7:20am, Fri 10 Apr, 2015
by duncanc
The advice to move the plugin directory causes a problem for the fckeditor plugin. The plugin package uses the fckeditor which needs to be within your web root.

My recollection is that the simplest way around this is to copy - not move - the fckeditor plugin file and directories back to the original location, so that it is in both locations.
Or you can move all the plugins back to the original location and set your PLUGIN_ROOTDIR to the original value.