php scriptleri
 

News Publisher

Satın Almaya Hazırmısınız?


Daha Fazla Bilgi



News Publisher > Dökümanlar > Integration Guideline


 Step 1 : Create new PHP page

Create a web page where you would like to publish your news & announcements. Save the web page file with .php extension, such as news.php.

Note: You can separate the news and announcements section in two different web pages. All you need to do is create two web pages such as news.php, and announcement.php

The .php files can be uploaded in a same directory on your web server, it can be either web root directory or any directory of your choice.


   Step 2 : Find document path

To ensure that your News Publisher works regardless the location of your web page, you will need to add your server's Document Path to all the PHP include codes.

To find the Document Path, open the ' /modulescontroller/config.php ' file with your text editor, and note this path down. Let's assume the Document Path is C:/wwwroot/user/modulescontroller/


 Step 3 : Call 'config.php'

Insert the codes as below to your web page file to call the 'config.php', 'session.php' and 'css.php'. This will load all the necessary database connection, class declaration files and css control. To do this, open the newsp.php or announcement.php file with a text editor, and put it to the topmost line (line 1) of the php file, without any preceded character.

<?php
  include_once ("C:/wwwroot/user/modulescontroller/config.php");

  include_once ("C:/wwwroot/user/modulescontroller/common/session.php");
  include_once ("C:/wwwroot/user/modulescontroller/common/css.php");
?>



 Step 4 : Display news article and announcement in the content area

Now open your .php file with a text editor. Insert the following code into the area that you want the news categories and archives listing to display.

<?php include("C:/wwwroot/user/modulescontroller/newspublish/home.menu.php"); ?>


Meanwhile, to display the news's content area such as news title, full article page, put the line below.

<?php include("C:/wwwroot/user/modulescontroller/newspublish/home.news.php"); ?>


Next, use the following code to display the announcement section.

<?php include("C:/wwwroot/user/modulescontroller/newspublish/home.announce.php"); ?>


 Step 5 : View integration result

Now, proceed to your web page URL, eg: ' http://your-domain-name/news.php ' to view the front-end integration result.

To preview your sample news and announcement front-end in real time, click on the 'front-end' link on the top right menu from within the Web Modülleri panel.

Back to the top


 
Copyright © 1999 - 2008 by WebTeknolojisi Teknolojik Internet



whois search