PDA

View Full Version : Adding filter Plugin is breaking onpopup event


luvshack
02-12-2010, 12:05 PM
I have a wordpress template that needs to have FILTER, MULTIPLE CALENDARS, AND LIST . Everything works great until i add the filter plugin call.

When i add this code it nothing appears (install directory is 'ezcalendar')

<?php
require("ezcalendar/plugins/filter.php");
?>


Even funnier is, that if i add this code in front of that, it will display correctly but i can not click on any of the Date fields as eventPopup is undefined:

<?php
ob_start();
require("ezcalendar/calendar.php");
ob_end_clean();

require("ezcalendar/plugins/filter.php");
?>

Thanks for any help

ve9gra
02-12-2010, 12:34 PM
That means that either you have the wrong path, or that it can't find the values that need to be set for it to work. Usually it's because the $CSS and $OL lines are missing, as they will set those values, but sometimes it is caused by how the system is generating the page... losing the values in the process.

In that case, you need to add require("ezcalendar/config.inc.php"); before the code for the filter.

luvshack
02-12-2010, 12:48 PM
Thanks for very quick response. It is working now, not sure why it looses those Config values when just adding another call plugin, but if it works...don't mess with it...

Thanks again