SimonMacFadyen
Forum Replies Created
-
Forum: Plugins
In reply to: [Contact Form 7] Internet Explorer 7 and 8 Watermark TextI used a conditional IE.js file to execute the below code:
$(function () { //Assign to those input elements that have 'placeholder' attribute $('input[placeholder]').each(function(){ var input = $(this); $(input).val(input.attr('placeholder')); $(input).focus(function(){ if (input.val() == input.attr('placeholder')) { input.val(''); } }); $(input).blur(function(){ if (input.val() == '' || input.val() == input.attr('placeholder')) { input.val(input.attr('placeholder')); } }); }); });
Make sure you include the code AFTER jQuery, so if you’re loading your scripts in your footer, place your conditional IE statement after wp_footer();
<?php wp_footer(); ?> <!--[if lt IE 9]> <script src="<?php bloginfo('template_url');?>/assets/js/IE.js"></script> <![endif]-->
It sounds like your problem lies with your hosting, or other plugins taking up serious amounts of memory.
Line 99 of Sync.php
if($hash_sync) $file_hash = @md5_file($file_path);
To
if($hash_sync) {
$file_hash = explode(” “, exec(“md5sum $file_path”));
$file_hash = $file_hash[0];
}Be mindful updating.
I fixed this.
Line 99 of Sync.php, the file is being read using md5_hash like so:
if($hash_sync) $file_hash = @md5_file($file_path);
It’s effectively opening the file to read it. To improve this, change this to:
if($hash_sync) {
$file_hash = explode(” “, exec(“md5sum $file_path”));
$file_hash = $file_hash[0];
}Hope the coder sees this and commits the changes to his sync.php.
Hello phillip,
Do you ever resolve this? Mind sharing your approach..
Thanks,
Simon