I really like the NextGen Polaroid plugin, but since NextGen was upgraded to use SWFObject V2, it doesn't work.
So... after a bit of research, I've managed to fix it... hopefully Alex can update his website with this...
You need to replace the nggShowPolaroid function in nggpolaroid.php with the following code:
function nggShowPolaroid($galleryID,$irWidth,$irHeight) {
global $wpdb;
$ngg_options = get_option('ngg_options');
$obj = 'so' . $galleryID;
if (empty($irWidth) ) $irWidth = $ngg_options['irWidth'];
if (empty($irHeight)) $irHeight = $ngg_options['irHeight'];
$replace = "\n".'<div class="polaroid" id="ngg_polaroid'.$galleryID.'">';
$replace .= 'The <a href="http://www.macromedia.com/go/getflashplayer">Flash Player</a> and <a href="http://www.mozilla.com/firefox/">a browser with Javascript support</a> are needed..
</div>';
$replace .= "\n\t".'<script type="text/javascript" defer="defer">';
if ($ngg_options['irXHTMLvalid']) $replace .= "\n\t".'<!--';
if ($ngg_options['irXHTMLvalid']) $replace .= "\n\t".'//<![CDATA[';
$replace .="\n\t\t".'var '. $obj .' = {';
$replace .="\n\t\t\t".'params : {';
$replace .="\n\t\t\t\t".'wmode : "opaque",';
$replace .="\n\t\t\t\t".'allowFullScreen : "true"},';
$replace .="\n\t\t\t".'flashvars : {';
$replace .="\n\t\t\t\t".'xmlURL : "'.NGGPOLAROID_URLPATH.'nggpolaroidXML.php?gid='.$galleryID.'"},';
$replace .="\n\t\t\t".'attr : {},';
$replace .="\n\t\t\t".'start : function() {';
$replace .="\n\t\t\t\t".'swfobject.embedSWF("'.NGGPOLAROID_URLPATH.'polaroid.swf","ngg_polaroid'.$galleryID.'", "'.$irWidth.'", "'.$irHeight.'", "7.0.0", false, this.flashvars, this.params, this.attr );';
$replace .="\n\t\t".'}';
$replace .="\n".'}';
$replace .="\n".$obj.'.start();';
if ($ngg_options['irXHTMLvalid']) $replace .= "\n\t".'//]]>';
if ($ngg_options['irXHTMLvalid']) $replace .= "\n\t".'-->';
$replace .= "\n\t".'</script>';
return $replace;
}
} else {
add_action('admin_notices', create_function('', 'echo \'<div id="message" class="error fade"><strong>' . __('Sorry, NextGEN Gallery Polaroid works only in Combination with NextGEN Gallery',"nggallery") . '</strong>
</div>\';'));
}// End Check
You can see it working at http://ignacioandneil.com/