jamesmehorter on "[Plugin: Events Calendar] Do not update! 12-12-09"
February 9, 2010 by David Olsen
Hi All,
I’m having some issues with the SideBar implementation. Im using 6.6 Beta on WP 2.9.1 with the patch from above. The large calendar works fine. On the page displaying the sidebar; firebug is calling the following error..
unterminated string literal
.attr(‘title’, ‘\n
Here is a snippet from View Source…
(function($) {
ecd.jq(document).ready(function() {
ecd.jq(‘#events-calendar-10′)
.attr(‘title’, ‘
<ul class=\”EC-tt-widget-day-event\”>
<li class=\”EC-tt-widget-day-event-title\”>Testgin Testing
<dd class=\”EC-tt-widget-day-event-detail\”>Test</dd>
<dd class=\”EC-tt-widget-day-event-detail\”>Until: 02-17</dd>
<p><span class=\”EC-tt-widget-clickdate\”>Click date for more details</span>’)
.attr(‘style’, ‘color:red;’)
.mouseover(function() {
ecd.jq(this).css(‘cursor’, ‘pointer’);
})
.click(function() {
tb_show( “February Wednesday 10 2010″, “http://localhost/Cornerspring?EC_view=day&EC_month=02&EC_day=10&EC_year=2010&TB_iframe=true&width=220&height=250″, false);
})
.tooltip({
track: true,
delay: 0,
showURL: false,
opacity: 1,
fixPNG: true,
showBody: ” – “,
// extraClass: “pretty fancy”,
top: -15,
left: 10
});</p>
On line 255 of ec_js.class.php which looks like this
.attr(‘title’, ‘<?php echo addslashes($output);?>’)
If I remove <?php echo addslashes($output);?> *just to isolate the problem* the error goes away and firebug now errors on ..
syntax error
});</p>\n
I can’t seem to locate the <p> and </p> tags being added into the view source. Ive searched all the ec source code and there are no paragraph tags.. I’m kinda confused and hoping someone can shed some light on this. Thanks so much!
James






Thanks for this information, I saved this query.