PDA

View Full Version : Nothing Displays On Page


ibenunot
12-05-2007, 10:25 PM
Hi, I've got a new installation on my site. I tried the test script which worked perfectly. I did an auto install so I'm assuming the files were uploaded in binary. I logged in and created my administrator account with no problem. However, I've added the code to the page I want the calendar to appear on but there's nothing there. No errors, nothing. Using flat file for this. Any ideas? http://www.healingchoicesce.com/schedule.php is the page.

Brian
12-05-2007, 10:27 PM
Can you attach your schedule.php file?

ve9gra
12-06-2007, 07:03 AM
Where you have this line <?php $OL=1; require("calendar/calendar.php"); ?> change it to this <?php require("calendar/calendar.php"); ?>

Now just below <body> (before the first <table> tag) that's where you add the $OL line <?php $OL=1; require("calendar/calendar.php"); ?>

ibenunot
12-06-2007, 09:30 PM
Thanks for the help with the php in the <head> section, that has allowed a small calendar to appear on the page. However the calendar doesn't appear in the right place. I need to move where the calendar appears. If the php has to be right after the first <body> tag it won't appear in the correct place on my template, it seems it would have to be somewhere in the table. I've tried moving it somewhere else but hasn't changed the location of the calendar. The page in question is http://www.healingchoicesce.com/schedule.php

What should I try next?

Thanks for your help.

ve9gra
12-06-2007, 09:46 PM
Both times, you only had 2 parts of the 3 required parts for the calendar.

The first time you had:
- the $CSS line just above </head> // correct
- the $OL line just below <body> // almost correct, had to be moved higher a bit
- the line that displays the calendar // entirely missing

The second time:
- the $CSS line just above </head> // missing
- the $OL line just below <body> // correct
- the line that displays the calendar // moved to the $CSS position

Don't think of the code you put in as regular PHP. Calling the require will generate different bits by changing the variable that comes before it. Think of the following pieces as single commands that cannot be divided.

This is what will generate the CSS info (what will apply the theme). This goes right before the </head>
<?php $CSS=1; require("calendar/calendar.php"); ?>

This bit is what will enable mouse-over popus. It goes right after the <body> tag
<?php $OL=1; require("calendar/calendar.php"); ?>

Finally, you'll need one more line to display the calendar. This one you can place wherever you want the calendar to be shown.
<?php require("calendar/calendar.php"); ?>

The first two bits are required on any page that has any part of the calendar displayed. For the third part, you can display one or more (in any order, at any placement) of the calendar modes: Normal, TOC, List, or Blog.

For the official documentation, check out the Online Documentation (http://docs.easyphpcalendar.com/) in the Integration section.

ibenunot
12-06-2007, 10:02 PM
Thanks so much for your help. I guess I just didn't see all three parts that were needed. It's displaying correctly now.