larger smaller normal text version of this page

Revision [1621]

Last edited on 2008-09-11 02:01:01 by AlStillero [Additions + correction]
Additions:
- First, create a subscribe page with all the attributes you need. Select which attributes are "required," and set the order of listing. Don't forget to click on "Save and activate."
- Then, on the [[ConfigurePhplistInfo configuration page]], make sure this setting is set to "true" (or 1):
- Run some tests to make sure that your standard phplist subscribe page is working as you'd want it to work. Only proceed with the next step, if you really are satisfied with the way the subscribe page works.
- Now you need to copy the phplist generated HTML form code to a text editor. You can do this as follows:
- Load the subscribe page you just created in your web browser, i.e. just point your browser to your subscribe page.
- Display the source code for that page (right click on the page and select 'View source' in IE, or 'View page source' in Firefox).
- Copy the form code (including the javascript that checks user input), and paste this in a simple text editor, like Windows Notepad.
%%(html4strict)<form method="post" name="subscribeform">%%
~- to this, if you have just one single subscribe page: %%(html4strict)<form method="post" action="http:/mysite.com/lists/?p=subscribe" name="subscribeform"> %%
~- or to this, if you have several subscribe pages, where ''&id=''''x'' is the ID number of a particular subscribe page: %%(html4strict)<form method="post" action="http:/mysite.com/lists/?p=subscribe&id=1" name="subscribeform"> %%
If you offer just one single list (e.g. one newsletter) in your subscribe form, check you have this hidden input tag in your form (where **x** is the ID number of the list):
Deletions:
- First, create a subscribe page with all the attributes you need. Select which attributes are "required," and set the order of listing. Don't forget to click on "Save and activate."
- Now you need to copy the phplist generated html form code to a text editor. You can do this by:
- Loading the subscribe page you just created in your web browser, i.e. just point your browser to your subscribe page.
- Displaying the source code for that page (right click on the page and select 'View source' in IE, or 'View page source' in Firefox).
- Copying the form code (including the javascript that checks user input), and paste this in a simple text editor, like Windows Notepad.
%%(html4strict)<form method="post" name="subscribeform">
or this:
<form method="post" action="http:/mysite.com/lists/?p=subscribe&id=1" name="subscribeform"> %%
to this:
%%(html4strict)<form method="post" action="http:/mysite.com/lists/?p=subscribe" name="subscribeform"> %%
If you only offer just one single list (e.g. one newsletter) in your subscribe form, check you have this hidden input tag in your form (where **x** is the ID number of the list):
- On the [[ConfigurePhplistInfo configuration page]], make sure this setting is set to "true" (or 1):


Revision [1598]

Edited on 2008-07-01 23:36:19 by UndercoveR [Added tip for using image to submit form]
Additions:
- If you want to use an image instead of the standard submit button, you must add the following hidden field tag to your form:
%%(html4strict)<input type="hidden" name="subscribe" value="yes">%%


Revision [1369]

Edited on 2007-09-07 02:38:21 by AlStillero [Minor edit]
Additions:
- If you don't want to display the default 'thank you' page, and instead want to open a pop-up window, you could use this code:
Deletions:
- If you don't want to display the default 'thank you' page, and instead want to open a pop=up window of your choice, you could use this code:


Revision [1368]

Edited on 2007-09-07 02:36:24 by AlStillero [Added some tips & tricks from the forum]
Additions:
===Some tips & tricks===
- If a user forgets to select a list to subscribe to and clicks on the Submit button, he will be redirected to the default phplist subscribe page. One way to avoid this from happening is to make the list pre-selected by adding "checked" to the corresponding input tag, e.g.:
%%(html4strict)<input type="checkbox" name="list[1]" value="signup" checked /> %%
- If you don't want to display the default 'thank you' page, and instead want to open a pop=up window of your choice, you could use this code:
%%(html4strict)<form method="post" action="http://www.mysite.com/lists/?p=subscribe" name="signup" target="windowName" onsubmit="window.open('', this.target,
'dialog,modal,scrollbars=no,resizable=no,width=550,height=300,left=0,top=0');">%%


Revision [1224]

Edited on 2007-06-23 22:17:17 by BenTucker [Fixed a little bit of grammar]
Additions:
This procedure will let PHPlist do the 'dirty work' of generating the form code. Then you only need to copy the form code, customize it a little bit, and place it on your webpage.
- First, create a subscribe page with all the attributes you need. Select which attributes are "required," and set the order of listing. Don't forget to click on "Save and activate."
- Then, you need to customize the form code as described here.
Deletions:
This procedure will let PHPlist do the 'dirty work' of generating the form code. Than you only need to copy the form code, customize it a little bit, and place it on your webpage.
- First, create a subscribe page with all the attributes you need, select which attributes are "required", and set the order of listing. Don't forget to click on "Save and activate".
- Than, you need to customize the form code as described here.


Revision [1101]

Edited on 2007-04-21 12:08:10 by WilFis [Fixed a little bit of grammar]
Additions:
- Now you are ready to place the customized form in a table cell or anywhere you want on an existing webpage. Further customization can be done in your favorite HTML editor, if you prefer.
Deletions:
- Now you are ready to place the customized form in a tabel cell or anywhere you want on an existing webpage. Further customization can be done in your favorite HTML editor, if you prefer.


Revision [1100]

Edited on 2007-04-21 12:06:58 by WilFis [Fixed a little bit of grammar]
Additions:
- First, create a subscribe page with all the attributes you need, select which attributes are "required", and set the order of listing. Don't forget to click on "Save and activate".
Deletions:
- First, create a subscribe page with all the attributes you need, select wich attributes are "required", and set the order of listing. Don't forget to click on "Save and activate".


Revision [1035]

Edited on 2007-01-03 00:15:10 by AlStillero [minor edit]
Additions:
%%(html4strict)<input type="hidden" name="list[x]" value="signup"> %%
Deletions:
%%(html4strict)<input type="hidden" name="list[x]" value=signup> %%


Revision [958]

Edited on 2006-11-21 18:28:53 by AlStillero [minor addition]
Additions:
**Note:** The phplist generated form code is HTML 4.01 Transitional. If you use another "doc type" in your custom page -like XHTML 1.0 Strict for instance- review the code to make sure it is compliant with your doc type.
For more info, please consult the //de facto// support thread on the forum: http://forums.phplist.com/viewtopic.php?t=5712


Revision [871]

Edited on 2006-10-20 18:37:25 by AlStillero [minor Layout change and edit]
Additions:
%%(html4strict)<form method="post" name="subscribeform">
%%(html4strict)<form method="post" action="http:/mysite.com/lists/?p=subscribe" name="subscribeform"> %%
%%(html4strict)<input type="hidden" name="list[x]" value=signup> %%
Deletions:
%%(html)<form method="post" name="subscribeform">
%%<form method="post" action="http:/mysite.com/lists/?p=subscribe name="subscribeform"> %%
%%<input type="hidden" name="list[x]" value=signup> %%


Revision [807]

Edited on 2006-10-17 07:41:31 by AlStillero [minor edit]
Additions:
==[[PhplistDocumentation Phplist Documentation]] » [[ConfigurationFunctionsInfo Configuration functions]] » [[ConfigureSubscribePageInfo Configuring subscribe pages]] » [[EditSubscribePageInfo Editing or creating a subscribe page]] » ==
Deletions:
==[[PhplistDocumentation Phplist Documentation]] » [[ConfigureSubscribePageInfo Configuring subscribe pages]] » [[EditSubscribePageInfo Editing or creating a subscribe page]] » ==


Revision [800]

Edited on 2006-10-17 06:06:16 by AlStillero [minor edit]
Additions:
- On the [[ConfigurePhplistInfo configuration page]], make sure this setting is set to "true" (or 1):
**Related pages**
-[[ConfigureSubscribePageInfo Configuring subscribe pages]]
Deletions:
- On the configuration page, make sure this setting is set to "true" (or 1):
**Related pages:**


Revision [799]

Edited on 2006-10-17 06:01:58 by AlStillero [minor edit]
Additions:
==[[PhplistDocumentation Phplist Documentation]] » [[ConfigureSubscribePageInfo Configuring subscribe pages]] » [[EditSubscribePageInfo Editing or creating a subscribe page]] » ==
%%(html)<form method="post" name="subscribeform">
Deletions:
==[[PhplistDocumentation Phplist Documentation]] » [[ConfigureSubscribePageInfo Configuring subscribe pages]] » [[EditSubscribePageInfo Editing or creating a subscribe form]] » ==
%%<form method="post" name="subscribeform">


Revision [798]

Edited on 2006-10-17 05:04:02 by AlStillero [minor edit]
Additions:
==[[PhplistDocumentation Phplist Documentation]] » [[ConfigureSubscribePageInfo Configuring subscribe pages]] » [[EditSubscribePageInfo Editing or creating a subscribe form]] » ==
Deletions:
[[PhplistDocumentation Phplist Documentation]]


Revision [793]

Edited on 2006-10-16 23:31:21 by AlStillero [minor edit]
Additions:
%%<form method="post" name="subscribeform">
or this:
<form method="post" action="http:/mysite.com/lists/?p=subscribe&id=1" name="subscribeform"> %%
Deletions:
%%<form method="post" action="http:/mysite.com/lists/?p=subscribe&id=1" name="subscribeform"> %%


Revision [775]

Edited on 2006-10-11 02:46:28 by AlStillero [minor edit]
Additions:
===How to place a custom subscribe form on an existing webpage===


Revision [774]

Edited on 2006-10-11 02:43:02 by AlStillero [minor edit]
Deletions:


Revision [773]

Edited on 2006-10-11 02:40:13 by AlStillero [minor edit]
Additions:
- Than, you need to customize the form code as described here.
If you only offer just one single list (e.g. one newsletter) in your subscribe form, check you have this hidden input tag in your form (where **x** is the ID number of the list):
- On the configuration page, make sure this setting is set to "true" (or 1):
- Now you are ready to place the customized form in a tabel cell or anywhere you want on an existing webpage. Further customization can be done in your favorite HTML editor, if you prefer.
Deletions:
- Than, you need to customize the form code as described here:
If you only offer one list (e.g. one newsletter) in your subscribe form, check you have this hidden input tag in your form (where **x** is the ID number of the list):
On the configuration page, make sure this setting is set to "true" (or 1):
Now you're ready to place the customized form in a tabel cell or anywhere you want on an existing webpage. Further customization can be done in your html editor, if you prefer.


Revision [769]

Edited on 2006-10-10 06:04:59 by AlStillero [Preparation of this page]
Additions:
=====Custom Subscribe Form =====

//This page describes how to create a customized subscribe form, which you can place on an existing page of your site. This method should work both with simple and complex subscribe forms.//


This procedure will let PHPlist do the 'dirty work' of generating the form code. Than you only need to copy the form code, customize it a little bit, and place it on your webpage.

- First, create a subscribe page with all the attributes you need, select wich attributes are "required", and set the order of listing. Don't forget to click on "Save and activate".
- Now you need to copy the phplist generated html form code to a text editor. You can do this by:
- Loading the subscribe page you just created in your web browser, i.e. just point your browser to your subscribe page.
- Displaying the source code for that page (right click on the page and select 'View source' in IE, or 'View page source' in Firefox).
- Copying the form code (including the javascript that checks user input), and paste this in a simple text editor, like Windows Notepad.
- Than, you need to customize the form code as described here:
Change this:
%%<form method="post" action="http:/mysite.com/lists/?p=subscribe&id=1" name="subscribeform"> %%

to this:
%%<form method="post" action="http:/mysite.com/lists/?p=subscribe name="subscribeform"> %%

If you only offer one list (e.g. one newsletter) in your subscribe form, check you have this hidden input tag in your form (where **x** is the ID number of the list):
%%<input type="hidden" name="list[x]" value=signup> %%

However, if you offer more than one list in your subscribe form, make sure you remove the above input tag.

On the configuration page, make sure this setting is set to "true" (or 1):
%%if there is only one visible list, should it be hidden in the page and automatically subscribe users who sign up (0/1)
true%%

Now you're ready to place the customized form in a tabel cell or anywhere you want on an existing webpage. Further customization can be done in your html editor, if you prefer.



**Related pages:**
-[[EditSubscribePageInfo Editing or Creating a Subscribe Page]]
Deletions:
=====Title of the page =====
//This page is a **template** intended for documentation of **official phplist features**. This page belongs to CategoryTemplate (which contains more handy templates). To create a phplist **documentation** page, [[http://docs.phplist.com/DocumentationTemplate/clone clone this page]], replace the title with a meaningful one and replace this paragraph with the actual page content.//


Revision [768]

The oldest known version of this page was created on 2006-10-10 04:51:11 by AlStillero [Preparation of this page]
Page was generated in 0.2575 seconds