judyhz
06-16-2008, 04:00 PM
I've integrated an installation of EPC into Wordpress. Everything works OK so far, just a few minor things...
Popups are enabled and work in my demo calendar, but not in my WP installation. I've added the appropriate files in the header and body (list popups do work for me). I have this code in my sidebar (some will recognize that the extra code moves the navleft/navright to the top of the calendar):
<?php
unset($EPCBLOG);
ob_start();
require("calendar/calendar.php");
ob_end_clean();
$EPCBLOG="1";
$noNav="1";
(!isset($_REQUEST['mo'])?$mo=date('m'):$mo=$_REQUEST['mo']);
(!isset($_REQUEST['yr'])?$yr=date('Y'):$yr=$_REQUEST['yr']);
$yb=$yr;
$yf=$yr;
$mb=$mo-1;
if ($mb<1) {$mb=12; $yb=$yr-1;}
$mf=$mo+1;
if ($mf>12) {$mf=1; $yf=$yr+1;}
$cmo = date("m");
$cyr = date("Y");
?>
<table class="navTable" cellspacing="0" cellpadding="0">
<tr>
<td align="left" width="33%"><a href="<?php echo "$thisFile?".$returnString.($returnString==""?"":"&")."mo=$mb&yr=$yb$anchorTag".$returnString2; ?>" class="navTableText"><?php echo $navLeft; ?></a></td>
<td align="center" width="34%"><a href="<?php echo "$thisFile?".$returnString.($returnString==""?"":"&")."mo=$cmo&yr=$cyr$anchorTag".$returnString2; ?>" class="navTableText"><?php echo $navMiddle ?></a></td>
<td align="right" width="33%"><a href="<?php echo "$thisFile?".$returnString.($returnString==""?"":"&")."mo=$mf&yr=$yf$anchorTag".$returnString2; ?>" class="navTableText"><?php echo $navRight; ?></a></td>
</tr>
</table>
<?php require("calendar/calendar.php"); ?>
I know I should see this in my source:
onmouseover="return overlib('<table width="100%" border="0" cellpadding="2" cellspacing="0" class="popupDateTable"> <tr><td class="popupDate">June 2, 2008</td><td class="popupClose"><a href="javascript:void(0);" onmouseover="javascript:cClick();"><span class="popupClose">[X]</span></a></td></tr></table><br /><div class="popupEventTitle s21">Board Meeting </div><div class="popupEventTime">7:30 AM to 8:30 AM</div> </div><div class="popupEventDate">Single Day Event</div><br /><div align="center"> </div>');" onmouseout="return nd();"but I have this for /every/ date:
onclick="location.href='index.php?ev=2454619&mo=6&yr=2008'"I'm sure it has to do with the kludges I'm using, or the order I'm using them--do you know how I can bring back my popups?
Popups are enabled and work in my demo calendar, but not in my WP installation. I've added the appropriate files in the header and body (list popups do work for me). I have this code in my sidebar (some will recognize that the extra code moves the navleft/navright to the top of the calendar):
<?php
unset($EPCBLOG);
ob_start();
require("calendar/calendar.php");
ob_end_clean();
$EPCBLOG="1";
$noNav="1";
(!isset($_REQUEST['mo'])?$mo=date('m'):$mo=$_REQUEST['mo']);
(!isset($_REQUEST['yr'])?$yr=date('Y'):$yr=$_REQUEST['yr']);
$yb=$yr;
$yf=$yr;
$mb=$mo-1;
if ($mb<1) {$mb=12; $yb=$yr-1;}
$mf=$mo+1;
if ($mf>12) {$mf=1; $yf=$yr+1;}
$cmo = date("m");
$cyr = date("Y");
?>
<table class="navTable" cellspacing="0" cellpadding="0">
<tr>
<td align="left" width="33%"><a href="<?php echo "$thisFile?".$returnString.($returnString==""?"":"&")."mo=$mb&yr=$yb$anchorTag".$returnString2; ?>" class="navTableText"><?php echo $navLeft; ?></a></td>
<td align="center" width="34%"><a href="<?php echo "$thisFile?".$returnString.($returnString==""?"":"&")."mo=$cmo&yr=$cyr$anchorTag".$returnString2; ?>" class="navTableText"><?php echo $navMiddle ?></a></td>
<td align="right" width="33%"><a href="<?php echo "$thisFile?".$returnString.($returnString==""?"":"&")."mo=$mf&yr=$yf$anchorTag".$returnString2; ?>" class="navTableText"><?php echo $navRight; ?></a></td>
</tr>
</table>
<?php require("calendar/calendar.php"); ?>
I know I should see this in my source:
onmouseover="return overlib('<table width="100%" border="0" cellpadding="2" cellspacing="0" class="popupDateTable"> <tr><td class="popupDate">June 2, 2008</td><td class="popupClose"><a href="javascript:void(0);" onmouseover="javascript:cClick();"><span class="popupClose">[X]</span></a></td></tr></table><br /><div class="popupEventTitle s21">Board Meeting </div><div class="popupEventTime">7:30 AM to 8:30 AM</div> </div><div class="popupEventDate">Single Day Event</div><br /><div align="center"> </div>');" onmouseout="return nd();"but I have this for /every/ date:
onclick="location.href='index.php?ev=2454619&mo=6&yr=2008'"I'm sure it has to do with the kludges I'm using, or the order I'm using them--do you know how I can bring back my popups?