Easy PHP Calendar - We really take care of your dates!


Go Back   Easy PHP Calendar > General Discussion > Installation / Upgrade Questions

Installation / Upgrade Questions Questions or issues concerning the installation of the Easy PHP Calendar script.

Closed Thread
 
Thread Tools Search this Thread Display Modes

Popup window path is wrong
Old 08-29-2007, 01:00 PM   #1
bocal
Calendar User
 
bocal is offline
Join Date: Aug 2007
Posts: 8
Default Popup window path is wrong

I've added the small month calendar to my home page which is one level up from the "calendar" director. I've made second "calendar.php" file so I can set the correct directory paths. I've set the server and url paths to"calendar/" verses "/calendar/". This seems to work for the CSS style, but has not made th epath for the popup window work correctly.

The code is doing... win = window.open("/calendar/functions/popup.php?

at: www.emmanuelburbank.org/newindex.org

Where can this be set or is it hard coded and requires the HTML page to be in the "calendar" directory?
 

Old 08-29-2007, 02:54 PM   #2
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

I don't understand the reason for the second calendar.php file. Where did you put this file and why?

There should be no need for extra calendar.php files or path changes. If the paths are correct, the calendar should work from any directory with one set of paths (as long as they are correct).
__________________
-- Brian

Questions?

Instructions: Version 6 - Version 7 | FAQ | Errors FAQ | Paths FAQ | Forums | Support
| Web Site Hosting
 

Old 08-29-2007, 03:25 PM   #3
bocal
Calendar User
 
bocal is offline
Join Date: Aug 2007
Posts: 8
Default

Ok, that's what the code looked like it was suppose to do, but something went wrong. I've reset it back the normal way.

The (newindex.php) file has:

<?php $CSS=1; require("calendar/calendar.php"); ?>

between <head> and </head> lines.

in the <body> I have:

<?php
$MULTI=1;
$epcMultiWidth = "180px";
$epcMultiPad = 2;
$epcMultiNav = "170px";
$epcMultiCol = 1;
$epcMultiRow = 1;
require("calendar/calendar.php");
?>

calender.php has:

$serverPath="/home/efcweb1/public_html/calendar/";

and

$urlPath="/calendar/";

The problem page is:

www.emmanuelburbank.org/newindex.php

The source code shows:

<link href="/calendar/theme/emmtheme/esstyle.css" rel="stylesheet" type="text/css"/>

and

win = window.open("/calendar/functions/popup.php?ev=" + ev + "&readFile=0&readSQL=1&showCat=&oc=1","Calendar"," scrollbars=yes,status=no,location=no,toolbar=no,me nubar=no,directories=no,resizable=yes,width=" + w + ",height=" + h + ",top=" + wint + ",left=" + winl + "");
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }


Wrong paths... both should read... "calendar/". I think the first "/" needs to be eliminated.

See what you think. Thanks, Bo
 

Image path also a problem
Old 08-29-2007, 03:32 PM   #4
bocal
Calendar User
 
bocal is offline
Join Date: Aug 2007
Posts: 8
Default Image path also a problem

Also forgot... the images are also not sourcing the correct path which come from the config.inc.php file.

Source code looks like:

<td align=left width="33%"><a href="newindex.php?mo=7&amp;yr=2007" class=navTableText><img src="images/arrow_back.png" width="20" height="20" border="0"></a></td>
<td align=center width="34%"><a href="newindex.php?mo=08&amp;yr=2007" class=navTableText><img src="images/stop.png" width="20" height="20" border="0"></a></td>
<td align=right width="33%"><a href="newindex.php?mo=9&amp;yr=2007" class=navTableText><img src="images/arrow_next.png" width="20" height="20" border="0"></a></td>

In the case... we need the "calendar/" added to the path. Should it source another copy of config.inc.php to correct this or some other way?
 

Old 08-29-2007, 04:03 PM   #5
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

The path should have the "/" in front of it.

If you're using images for navigation, you must include the full HTTP path to the files. (i.e.: <img src="http://www.domain.com/paths/file.gif">).

What exactly isn't working (the reason this thread was started)?
__________________
-- Brian

Questions?

Instructions: Version 6 - Version 7 | FAQ | Errors FAQ | Paths FAQ | Forums | Support
| Web Site Hosting
 

Original Problem...
Old 08-29-2007, 05:10 PM   #6
bocal
Calendar User
 
bocal is offline
Join Date: Aug 2007
Posts: 8
Default Original Problem...

Fixed the image problem. Thanks for the heads up.

The orginal problem is that the mouse over pop-up window doesn't display. It shows an error on line 124. See:www.emmanuelburbank.org/newindex.php in the bottom left corner. I assumed it was a path problem... my bad.

See what you think.

-Bo
 
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Design of Popup Window nsfahey General 5 11-08-2007 07:46 PM
Setup Manager: Popup window Inconsistent display easydoesit General Support 4 01-07-2007 10:31 AM
opening calendar in popup window reloads page..... badmix General Support 1 07-29-2003 11:26 PM



All times are GMT -4. The time now is 01:57 AM.


vBulletin skins developed by: eXtremepixels
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright 2009 NashTech, Inc.

| Home | Register | Today's Posts | Search | New Posts |