Comdev - More PHP Modules For Your Website Think PHP Modules . Think Comdev 

One Admin

One Admin Pro
  Build and customize your
  own modules

  Introduction
  Getting Started
  Requirements
  Features &   Screenshots
  View Demo
  Trial Download
  Pricing/Order


  Installation Guides
    •  Upload To Server
    •  Installation Wizard
  Integration
  Interface Overview
  Tutorials
    • Back-End
    • Administrator Section
  Knowledge Base


  Discussion Forum
  Post Support Ticket
  Obtain Activation Key
  Installation Support
  Upgrade Center


Guidelines To Integrate Misc Tools To Your Web Page


Using only a few PHP include lines, you can easily publish each tool onto your web design pages.

Before   After Integration

 Step 1 : Create new PHP page

Create a web page where you would like to publish your Misc Tools. Save the web page file with .php extension, such as misctool.php

Note: You can put the file into web root directory or any directory on the server.


 Step 2 : Find Document Path

To ensure that your Misc Tools 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 ' /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/


 Step 3 : Call 'config.php'

Before calling any file, use one of the following codes to call the 'oneadmin/config.php'. 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 Misc Tools system, insert this line to your web page file. To do this, open the misctool.php file with a text editor, and put it to the topmost line (line 1) of the misctool.php file, without any preceded character.

<?php
  include_once ("/home/sitename/public_html/oneadmin/config.php");

  include_once ("/home/sitename/public_html/oneadmin/common/session.php");
?>


II.  

Disabled Image Verification Feature**

If the image verification feature of your Misc Tools is disabled, insert the following line to the topmost line (line 1) of the misctool.php file, without any preceded character.

<?php include_once ("/home/sitename/public_html/oneadmin/config.php"); ?>


 Step 4 : Select tools to integrate


Site SearchTell A FriendPassword PageMini PollSite CounterSite Map



 Site Search Front-End Integration Guidelines

In your text editor, open the web page that you would like to display the search box, and the searched results. Note: The search box and the searched results can separate in different pages.

To show the search box, put the line below to your menu section.

<?php include("/home/sitename/public_html/oneadmin/misctool/home.sitesearch.php"); ?>

In the body content part, insert the following line to display the search results.

<?php include("/home/sitename/public_html/oneadmin/misctool/home.searchresult.php"); ?>


  Tell A Friend Front-End Integration Guidelines

Insert this line to the menu of your php web page, to show the 'Tell A Friend' section.

<?php include("/home/sitename/public_html/oneadmin/misctool/home.tellafriend.php"); ?>


  Password Page Front-End Integration Guidelines

To setup the login form, open the member.php file with your text editor, insert the line below, just on top of the code / content portion you want to hide from public viewing.

<?php include("/home/sitename/public_html/oneadmin/misctool/home.passwordpage.php"); ?>

Note: You can create either a Full Protected page, or Partial Protected page.
•  Full Protected Page (a blank web page with login form)
   - put the include line underneath the <body> tag.


•  Partial Protected Page (a web page with header, follow by the login form)
   - put the include line on the top of <table> tag for body content.


  Mini Poll Front-End Integration Guidelines

Open the web page file you wish to addon the Mini Poll, on the menu section, enter the following line.

<?php include("/home/sitename/public_html/oneadmin/misctool/home.minipoll.php"); ?>


  Site Counter Front-End Integration Guidelines

On your web page file, point to the location you want to display your site counter, and insert this line.

<?php include("/home/sitename/public_html/oneadmin/misctool/home.sitecounter.php"); ?>


  Site Map Front-End Integration Guidelines

In your preferable text editor, open your site map web page file, use the line below to display the site map entries on the body content.

<?php include("/home/sitename/public_html/oneadmin/misctool/home.sitemap.php"); ?>




** Image Verification is used to prevent form submission by automated system and thus fix the spam issues. The form that you've created in your website is likely to receive unauthorized login by a robot (script) - an automated system which will send unsolicited e-mail to you. To apply this feature to your Misc Tools system, download the Patch 4015_01 from our Knowledge Base.


Back to the top


Copyright © 2002-2006 by Comdev Software Sdn Bhd. All Rights Reserved. License Agreement Privacy Policy Site Map