popup path issue
Hey Gurus,
Got nothing but love for ephpcal! It does everything I need it to do! Love it so much I bought 2!
I was asked to add a second calendar just for events. OK. No problem. Admin works great. Add/Edit/Remove events no problem.
Got a funny issue here with popups on mini cals and the path for the url that creates the popup.
Background:
mod_escal
Joomla 1.5.8
Microsoft-IIS/6.0
PHP 5.2.9-1
http://sharonct.org
Two calendars in different directories [each with its own license]
Town Hall is MySQL
Events is flatfile [for now]
Issue:
The path for the popups for each calendar are the same. In other words, when a user clicks a date in the "Town Hall Calendar" they get the appropriate event info. When a user clicks a date in the "Events Calendar" they get a popup but with no event info.
The URL in the popup for "Town Hall Events" is:
hxxp://sharonct.org/calendar/functions/popup.php?ev=2455513&showCat=&oc=1
The URL in the popup for "Event Calendar" is the same. It looks like it is pulling the event data from the wrong path. There is no event data for that date in the SQL for the "Town Hall" If I change the URL to reflect the correct path [event_calendar/functions/] it works and shows the events. If I add event data for that date on the "Town Hall" it shows up for the "Event Calendar".
I read elsewhere in the forum that two calendars on the same page = bad idea. So I turned off the "Town Hall" module and left the "Event Calendar" module. Now I figured it would be just fine. Nope. Same URL in the popup. OK check my calendar.php and server path is good. My urlPath is good.
Also I checked the source and each mini cal shows a different path:
Town Hall:
function popupEvent(ev, w, h) { var winl = (screen.width - w) / 2; var wint = (screen.height - h) / 2; win = window.open("/calendar/functions/popup.php?
Event Calendar:
function popupEvent(ev, w, h) { var winl = (screen.width - w) / 2; var wint = (screen.height - h) / 2; win =window.open("/event_calendar/functions/popup.php?
So now I'm confused. Anyone have any ideas?
TIA
Joel
Last edited by metalshaper; 11-14-2010 at 11:17 PM.
|