Hi,
I have not tested the plugin in WP 3.3, just on 3.2.1, but I found a bug that may affect you.
The problem: some javascript is output out of context, so we can find it above the RSS feed or the theme HTML output breaking them -they don’t validate-, for example.
The solution: put the javascript in context. How?
- Look into the plugins folder and open there the comment-extra-fields.php
- Between the lines 58 and 64 you will find the next code:
if(!isset($_POST['action'])) :
?>
<script type="text/javascript">
var plugin_url = "<?php echo CEF_FULL_PLUGIN_PATH;?>";
</script>
<?php endif;
You should replace that with this:
if(!isset($_POST['action'])) :
wp_enqueue_script('comment-extra-fields-js-php-scripts', CEF_FULL_PLUGIN_PATH . 'js/scripts.php?cef_full_plugin_path='.urlencode(CEF_FULL_PLUGIN_PATH));
endif;
- Now, create a file in the “js” folder that is in the plugins one. This file should be named “scripts.php” and contain this code:
<?php
$cef_full_plugin_path = urldecode($_GET['cef_full_plugin_path']);
?>
var plugin_url = "<?php echo $cef_full_plugin_path;?>";
All done! It seems that everything is working fine now ??