PStevenson
Forum Replies Created
-
Forum: Plugins
In reply to: [AMP Post Script] error 500Do you have a link I could see? This plugin also assumes that you are already using the “Amp” plugin, as this is extra specific customizations built on top of that initial plugin.
Forum: Plugins
In reply to: [Jetpack - WP Security, Backup, Speed, & Growth] logged out / JSON ErrorThat does seem to fix it by upgrading it. I will keep an eye on it and let you know if anything changes in future patches. Thanks for your follow up on this.
Forum: Plugins
In reply to: [Jetpack - WP Security, Backup, Speed, & Growth] logged out / JSON ErrorThat did not work either. All of those still force the files referenced in /wp-content/plugin/jetpack to the login page still. However, I did come up with this cleaner work-around, that with the correct url references now, should be able to copy/paste into any theme:
/* FORCE LOGIN ACROSS ENTIRE SITE ================================================== */ add_action('parse_query',function(){ $currentURL = 'http'.(empty($_SERVER['HTTPS'])?'':'s').'://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']; if( ( !defined(JETPACK__PLUGIN_DIR) || strpos($currentURL, plugin_dir_url(JETPACK__PLUGIN_DIR)) !== false ) &&!is_user_logged_in() && !in_array($_SERVER['PHP_SELF'],array( '/wp-login.php', '/wp-register.php', )) ): auth_redirect(); endif; });Since the files in the plugin directory are the ones causing the issue, I can just check if the current URL is in that plugin’s directory.
Forum: Plugins
In reply to: [Jetpack - WP Security, Backup, Speed, & Growth] logged out / JSON ErrorThat did not work. I modified my code, which is even more hacky now which I do not like, but at least it works. Basically it’s the calls to the plugin file that are breaking it, not sure if there is a better method to write this:
/* FORCE LOGIN ACROSS ENTIRE SITE ================================================== */ add_action('parse_query',function(){ $siteURL = 'http'.(empty($_SERVER['HTTPS'])?'':'s').'://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']; $siteURL = parse_url(str_replace(get_bloginfo('url'), '', $siteURL)); if( substr($siteURL['path'],0,27)!='/wp-content/plugins/jetpack' &&!is_user_logged_in() && !in_array($_SERVER['PHP_SELF'],array( '/wp-login.php', '/wp-register.php', )) && !is_page_template( 'page-templates/VT_signup.php' ) ): auth_redirect(); endif; });Forum: Plugins
In reply to: [Post Script Responsive Images] DebugVery welcome!
Shapeshifter 3,
Looks like you are right. I should look into it and see if it fully meets the need that I originally made my plugin to solve! Thanks for the heads up.
Forum: Plugins
In reply to: [Post Script Responsive Images] DebugI fixed the issue with the “undefined” items. Let me know if the others are still causing you problems. If so a link to the page, or a new copy/paste of the error would be appreciated, thank you.
Forum: Plugins
In reply to: [Post Script Responsive Images] Error on Line 116Marked as resolved due to no further response.
I think that would be great, which is why I made my plugin account for all images where I think it makes sense.
Sorry for my slow reply, I never received any notification.
To fix your issue, I eliminated “.gif”s from using the srcset property. I hope that this doesn’t revert any of your score speed lower, but it’s the quick solution to allowing gifs to be animated again.
Forum: Plugins
In reply to: [Post Script Responsive Images] Error on Line 116It sounds as if there is an issue with one of the lines in your content for the image. This plugin parses the content section of your post for all “<img/>” tags, so if the code is off on one, that could be trowing an error. It’s hard for me to tell without seeing your specific post.
Forum: Reviews
In reply to: [RICG Responsive Images] Works fine, if…Squazz: On the other hand, I updated my plugin to support the featured images as well. So it essentially solves what RICG does, plus more. Also, since sizes are less restricted, you can custom set the sizes you want to support if you modify the plugin, I believe I set it to 1200,960,768,480,320 as default.
Forum: Reviews
In reply to: [RICG Responsive Images] Works fine, if…I made a simple plugin that will work for all of your previous post images, and takes the images in the content area and adds the expected srcset information to it. Currently it only works with those, so you still can use the RICG plugin for all other items.