Browse Topics In
Knowledge Base
|
|
Search for Answers |
|
Intelligent FAQ Search. Type in your keywords to search for the answers you need. |
|
Back
|
News & Announcement > Installation |
Showing 2 of 2 |
Prev |
Integrating News & Announcement To Your Web Page
Modified on 2004-12-01
|
- 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 News & Announcement page to appear, save the web page file with .php extension, for example news.php.
- The news.php file can be uploaded in a same directory on your web server, it can be either web root directory or any directory of your choice.
- To ensure the News & Announcement 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 it down.
Let's assume that the document path is '/home/sitename/public_html/oneadmin/'
Calling the News Article Display
- Open the news.php you have created with your text editor.
- Place the following portion of code into the area you want the Newsletter menu to display:
- In the body content section, insert the below line to display your Lastest News listing.
<?
include_once("/home/sitename/public_html/oneadmin/config.php");
include("/home/sitename/public_html/oneadmin/newsannounce/home.news.php");
?>
- Save the news.php file.
Calling the Announcement Display
- Open the newsarchive.php file with your text editor.
- 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/newsannounce/home.announce.php");
?>
- Save your news.php file.
- Navigate to the news.php page, eg: http://your-domain-name/news.php to view the result. 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 reference on the plug-in guidelines, open /oneadmin/samplenewsannounce.php file with your text editor. Browse to the sample web page, for said http://your-domain-name/oneadmin/samplenewsannounce.php will enable you to preview the news and announcement front-end in real time.
Note: Substitute the path in green to your Document Path (the complete path to your oneadmin directory)
|
|
|
|