infinustechnology
Forum Replies Created
-
OK, is there anything else in between the <img and the src=” tags? I found that the regex being used looked specifically for <img src=”blah.jpg”> and if you had something like <img data-whatever=”this” src=”blah.jpg”> it wouldn’t recognize it. I was playing around with the code (I uploaded my modified plugin in another of the support posts here) but never finished tweaking it to only get the src tags and ignore any other data attributes. I’ll see if I can revisit it when I have time 🙂
When you’re in the post editing the content, as long as the img tags have an extension that is recognized by the plugin, it will show up next to the “update” button as having a bunch of images available to import. It only does 20 at a time though, so depending on the number of images it may have to make a few passes. If you view the source you can look for <img src=””> tags, and just make sure that the extensions end in .jpg, .gif, .png (the usual extensions).
Forum: Plugins
In reply to: [Import External Images] Has anyone gotten this to work with Squarespace?When I went to import from a few squarespace sites, they had this at the end of the src tag:
?format=original
Which threw off the whole file extension testing in the function “is_external_file”. The plugin should (and does) import png files without issue – it was the rest of the src tag that was the problem. What else do you see in your src tags? Basically the entire <img src=””> not just the filename with extension.
Forum: Plugins
In reply to: [Import External Images] Has anyone gotten this to work with Squarespace?Interesting as it has the normal .png extension at the end – so it should work. Mine didn’t have normal extensions, hence why I had to rewrite it. Are they in a custom post type??
Forum: Plugins
In reply to: [Import External Images] Has anyone gotten this to work with Squarespace?Here you go zamolkses, I just modified it to work with GoDaddy as well, but kept all of the squarespace code in there. Try this out.
Forum: Plugins
In reply to: [Import External Images] Has anyone gotten this to work with Squarespace?I’d have to see what the file extensions are that you are using – they may be different than what I patched it for. Also looks like I missed a line that defines $ext2. Let me dig up the plugin and see what I can do.
Sure, I sent the information through your website, as a general inquiry.
You Bet. Interestingly, in Chrome I received no notification, but in Firefox I saw the popup for field required.
Adminer
Akismet
All In One SEO Pack
Application Form
Clicface Trombi (Customized)
CodeFlavors Vimeo Video Post Lite
Contact Form 7
Disable XML-RPC
Download Monitor
Easy Digital Downloads
Easy Table
Easy WP SMTP
Email Before Download
Gallery
Google Authenticator
Iframe Preserver
PHP Text Widget
Piklist
Post Type Switcher
Quick Page/Post Redirect Plugin
Quotes Collection
Shareaholic | share buttons, analytics, related content
SharePrints Gallery
Simple Image Sizes
Simple Lightbox
SiteProtect
Wordfence Security
WP User Avatar
WP-DBManagerForum: Plugins
In reply to: [WP eCommerce] Paypal Cart EmptyOh, if only it were that easy – I’ll try to do some more digging but all of the basic troubleshooting didn’t change anything. I ended up having to upgrade themes as well as switch plugins on one site… no luck with any others.
Forum: Plugins
In reply to: [WP eCommerce] Paypal Cart EmptyI resolved it by switching to WooCommerce – multiple sites started doing this and WPEC doesn’t respond fast enough in the forums here. Sorry!
There’s a tool to help migration though, which I used and it worked famously. Just had to re-setup the following:
-taxes
-shipping
-payment gatewayForum: Plugins
In reply to: [WP eCommerce] Paypal Cart EmptyInterestingly enough, Version 3.8.7.5 doesn’t have this issue – that’s the site I held back from updating due to that issue with Shipwire.
https://wordpress.org/support/topic/upgrade-to-43-and-problems-with-shipping-calculator?replies=19
Forum: Plugins
In reply to: [WP eCommerce] Paypal Cart EmptyJust a note that site #2 has just notified me of the same thing – it’s PayPal processing only, using the standard gateway. They have Moneris too and it appears to be working without issue, so I can at least confirm that it may not be update related. Perhaps an API change at PayPal has happened?
Forum: Plugins
In reply to: [WP eCommerce] Paypal Cart EmptyScratch this. I posted this after several hours of scratching my head, I still haven’t figured it out, even after going to the default theme and disabling every other plugin. I switched e-commerce plugins.
Forum: Plugins
In reply to: [Import External Images] Little help custom post typeHey Nick,
Look for these lines (there are three of them in the file import-external-images.php), and add the custom post type to the array, so as an example if the post type were testimonial:
$posts = get_posts( array( ‘numberposts’=>-1 ) );
$posts = get_posts( array( ‘numberposts’=>-1, ‘post_type’=>’testmonial’ ) );
Here’s some information about get_posts: https://codex.wordpress.org/Template_Tags/get_posts
Forum: Plugins
In reply to: [Import External Images] Has anyone gotten this to work with Squarespace?I did have a lot of tweaking to do to get it to work with squarespace – namely, looking for the differences in img extensions that they use. One of the big ones was adding this to the external_img_sideload function:
if (($file_array[‘name’]) == “” && $ext2 == “?format=original”) {
$file_array[‘name’] = “import.jpg”;
}
And adding this to external_img_get_img_tags ://check for squarespace images
if ( $uri != ” && preg_match( ‘/^http:\/\//’ , $uri ) ) {
//make sure it’s external
if ( $s != substr( $uri , 0 , strlen( $s ) ) && ( !isset( $mapped ) || $mapped != substr( $uri , 0 , strlen( $mapped ) ) ) ) {
$ext = substr( $uri , -16 );
if ($ext == “?format=original”)
$result[] = $uri;
}
}and finally changing is_external_file function like this:
if ( in_array( strtolower($ext) , $allowed ) || $ext2 == “?format=original”)
return true;I have a download for a modified version of this plugin that I tested on squarespace here: http://codingconcepts.net/importexternal.zip but I haven’t looked at it since I modified it… so no guarantees!