|
Asp Articles :: myNewsletter Script Customisation
Written by Tim Wong
Now that you have downloaded the myNewsletter script, you might
want to customise the subscription and/or removal page so that it
integrates into your layout.
This is especially useful if your site is running on a dark background
(such as grey), since the subscribe/remove pages are white in colour.
You might want to retain some consistency on your site so that your
visitors do not get confused.
Here's how you can integrate the subscription page into your layout:
The subscription ASP file is named subscribeNewsletter.asp
which resides in your /newsletter directory. All you need to do
is create a form anywhere that links to this form. For example,
your home page is set at index.asp. So here's what you insert
in index.asp:
<form name="newsletterForm" method="post"
action="/newsletter/subscribeNewsletter.asp">
<input type="text" name="Email" size="12">
<input type="submit" name="Submit" value="Subscribe">
</form>
|
You will then be basically calling the ASP script subscribeNewsletter.asp
from index.asp. Now you can set your subscription page to
anywhere you desire.
Next, here's how you can integrate the email removal into your
layout:
The email removal page is named remove.asp which resides
in your /newsletter directory as well. The same method applies for
this script as well:
<form name="removeListForm" method="post" action="remove.asp">
<input type="text" name="Email" size="25"
value="<%=request.queryString("email")%>">
<input type="submit" name="Submit" value="Unsubscribe">
</form>
|
The last file, newsletterConfirmation.asp is a little more
tricky since it function can't be called via a form. What you can
do is to directly modify the layout of newsletterConfirmation.asp,
or cut and paste all information within the <% %> tags into
another ASP page.
Please note that there is also a variable called <%=output%>
that you will need to cut out from the HTML source of newsletterConfirmation.asp.
This page is called when the user clicks it from his email inbox
to confirm his subscription for your newsletter.
I hope this customization article has helped you. All the best
for your website.
|