Browse Topics In
Knowledge Base
|
|
Search for Answers |
|
Intelligent FAQ Search. Type in your keywords to search for the answers you need. |
|
Back
|
Newsletter > Installation |
Showing 2 of 2 |
Prev |
Integrating Newsletter To Your Web Page
Modified on 2004-11-10
|
- One of our product uniqueness is we made our scripts capable to fit into your existing web design.
- First, create a web page where you would like the Newsletter Subscription form to appear, save the web page file with .php extension, for example newssubscribe.php.
- Create another web page to locate your Newsletter Archives, let's call it newsarchive.php
Both newssubscribe.php and newsarchive.php files are to be located in a same directory on your web server, it can be either web root directory or any directory of your choice.
- To ensure the Newsletter works regardless the location of your web pages, you will need to add your document path to all the PHP include codes. To find your document path, open the /oneadmin/config.php file with your text editor, note this path down.
Let's assume that the document path is '/home/sitename/public_html/oneadmin/'
Calling the Newsletter Subscription Scripts
- Open the newssubscribe.php you have created with your text editor.
- Place the following portion of code into the area you want the Newsletter menu to display:
<table border=0 width=90% align=center><tr><td> <b><u>Join Newsletter</u></b><br><br> • <a href=samplenewsletter.php style="text-decoration:none">Subscribe Newsletter</a><br><br> • <a href=samplenewsbrowse.php style="text-decoration:none">Browse Newsletter</a><br> </td></tr></table><br>
- In the body content section, insert the below line to display your Newsletter Subscription form.
<?
include_once("/home/sitename/public_html/oneadmin/config.php");
include("/home/sitename/public_html/oneadmin/newsletter/home.subscribe.php");
?>
- Save the newssubscribe.php file.
Calling the Newsletter Archives Scripts
- Open the newsarchive.php file with your text editor.
- Insert the following part into the area you want the Newsletter menu to display:
<table border=0 width=90% align=center><tr><td> <b><u>Join Newsletter</u></b><br><br> • <a href=samplenewsletter.php style="text-decoration:none">Subscribe Newsletter</a><br><br> • <a href=samplenewsbrowse.php style="text-decoration:none">Browse Newsletter</a><br> </td></tr></table><br>
- Put the following line in the body content section, to show all the newsletters you have added to your database.
<?
include_once("/home/sitename/public_html/oneadmin/config.php");
include("/home/sitename/public_html/oneadmin/newsletter/home.browse.php");
?>
- Save your newsarchive.php file.
- Navigate to your web pages, eg: http://your-domain-name/newssubscribe.php, and http://your-domain-name/newsarchive.php to view the Newsletter publish result. You will see the two links on the menu enable navigation to each other.
We recommend that you place your codes on the hidden web pages to test before placing them on the public pages.
If you need more references on code plug-in guidelines, open the /oneadmin/samplenewsletter.php and /oneadmin/samplenewsbrowse.php files with your text editor. Browsing to the sample web page, for said http://your-domain-name/oneadmin/samplenewsletter.php will enables you to preview the mailing list signup process in real time.
Note: Substitute the path in green to your Document Path (the complete path to your oneadmin directory)
|
|
|
|