View Full Version : Integrating on to Webpage
StownFBLA
02-11-2006, 11:57 PM
I am having a hard time integrating the calendar on my webpage. Can someone help me? The page link that I am trying to intergrate on is http://www.stownfbla.org/nonflash/calendar.html
and my source code is attached.
Brian
02-12-2006, 08:23 AM
You have some structural problems with your page. There are two sets of HTML tags, BODY tags, etc. That's really messing up the code for the page.
Please see the Integration section of the instructions for details on how to add the calendar code to your own pages.
StownFBLA
02-12-2006, 06:02 PM
Can you help me? If you delete the second set of html codes and add the other ones for me? I have tried it my self by following the integration.
Brian
02-12-2006, 09:54 PM
Please zip and attach a copy of the code for your page.
StownFBLA
02-12-2006, 11:14 PM
I am getting this error message when I put the EPC code in my page:
Warning: main(calendar/calendar.php): failed to open stream: No such file or directory in /home/stownfbl/public_html/nonflash/test.php on line 6
Fatal error: main(): Failed opening required 'calendar/calendar.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/stownfbl/public_html/nonflash/test.php on line 6
And I know what it is; however I don't know what to do. For some reason it is not going to the file.
StownFBLA
02-12-2006, 11:41 PM
I have sort of fixed the error. But now It just doesn't want to show up. I have created a test file and it worked on there; however, when I want to up the other graphics and tables and stuff of my webpage it doesn't show up.
Brian
02-13-2006, 08:49 AM
Where you have require("calendar/calendar.php"), try changing it to require("../calendar/calendar.php").
Syntex
02-15-2006, 01:12 AM
I have installed all components and I can access calendar by going to http://www.catchingbass.net/calendar/ (http://www.catchingbass.net/calendar/) which is where I installed the program. I am having trouble integrating it into my web page at http://www.catchingbass.net/tourney.htm (http://www.catchingbass.net/tourney.htm) . Can anyone give me some advice on why it's not showing up....:sad:
Brian
02-15-2006, 08:23 AM
Most servers don't parse PHP on .htm pages. Try changing the page name to tourney.php and see if it will work then.
Syntex
02-15-2006, 01:36 PM
I will try to drop it into a frame. But, I need to disable the list below the calendar to make it work. How do I do that. The mouseover and popup function will work fine if I can just remove that list.....Any suggestions
Brian
02-15-2006, 01:43 PM
Please see the Integration section of the instructions. It will detail how to do this. :)
Syntex
02-20-2006, 12:22 AM
Brian,
Ok let me start by letting you know that I know almost nothing about this stuff....So here we go:
Now it's working http://www.catchingbass.net/tourney.php But, I have to use two entries to make the mouse over work. If I use the <center><?php $OL=1; require("calendar/calendar.php"); ?></center> by itself I get nothing.
By accident and in fustration I added <center><?php include("calendar/calendar.php"); ?></center> below it which is something I learned from another page and the calendar showed up with mouseover.
Now, If I remove the <center><?php $OL=1; require("calendar/calendar.php"); ?></center> the calendar is still there with no mouseover. So, I have to use both to get it to work....I am sure something is wrong I just dont know what it is. Any Ideas.
Thanks Again!
Brian
02-20-2006, 09:06 AM
<center><?php $OL=1; require("calendar/calendar.php"); ?></center> is not the proper way to add this code.
As per the example in the documentation, the OL code should appear immediately below <body> like this:
<body>
<?php $OL=1; require("calendar/calendar.php"); ?>
ve9gra
02-20-2006, 10:54 AM
Syntex: This is exactly how it is designed to operate. You are supposed to add both those lines. But as Brian described, you haven't followed the integration instructions.
This line adds only the code that makes the mouse-over popup work
<?php $OL=1; require("calendar/calendar.php"); ?>
Then you need to add this line to make the calendar appear...
<?php require("calendar/calendar.php"); ?>
With only the first, you won't see anything on the front end... It only adds stuff in the code. With only the second one, the mouse-over won't work... So, no, nothing is wrong with your installation. But do fix where you added your first line like Brian said.
Syntex
02-20-2006, 11:32 AM
Thanks alot guys, I didn't understand that I needed both lines to make it work. In anycase, This is a great calendar.
vBulletin® v3.8.4, Copyright ©2000-2013, Jelsoft Enterprises Ltd.