PDA

View Full Version : Does not display correctly after integration


bruno71
12-19-2005, 11:51 AM
I recently installed the trial version of EPC to try out for our local company Intranet. Everything went smoothly and I was able to integrate it with our Intranet web site. However, when I changed it to "Text on Calendar" mode, I noticed that none of the formating and display options took effect. The only thing that displays is the green highlight on Christmas (I added one holiday event). Everything else is just plain text...no background colors, cell formating, etc. It is almost as if it was missing the CSS file, but I added the reference to it just as the instructions said. Any ideas? Thanks for the help.

~bruno71

Brian
12-19-2005, 01:30 PM
It's definitely a CSS issue. Check the HTML source of the rendered page and see if you find the esstyle.css reference and that the path is correct.

bruno71
12-19-2005, 02:45 PM
This is the reference line in the PHP file...
<?php $CSS=1; require("calendar/calendar.php"); ?>

This is the code that shows up in the rendered HTML page...
<link href="/calendar/theme/default/esstyle.css" rel="stylesheet" type="text/css"/>
<style type="text/css">
<!--
.s22 {background-color: #A4CAE6;}
.s21 {background-color: #F2BFBF;}
.s23 {background-color: #CCFF00;}
.s24 {background-color: #FBF484;}
.s29999 {background-color: #FFC18A;}
-->
</style>


All the code looks OK, but it still wasn't working. Just for fun, I replaced the reference line in the PHP file with this...
<link rel="stylesheet" type="text/css" href="calendar/theme/default/esstyle.css">

After that, the calendar displayed correctly. The problem was that, in the calendar.php file, I had the variable $urlPath set to "/calendar/". I changed it to "calendar/" and changed back to the original PHP reference line. Now the calendar displays just like it should...

However...when I try to go back into the Setup Manager, it tells me that the $urlPath variable is not set. How do I work around this?

~bruno71

Brian
12-19-2005, 03:39 PM
Load the file calendar/calendar.php in your browser (it will not appear correctly).

Copy the complete address from the address bar to calendar.php and the urlPath.

bruno71
12-20-2005, 08:33 AM
Thanks Brian! That worked.
By the way, I just finished ordering the full version of EPC. This is going to make updating and maintaining our company calendar so much eaiser. Thanks for a great product!

~bruno71