Title: taruckus's Replies | WordPress.org

---

# taruckus

  [  ](https://wordpress.org/support/users/taruckus/)

 *   [Profile](https://wordpress.org/support/users/taruckus/)
 *   [Topics Started](https://wordpress.org/support/users/taruckus/topics/)
 *   [Replies Created](https://wordpress.org/support/users/taruckus/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/taruckus/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/taruckus/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/taruckus/engagements/)
 *   [Favorites](https://wordpress.org/support/users/taruckus/favorites/)

 Search replies:

## Forum Replies Created

Viewing 11 replies - 1 through 11 (of 11 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Instagram Widget] Speed optimization test](https://wordpress.org/support/topic/speed-optimization-test/)
 *  [taruckus](https://wordpress.org/support/users/taruckus/)
 * (@taruckus)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/speed-optimization-test/#post-11854527)
 * Yeah, the template part file is specific to this plugin. Lazy loading slider 
   images requires a little more work as well. You could try heading to that plugin’s
   support or stackoverflow for help. Good luck!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Instagram Widget] Speed optimization test](https://wordpress.org/support/topic/speed-optimization-test/)
 *  [taruckus](https://wordpress.org/support/users/taruckus/)
 * (@taruckus)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/speed-optimization-test/#post-11854443)
 * You’re welcome! it looks like it’s lazy loading to me.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Instagram Widget] Speed optimization test](https://wordpress.org/support/topic/speed-optimization-test/)
 *  [taruckus](https://wordpress.org/support/users/taruckus/)
 * (@taruckus)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/speed-optimization-test/#post-11854222)
 * No problem; I’d like to help you resolve this.
 * The file placement and white space you’re seeing is partially correct so far;
   the idea behind lazy loading is that the URL of the image is kept in a separate
   attribute of its element so it doesn’t load right away. Our problem is that Jetpack
   didn’t load the image when intended, so that’s what we need to get it to do.
 * I followed its specification here, but it looks like that wasn’t enough: [https://jetpack.com/support/lazy-images/](https://jetpack.com/support/lazy-images/)
 * I had a look at the code for Jetpack’s lazy loading (you don’t need to look at
   this): [https://github.com/Automattic/jetpack/blob/master/modules/lazy-images/js/lazy-images.js](https://github.com/Automattic/jetpack/blob/master/modules/lazy-images/js/lazy-images.js)
 * I think the images also need an additional class as well as the data-lazy-srcset
   attribute. Try replacing all of the code in the file you made with this. I tested
   this as well, so let me know if it works out.
 *     ```
       <?php
       // this is a 1x1px transparent gif in base64
       $gif = 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7';
   
       // this is mostly just the copied output from the plugin, but with Jetpack's data-lazy-srcset attribute for its lazy load spec
       echo '<li class="' . esc_attr( $liclass ) . '"><a href="' . esc_url( $item['link'] ) . '" target="' . esc_attr( $target ) . 'is-pending-load=1"  class="' . esc_attr( $aclass ) . '"><img src="'.$gif.'" data-lazy-src="' . esc_url( $item[$size] ) . '"  alt="' . esc_attr( $item['description'] ) . '" title="' . esc_attr( $item['description'] ) . '"  class="' . esc_attr( $imgclass ) . ' jetpack-lazy-image" srcset="'.$gif.'" data-lazy-srcset="'.esc_url( $item[$size] ).'" /></a></li>';
        ?>
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Instagram Widget] Speed optimization test](https://wordpress.org/support/topic/speed-optimization-test/)
 *  [taruckus](https://wordpress.org/support/users/taruckus/)
 * (@taruckus)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/speed-optimization-test/#post-11850996)
 * If you have your own lazy load solution in place like Jetpack, you can adjust
   this plugin’s  output. Per the docs:
 * > In version 1.4 and above you can also customize the image loop completely by
   > creating a **parts/wp-instagram-widget.php** file in your theme.
 * So, create the file **wp-instagram-widget.php** in (your theme folder)/parts/
 * Then add to it something like this:
 *     ```
       <?php
       // this is a 1x1px transparent gif in base64
       $gif = 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7';
   
       // this is mostly just the copied output from the plugin, but with Jetpack's data-lazy-src attribute for its lazy load spec
       echo '<li class="' . esc_attr( $liclass ) . '"><a href="' . esc_url( $item['link'] ) . '" target="' . esc_attr( $target ) . '"  class="' . esc_attr( $aclass ) . '"><img src="'.$gif.'" data-lazy-src="' . esc_url( $item[$size] ) . '"  alt="' . esc_attr( $item['description'] ) . '" title="' . esc_attr( $item['description'] ) . '"  class="' . esc_attr( $imgclass ) . '"/></a></li>';
        ?>
       ```
   
    -  This reply was modified 6 years, 11 months ago by [taruckus](https://wordpress.org/support/users/taruckus/).
      Reason: code output
    -  This reply was modified 6 years, 11 months ago by [taruckus](https://wordpress.org/support/users/taruckus/).
      Reason: typo
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Advanced Custom Fields (ACF®)] “Validation failed – Value must not exceed -4 characters” ?!!](https://wordpress.org/support/topic/validation-failed-value-must-not-exceed-4-characters/)
 *  [taruckus](https://wordpress.org/support/users/taruckus/)
 * (@taruckus)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/validation-failed-value-must-not-exceed-4-characters/#post-11309560)
 * I ran into this issue as well. I noticed the issue after upgrading to WP 5.1.1
   and ACF Pro 5.7.13, from 4.x and and ACF 5.6.x.
 * The field was a text field inside a repeater field, but my error was -20 characters
   rather than -4.
 * Luckily the issue was fixable. I ended up exporting the field group via ACF’s
   export tool, editing the JSON file, deleting the field group in the CMS, then
   importing the fixed JSON via ACF’s import tool.
 * I’m not sure what actually caused the maxlength value to be -20, but I changed
   it to “”.
 * Here’s an excerpt of the JSON with the issue present; see the maxlength value:
 *     ```
                                   {
                                       "key": "field_56bcbf54511cf",
                                       "label": "Name",
                                       "name": "name",
                                       "type": "text",
                                       "instructions": "",
                                       "required": 0,
                                       "conditional_logic": 0,
                                       "wrapper": {
                                           "width": 100,
                                           "class": "",
                                           "id": ""
                                       },
                                       "default_value": "",
                                       "placeholder": "",
                                       "prepend": "",
                                       "append": "",
                                       "maxlength": -20,
                                       "readonly": 0,
                                       "disabled": 0
                                   },
       ```
   
    -  This reply was modified 7 years, 4 months ago by [taruckus](https://wordpress.org/support/users/taruckus/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Redirection] Hacked through your plugin](https://wordpress.org/support/topic/hacked-through-your-plugin/)
 *  [taruckus](https://wordpress.org/support/users/taruckus/)
 * (@taruckus)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/hacked-through-your-plugin/page/2/#post-7299180)
 * XD
 * “This free thing got me hacked”
    How? “someone told me” Got any logs? “no” Why
   not? “My only aim was to help others” … what other plugins do you have running?“(
   all of them)”
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Redirection] CSV Export Failing](https://wordpress.org/support/topic/csv-export-failing/)
 *  [taruckus](https://wordpress.org/support/users/taruckus/)
 * (@taruckus)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/csv-export-failing/#post-7357701)
 * I encountered this issue as well. Try going to the Options page, then just select“
   update.” Something to do with the RSS token.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Smash Balloon Social Photo Feed – Easy Social Feeds Plugin] Call a single specific Instagram post by media ID](https://wordpress.org/support/topic/call-a-single-specific-instagram-post-by-media-id/)
 *  Thread Starter [taruckus](https://wordpress.org/support/users/taruckus/)
 * (@taruckus)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/call-a-single-specific-instagram-post-by-media-id/#post-6949360)
 * Thanks for the info, John. I don’t agree with the suggestion, as the native embed
   comes with the branded Instagram frame. It would be great if you guys would consider
   accommodating the media_id endpoint in the future.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WordPress REST API (Version 2)] When is this plugin going to be in core?](https://wordpress.org/support/topic/when-is-this-plugin-going-to-be-in-core/)
 *  [taruckus](https://wordpress.org/support/users/taruckus/)
 * (@taruckus)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/when-is-this-plugin-going-to-be-in-core/#post-6455712)
 * Now-ish i guess 🙂 [https://codex.wordpress.org/Version_4.4#For_Developers](https://codex.wordpress.org/Version_4.4#For_Developers)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Anti-Malware Security and Brute-Force Firewall] MW:SPAM:SEO spam problem](https://wordpress.org/support/topic/mwspamseo-spam-problem/)
 *  [taruckus](https://wordpress.org/support/users/taruckus/)
 * (@taruckus)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/mwspamseo-spam-problem/page/2/#post-5579063)
 * Old versions of rev slider is (pretty much) confirmed to have the vulnerability.
   Update to the latest. I don’ think this will clean your site, but it is supposed
   to be preventative. [http://codecanyon.net/item/slider-revolution-responsive-wordpress-plugin/2751380](http://codecanyon.net/item/slider-revolution-responsive-wordpress-plugin/2751380)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Anti-Malware Security and Brute-Force Firewall] MW:SPAM:SEO spam problem](https://wordpress.org/support/topic/mwspamseo-spam-problem/)
 *  [taruckus](https://wordpress.org/support/users/taruckus/)
 * (@taruckus)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/mwspamseo-spam-problem/#post-5578995)
 * Thanks for sharing, guys. I just found a call in a client site to `http://122.155.168.105/
   ads/inpage/pub/collect.js`
 * The site also has revslider, but AFAIK wasn’t hit by soaksoak.
 * The link to collect.js didn’t return a 404, but it does load slowly, hence noticeable.
   Can anyone confirm that it’s indeed malicious? 122.155.168.105 is in Thai (I 
   think that’s what I’m looking at).

Viewing 11 replies - 1 through 11 (of 11 total)