PDA

View Full Version : Implementing 4.5 in an existing page


kirtok
01-30-2004, 10:11 AM
Hi everybody
I have already read almost everything on this discussion forum, but I couldn't make my calendar work. Please help me :) I have also checked some calendar implemented web sites on exhibition topic.
Here's what I did.
I have downloaded 4.5 and created a folder name calendar. I have put the calendar folder under my main root (www) . I want to implement the calendar to my index page. I have tried a php, and a javascript to call the calendar it didn't work. Please let me know what to do step by step. I am a newbie.
Thanks in advance

Brian
01-30-2004, 10:41 AM
Please make sure you read the instructions about setting up your pages.

Where you want the calendar to appear, try:

<?php require("escal.php"); ?>

kirtok
01-30-2004, 11:20 AM
Is the code below look right??? Is the name of the actual calendar file escal or demo in escalConfig.php ?
// SET CALENDAR LINK (The name of the actual calendar file)
$calendarLink = "http://www.nwtitc.org/calendar/escal.php";

You can check the page I am working on at
http://www.nwtitc.org/indextest.php
Calendar is all the way at the bottom of the page

kirtok
01-30-2004, 11:43 AM
Ok finally I have implemented it. It shows in http://www.nwtitc.org/indextest.php page and you can go to next and previous months in the same page. I am only having trouble with the rollover popup box right now. Do you have any suggestions? I am missing something somewhere but I don't know where :)

ve9gra
01-30-2004, 12:18 PM
You're missing two things...

1- The overLib <div> tag...
<div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000;"></div>
2- The overLib <script> tag
<script language="JavaScript" src="/calendar/overlib_mini.js"><!-- overLIB (c) Erik Bosrup --></script>
Just add these two things right before your include of escal.php and it should work


Papa: it might be a good idea to edit escal.php (v. PB4.5) around the line 200... right before the //Display Calendar so that you can define those two lines if $overLIB==1... Make it automatic, hence more userfriendly ;)
if ($overLIB==1) {
echo "<div id=\"overDiv\" style=\"position:absolute; visibility:hidden; z-index:1000;\"></div>";
echo "<script language=\"JavaScript\" src=\"".$urlPath."overlib_mini.js\"><!-- overLIB (c) Erik Bosrup --></script>";
}

kirtok
01-30-2004, 12:21 PM
Those lines were both in my code but I didn't use my subfolder calendar/overlib_mini instead I used overlib_mini
I changed it and it works just fine.
Thanks a lot guys, u all rock.

kirtok
01-30-2004, 03:14 PM
I have a last question. Everything worked just fine untill I put my menu (javascript) back in the page. When you rollover to the event date automatic popup always shows up somewhere else in the page. Other than this problem all the calendar script works just fine. I think this is a problem because of using more than one javascript in the same page. How can I solve this problem?
http://www.nwtitc.org/indextest.php