PDA

View Full Version : Integrated popups not working


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&amp;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&amp;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&amp;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('&lt;table width=&quot;100%&quot; border=&quot;0&quot; cellpadding=&quot;2&quot; cellspacing=&quot;0&quot; class=&quot;popupDateTable&quot;&gt; &lt;tr&gt;&lt;td class=&quot;popupDate&quot;&gt;June 2, 2008&lt;/td&gt;&lt;td class=&quot;popupClose&quot;&gt;&lt;a href=&quot;javascript:void(0);&quot; onmouseover=&quot;javascript:cClick();&quot;&gt;&lt;span class=&quot;popupClose&quot;&gt;[X]&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;br /&gt;&lt;div class=&quot;popupEventTitle s21&quot;&gt;Board Meeting &lt;/div&gt;&lt;div class=&quot;popupEventTime&quot;&gt;7:30 AM to 8:30 AM&lt;/div&gt; &lt;/div&gt;&lt;div class=&quot;popupEventDate&quot;&gt;Single Day Event&lt;/div&gt;&lt;br /&gt;&lt;div align=&quot;center&quot;&gt; &lt;/div&gt;');" 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?

Brian
06-16-2008, 08:48 PM
Blog Mode doesn't utilize pop-ups by design. Just click the date. :)

judyhz
06-16-2008, 08:52 PM
Thanks for the reply--I used code from the demo.php file (duh--like you're always telling folks to do) and it works great.