Browse Topics In
Knowledge Base
|
|
Search for Answers |
|
Intelligent FAQ Search. Type in your keywords to search for the answers you need. |
|
Back
|
FAQ Support > Installation |
Showing 2 of 2 |
Prev |
Integrating FAQ Support To Web Page
Modified on 2004-11-10
|
- 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 FAQ Support system to appear. Save the web page file with .php extension, for example faq.php or knowledgebase.php. Open the file with your text editor.
You can put the file into web root directory or any directory of your choice on the server.
- To ensure the FAQ Support works regardless the location of your web page, you will need to add your Document Path to all the PHP include codes.
Open the /oneadmin/config.php file, and copy the value of Document Path.
Let's assume that the document path is '/home/sitename/public_html/oneadmin/'
- Before calling the FAQ Support scripts, insert the line below into your web page file to call the /oneadmin/config.php. The config.php file will loads all the class libraries and creates database connection.
<? include_once("/home/sitename/public_html/oneadmin/config.php"); ?>
Note: This code must be loaded / called before other include codes.You may put it anywhere on the web page file, however, making sure that it is located above the other include snippets.
- Next, to load the FAQ Support's menu (FAQ categories and search functionality), place the include snippet below into the area you want the menu to display (call the faqsupport/home.category.php file).
<? include("/home/sitename/public_html/oneadmin/faqsupport/home.category.php"); ?>
- Finally, use this code to display the body content of FAQ Support (call to faqsupport/home.faq.php file).
<? include("/home/sitename/public_html/oneadmin/faqsupport/home.faq.php"); ?>
- Navigate to your web page, eg: http://your-domain-name/faq.php to view the FAQ Support publish result.
We recommend that you place your codes on a hidden web page to test before placing them on a public page.
If you need more references, you can open the /oneadmin/samplefaqsupport.php file with a text editor to have the code plug-in guidelines . Browsing to the sample web page, for said http://your-domain-name/oneadmin/samplefaqsupport.php will enables you to preview your knowledge base in real time.
Note: Substitute the path in green to your Document Path (the complete path to your /oneadmin directory)
|
|
|
|