4thduck
Junior Member
Posts: 2
Registered: 6/26/2004
Location: Colorado Springs
Member Is Offline
|
| posted on 6/26/2004 at 02:21 AM |
|
|
Adding Calendar Code
first do I point my navigation to Index.php or Calendar.php
second which page do I add this code to?
Adding calendar code to your page
Insert the following PHP code in the beginning of the page:
<?
include 'path_to_calendar_dir_files/calendar.php';
?>
then you can place one or several calendars inserting the following code properly:
<?
show_calendar(Your_calendar_name);
?>
|
|
|
robbied
Junior Member
Posts: 7
Registered: 8/5/2004
Member Is Offline
|
| posted on 8/5/2004 at 07:03 PM |
|
|
the path_to_calendar_dir is an include line that needs to go at the top of your page. this page needs to be php (i believe)
then the show calendar line is where your calendar will display on your page. the sow calendar line is a function inside the calendar.php file
you shouldnt have to point to anything except the page that you want to show the calendar eg: www.mysite.com/mypage.php
dont get all scared if you dont know php. take a html page save it as mypage.php and put an html page inside it. then inside the html code put the 2
php lines (one at the top and the other where you want the calendar to go)
voila you can make a php page!
I found I had to put <?php on the tags because my server didnt know it was php, kinda depends on your server
good luck
thx
rob
|
|
|