Author Topic: confirmation after subscribe  (Read 2630 times)

sanj

  • Posts: 54
    • View Profile
confirmation after subscribe
« on: October 10, 2007, 05:01:15 am »
hi,
Is there a way I can make the confirmation page come as a pop up on the existing page where my subscribers sign up instead of them having to to go to a new page?

I want to keep visitors on the page that they sign up.
I use double opt in.
So when they click the subscribe button I would like a pop up to tell them to go and check their mailbox; instead of them going to another page for that message.

thanks
sanj
Magnetic Therapy Natural Pain Relief for Arthritis, Back Pain and More... at http://www.worldofmagnets.co.uk

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
confirmation after subscribe
« Reply #1 on: October 10, 2007, 10:49:35 am »
SanJ,

You can try setting a new target window for your form, like this:
Code: [Select]
<form method=post action=/mail/signup.php target=_LMP>
You could also dynamically submit their information using AJAX and then update a <div> with further information, but I don't have an example ready... :)

Regards
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting

sanj

  • Posts: 54
    • View Profile
confirmation after subscribe
« Reply #2 on: October 11, 2007, 01:55:16 am »
hi,

the problem is I want to be able to control the size of the window that opens up instead of just a whole new page. I love your idea about using AJAX and a div tag and will be eagerly waiting for how to do it.

thanks again
sanj
Magnetic Therapy Natural Pain Relief for Arthritis, Back Pain and More... at http://www.worldofmagnets.co.uk

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
confirmation after subscribe
« Reply #3 on: October 11, 2007, 02:58:17 am »
SanJ, The AJAX / DIV solution requires some extensive CSS, JS, etc. and window sizing can be tricky.  I'm only just putting this type of thing into the coming update...  What about JavaScript popup windows?

http://www.ddj.com/windows/184412937

You could take the signup form vars and pass them to window.open in a GET request, ie:
Code: [Select]
Name: <input name=fname id=fname><br>
Email: <input name=email id=email><br>
<input type=button value="Sign Up!" onclick="var win = window.open('http://example.com/mail/signup.php?list=1&fname=' +escape(document.getElementById('fname').value) +'&email='+escape(document.getElementById('email').value),'Signup','width=300,height=300');">


Regards
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting

ptrabert

  • Posts: 1
    • View Profile
Immediate Confirmation Screen
« Reply #4 on: October 11, 2007, 09:57:49 am »
Maybe Sanj was talking about the immediate confirmation page that comes up after a user joins the list. In my case, the screen goes white and a message says:
**
Thanks for signing up, !fname.
Your email address blah@blah.com will be kept safe!

You will receive an introductory email in a moment.
**
The user has to hit the back arrow key to get back to the page where they joined the list. This is not a good thing. I have searched through the help files to see how to fix this but can't locate the settings. This has nothing to do with the email the form produces so it must be in the  signup.php file but I can't locate the lines to change in order to make the message a popup or open a new page.

If I've missed this section in the help files, I apologize. Please point me to the appropriate page. If I need to change signup.php, please indicate the line numbers where the change is needed and what should be put there.

I looked at http://www.ddj.com/windows/184412937 but did not see a clear answer to change anything I'm seeing in v187d.

Thanks for any help you can provide.

Pauline

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
confirmation after subscribe
« Reply #5 on: October 12, 2007, 05:26:57 am »
Hi Pauline,

I'm afraid the method I last described is the easiest way to achieve this.  signup.php itself cannot create a popup window - by the time it loads the window is already open. It must be done with JavaScript placed in your signup page HTML.  Creating windows of the desired size in the desired position is a bit of a challenge if you are not already familiar with JavaScript.  I recommend doing a basic JavaScript tutorial, then searching the net for some pre-made code and considering my code above that creates the URL for the window.open method.

This thread is giving me some good ideas for signup form generator improvements.. :)

Regards
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting