PDA

View Full Version : Working in Firefox, Not Working in IE


GregClow
09-12-2008, 09:38 AM
OK, complete EPC newbie here - just bought and installed it yesterday - so maybe I'm missing something really obvious, but this is driving me nuts:

I'm trying to integrate EPC into a Wordpress Page, and display the data in List mode, showing ALL events from today onwards in a single list.

I followed all of the instructions from other threads in this forum regarding how to edit header.php, installed the RunPHP plug-in for Wordpress, created a special EPC template file, tweaked the display code, and I've got it working fine for Firefox (3.0.1), but it won't display properly in IE (7.0.5730.13C0).

I've tried different Wordpress themes, turning off and on various Wordpress plug-ins - still no dice.

Here is the code I'm embedding in the Wordpress Page:

<div>
Filter by event type: <?php
$thisFile="/test/events";
require("calendar/config.inc.php");
require("calendar/plugins/filter.php");
?>
</div>

<div>
<?php
$thisFile="/test/events";
$LIST=1;
$listDays = 999;
$template="full_list.php";
$DF = "D, M d, Y";
require ("calendar/calendar.php");
?>
</div>(By the way - the first statement, to insert the Filter drop-down, is working fine.)

I've attached the Template file as well - it's essentially a hacked version of monthly.php. I thought that maybe there was a problem with the template file, but I've tried switching back to the default monthly.php, and also tried other calendar display modes, and all of them are working fine in Firefox but not in IE.

You can see the results at http://www.tasteto.com/test/events/

Any thoughts?

ve9gra
09-12-2008, 10:40 AM
Your WP must be rewriting some of the output... Where it's quitting is right in the script section... and you can see why.

<script type="text/JavaScript">
<!--
function popupEvent(ev, w, h) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
win = window.open("/test/calendar/functions/popup.php?ev=" + ev + "&readFile=0&readSQL=1&showCat=&oc=1","Calendar","scrollbars=yes,status=no,location=no,toolbar=no,me nubar=no,directories=no,resizable=yes,width=" + w + ",height=" + h + ",top=" + wint + ",left=" + winl + "");
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
//–>
</script></p>You see where at the end you don't have a proper comment block..... it should be //--> and it converted the double-dash.

This is the first time I've seen this and really have no clue on how to tackle it. Maybe the WP guys could help you figure out what's doing the rewriting.

ve9gra
09-12-2008, 10:42 AM
Shoot... the code is getting converted... It ends up being & #8211 ;

GregClow
09-12-2008, 11:37 AM
Wow. That's very odd.

I also noticed that when I installed the RunPHP plug-in, it installed TWO different versions. I had activated version 2.3.1, so I tried switching to 2.2.2 to see if that would work. But it's still bunging up the code. :confused:

GregClow
09-12-2008, 12:52 PM
Got it fixed!

It appears that the Wordpress texturizer (http://codex.wordpress.org/User:Here/Texturize) (which I didn't know about until this morning...) was mucking up the code by doing a bunch of wacky conversions.

I tracked down a plugin called disable-wptexturize (http://www.jasonlitka.com/2007/09/25/wordpress-plugin-disable-wptexturize/), installed it, and it's now working fine in both Firefox and IE.

:clap: