alexleonard
Forum Replies Created
-
Forum: Plugins
In reply to: [Disqus Conditional Load] Doesn't Load on ScrollHey Joel,
Thanks for the reply. For the time being I’ll just keep the enqueued scripts in the head, but I guess if any of the inline scripts loaded by the plugin were enqueued instead of rendered in place, then they could also be moved to the footer by my footer_enqueue function.
Unless it’s something that’s happening as a result of the ‘on click’ loading, but perhaps that could append any scripts to be loaded just before the closing
</body>tag.The other thing I could do I guess is manually hardcode jQuery to be loaded via a CDN in the head and remove jQuery from enqueue and move all the other scripts to the footer. That way I’d only have one script being loaded in the header, and all others would be pushed to the footer.
Thanks!
AlexForum: Plugins
In reply to: [Disqus Conditional Load] Doesn't Load on ScrollHey,
Yeah, I tried that but there was still a jQuery call being rendered at the same place as the comments HTML.
As soon as I moved scripts to header it started working.
Note that this is an issue for me because I’m forcing jQuery to be loaded in the footer
I have my own script being placed in the footer with
wp_register_script('scripts', get_stylesheet_directory_uri() . '/assets/js/' . $scripts, ['jquery'], FALSE, TRUE); wp_enqueue_script('scripts');And then I’m forcing all other scripts to be loaded in the footer with the following:
function pa_footer_enqueue_scripts() { remove_action('wp_head', 'wp_print_scripts'); remove_action('wp_head', 'wp_print_head_scripts', 9); remove_action('wp_head', 'wp_enqueue_scripts', 1); } add_action('wp_enqueue_scripts', 'pa_footer_enqueue_scripts');But certainly for speed reasons it would be great to be able to fully shift jQuery loading to the footer.
When I have the above two running, I get
Uncaught ReferenceError: jQuery is not defined
Which is happening shortly after the rendering of #disqus_thread where an inline script fires:
jQuery(function () { jQuery("#js_comment_div").click(loadDisqus); });Forum: Plugins
In reply to: [Disqus Conditional Load] Doesn't Load on ScrollIs there any way to get this working with jQuery loading in the footer?
Could the Disqus related scripts being rendered by the plugin not be enqueued in the footer instead of being rendered where the comments are being rendered?
I’m still receiving this error.
Recently an error occurred while creating the CSS / JS minify cache: No sources to serve.
My site still works and as far as I can tell everything is still minified. I have this turned on with two sites and they both, randomly and at different times, notify me of this error and all I can do is ‘hide this message’.
I am using MaxCDN and CloudFlare, with CloudFlare’s RocketLoader disabled and I am letting W3TC handle the minification instead.
Forum: Plugins
In reply to: [BruteProtect] Fatal error when activating 0.9.9.9c0.9.10 worked a treat!
Thanks 🙂
Forum: Plugins
In reply to: [BruteProtect] Fatal error when activating 0.9.9.9cThanks. I’ll check it out first thing tomorrow and let you know how it goes. Thanks for the speedy response!
We’ll be upgrading to PHP5.4 soon enough!
Forum: Plugins
In reply to: [BruteProtect] Fatal error when activating 0.9.9.9cHey Sam,
I’ve just checked and I’m experiencing this issue with Version: 0.9.9.9d which I guess is the fixed version.
Looks like there’s still a problem. I assume it’s a usage of :: somewhere which is unsupported by PHP 5.2.4.
Front end of the site still loads, but it looks like wp-admin is fully locked out.
Cheers,
AlexForum: Plugins
In reply to: [BruteProtect] Fatal error when activating 0.9.9.9cYeah, I just got hit with that error after an auto-update.
The error is:
Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in /path/to/wp-content/plugins/bruteprotect/admin.php on line 320
I’m running
PHP 5.2.4-2ubuntu5.27 with Suhosin-Patch 0.9.6.2 (cli) (built: Mar 11 2013 14:13:32)Is the fix rolled out already? If it is then the update I ran is still producing an error.
Could you let me know when I can download the latest version to get this fixed?
Cheers,
AlexForum: Plugins
In reply to: [Hustle - Email Marketing, Lead Generation, Optins, Popups] Custom formsHey w1cky,
Shame to hear GF doesn’t work in it. I’ve only tested it out for one site and that was using a hardcoded mailchimp subscribe form.
Glad to see you found one that works ok with it though 🙂
Forum: Plugins
In reply to: [Hustle - Email Marketing, Lead Generation, Optins, Popups] Custom formsIt was last updated on May 1st of this year so I would imagine it is definitely still active.
Regarding your question – the easiest way to find out would be to install the plugin and use a gravity forms embed code in the editor window of the pop up.
You can test it out by only showing to logged in users so that, if it doesn’t work, normal visitors won’t see anything broken.
If you add those filters that I posted to your functions.php file the meta title and description are unique per language.
So you have example.com/en/your-post/ and example.com/fr/your-post/ and each one has unique meta titles/descriptions.
I got WordPress SEO to work with qTranslate by doing the following.
I used quicktags (eg [:en], [:fr] etc) directly in the WordPress SEO Title and Description input fields. And then I added the following to my functions.php file.
// Enable qTranslate for WordPress SEO function qtranslate_filter($text){ return __($text); } add_filter(‘wpseo_title’, ‘qtranslate_filter’, 10, 1); add_filter(‘wpseo_metadesc’, ‘qtranslate_filter’, 10, 1); add_filter(‘wpseo_metakey’, ‘qtranslate_filter’, 10, 1);Worked perfectly for me.
Found it here: http://www.webholism.com/blog/webholism/wordpress-qtranslate-and-yoast-seo/
And I didn’t need to do the extra steps he mentioned.
Forum: Plugins
In reply to: [qTranslate] [Plugin: qTranslate] translating gravity formsIt looks like someone wrote a plugin to get around this issue:
https://github.com/mweimerskirch/wordpress-qtranslate-support-for-gravityforms
Forum: Fixing WordPress
In reply to: Fatal error: Call to undefined method wpdb::delete()@organicrider Have you tried re-downloading the latest WordPress zip, deleting the wp-admin and wp-includes folders and re-uploading them via FTP?
This has worked for me a few times.
Forum: Fixing WordPress
In reply to: Fatal error: Call to undefined method wpdb::delete()Sorted!
I tried the 3.4.1 update this morning and it worked. Very odd but I’m not going to worry about it too much.
🙂