|One of our product uniqueness is we made our scripts capable to fit into your existing web design.
1. Create New PHP Page
Create a PHP page where you would like to publish your news and articles. Save the web page file with .php extension, such as news.php. You can put the file in any directory on the server.
2. Find the Document Path
To ensure that your News Publisher works regardless the location of the PHP page, you will need to add your server's Document Path to all the PHP include codes.
To find the Document Path, open the
/myadmin/config.phpfile with your text editor, and note down the value for $path["docroot"]. Let's assume the Document Path is C:/wwwroot/user/myadmin/
3. Include config.php, session.php and css.php
Insert the codes below to your PHP page to call the
css.php. This will load all the necessary database connection, program libraries and CSS.
To do this, open the news.php file with text editor, and put it to the
topmost line (line 1)of the PHP file, without any preceded character.
4. Include News Publisher Menu, News and Announcements
a. To display News Publisher categories in the menu area:-
<?php include("C:/wwwroot/user/myadmin/newspublish/home.menu.php"); ?>b. To display the news in the content area:-
<?php include("C:/wwwroot/user/myadmin/newspublish/home.news.php"); ?>c. To display the announcement in the content area:-
<?php include("C:/wwwroot/user/myadmin/newspublish/home.announce.php"); ?>Save your web page file and upload it via FTP.
5. View Integration Result
Now, proceed to your web page URL, eg: http://your-domain-name/news.php to view your News Publisher front-end integration result.