IE conditional comments and Pika 3.06

From PikaDocs

We encountered an unexpected problem with the recent Pika 3.06 iteration, which implements code changes that unintentionally strip out IE conditional comments (http://msdn2.microsoft.com/en-us/library/ms537512(VS.85).aspx) from the Pika default.html template. Yipes! This is a serious problem for those organizations that rely on custom CSS for its Pika designs, and IE conditional comments are, of course, a widely adopted, all but standardized way to apply IE-only CSS code to control the design or display of web pages.

What's a CSS hack to do?

Well, with predictably helpful support from Matt at Pika Software, here's the solution:

Open the pl.php file located in the your Pika subdirectory at /app/lib/pl.php. Carefully comment out lines 2055 and 2056 by preceding them with double-forward slashes:

// $str = str_replace("<!--[", $tpl_prefix, $str);
// $str = str_replace("]-->", $tpl_suffix, $str);

Save the changes and upload the pl.php file to replace it. Now your IE conditional comments code will stay in place and work as intended.

Original post by Brian Lawlor, Legal Services of Northern California (http://lsnc.net/).