| Back To List | Web Blogger > Installation | Showing 2 Of 2 | Prev |
Integrating Web Blogger To Your Web PageModified on 2006-07-05 |
|
Step 1 : Create new PHP page Create a web page where you would like to publish your blog. Save the web page file with .php extension, say for example, blogger.php. * Note: You can put the file into your web root directory or any directory on the server.
To ensure that your Web Blogger works regardless of 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 ' /oneadmin/config.php ' file with your text editor, and note this path down. Let's assume the Document Path is /home/sitename/public_html/oneadmin/.
Before calling any file, use one of the following code to call the oneadmin/config.php file. The config.php file will loads all the class libraries and creates database connection. I. Enabling Image Verification Feature If you have enabled the image verification to your Web Blogger system, insert this line to your web page file. To do this, open the blogger.php file with a text editor, and put it to the topmost line (line 1) of the blogger.php file, without any preceded character. <?php II. Disabled Image Verification Feature If the image verification feature of your Web Blogger is disabled, insert the following line to the topmost line (line 1) of the blogger.php file, without any preceded character. <?php include_once ("/home/sitename/public_html/oneadmin/config.php"); ?>
Step 4 : Load menu and content area To load the Web Blogger's menu section, such as calendar, blog categories, recent entries, links, member login, place the include code below into the area you where want the menu to display (call the blogger/home.menu.php file). <?php include("/home/sitename/public_html/oneadmin/blogger/home.menu.php"); ?> In the body content section, put the following line to display your blog and comments (calling the blogger/home.blog.php file). <?php include("/home/sitename/public_html/oneadmin/blogger/home.blog.php"); ?> Save your web page file and upload it via FTP.
Now, proceed to your web page URL, eg: to view your Web Blogger front-end integration result. To preview your sample blog page in real time, click on the 'front-end' link on the top right menu from within the One Admin panel. We recommend that you place your codes on a hidden web page to test before placing them on a public page. |
|
|
||||||
Related FAQs In This Category |
|
|
Installing Web Blogger 4.0 |
|
|
Integrating Web Blogger To Your Web Page |
|
