Search for Answers |
|
Type in your keywords to search for the answers you need. |
|
Integrating Events Calendar To Your Web Page
Modified on 2005-06-01
|
- 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 calendar to publish. Save the web page file with .php extension, such as calendar.php.
You can put the file into web root directory or any directory of your choice on the server.
- To ensure the Events Calendar 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 down the value.
Let's assume the Document Path is '/home/sitename/public_html/oneadmin/'
- Now, open the web page file (calendar.php) with your text editor.
- In the body content section, insert the following line to display your Events Calendar (calling the calendar/home.calendar.php file).
<?
include_once("/home/sitename/public_html/oneadmin/config.php");
include("/home/sitename/public_html/oneadmin/calendar/home.calendar.php");
?>
- Save your web page file.
- Navigate to your web page, eg: http://your-domain-name/calendar.php to view the Events Calendar 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 on code plug-in guidelines, you may open the /oneadmin/samplephotogallery.php file with your text editor. To preview the sample calendar page in real time, click on the 'front-end' link on the top right menu from within the One Admin panel.
Note: Substitute the path in green to your Document Path (the complete path to your /oneadmin directory)
|
|
|