• Resolved Profforg

    (@profforg)


    Hi.

    Is there any incompabilities with other plugins?

    It does not seems to work in my case. There are no one image with “srcset” attribute. Plugin settings is default. I’ve tried on different websites with different environments. But plugin set was similar, like w3 total cache. So should that work with caching/performance-related plugins?

    Sincerely,

    Alex.

    https://www.ads-software.com/plugins/responsify-wp/

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author stefanledin

    (@stefanledin)

    Hi Alex!
    No, not that I’m aware of. I’ve used it on sites with W3 total cache and I haven’t noticed any issues.
    Have you tried switching to the picture element instead of <img>? Just so we can verify that something actually happens.

    Thread Starter Profforg

    (@profforg)

    Just checked with picture mode – the result is same. No pictures affected. Something happens… wp-content/plugins/responsify-wp/src/picturefill.2.2.0.min.js is added to the load, but it looks like plugin do not see pictures (images). The same with span mode.

    Plugin Author stefanledin

    (@stefanledin)

    Very interesting I must say! Can you try generating an image with the Picture::create() function?

    <?php echo Picture::create( 'element', $some_attachment_id );?>

    Thread Starter Profforg

    (@profforg)

    This way it works fine (outputs image correctly), but it’s with Picture mode. When i switch to basic img src – for some reason it ignores the choice and still shows <picture> – strange. Even if i change attachment ID (so it’s not the cache).

    Plugin Author stefanledin

    (@stefanledin)

    So this works?
    <?php echo Picture::create( 'element', $attachment_id );?>
    But not this?
    <?php echo Picture::create( 'img', $attachment_id );?>
    Very, very strange. Are you using the latest version of the plugin and a fairly new version of WordPress? PHP 5.3 or higher?

    Thread Starter Profforg

    (@profforg)

    Oh, no, sorry – i was thinking plugin settings affect Picture:: code too. Understood now.
    Both lines you mention works correctly.

    Just it does not work automatically for all images.

    I am using latest WordPress version 4.1 and PHP 5.5.20-1~dotdeb.1 with Zend OPcache v7.0.4-dev opcode caching/optimizer. Can give you link to website and phpinfo with private message but i can’t find that feature here at forum ??

    Plugin Author stefanledin

    (@stefanledin)

    Okey, that’s a good sign that those functions worked! ??
    Just to be sure, the images that doesn’t work are being printed by the the_content() function, right?

    Thread Starter Profforg

    (@profforg)

    You mean that for plugin to affect images they should all be initiated by the_content() function? Why not to make it just work for all images?

    Plugin Author stefanledin

    (@stefanledin)

    Yeah the plugin can only affect images that are uploaded from the editor inside WP. The content must be printed with the regular WordPress loop.

    Thread Starter Profforg

    (@profforg)

    That’s a little bit crazy. I think it’s possible to catch all images. Well, thanks for support ?? It’s not useful without affecting all images.

    Plugin Author stefanledin

    (@stefanledin)

    Haha, is it really crazy? ?? But now you’re making me curious! It sounds that you’re not working with posts/pages/custom post types in the regular way, so how are you building sites?
    I want my plugin to be powerful and highly flexible/customisable, so I wonder how it could fit into your scenario ??

    Thread Starter Profforg

    (@profforg)

    This exact website have posts = youtube videos. Images are automatically generated picture of youtube video (one frame) and are showing as a thumbnails by plugins. So these images are not uploaded from the editor and is not optimized by your plugin. There are also some basic pictures from theme and custom pictures in header like logo, but as you, once again, rely on “Uploaded pictures”, these are also not being processed.

    You can fit any scenario by simply change plugin to search for all images (as an option?) with something unusual like parsing HTML or similar (because i doubt that all images can be catched using build-in functions).

    Plugin Author stefanledin

    (@stefanledin)

    I see, thanks for the explanation.
    Another reason that I realies on uploaded images for is that RWP uses the various sizes of the image that’s being generated. medium.jpg is being replaced by large.jpg when it fits the screen and so on…
    If it should affect all images on the site, RWP must also generate these different image sizes. How many sizes? Which sizes? It’s a lot of stuff that has to happen in that scenario and it might not fit the design of the site at all.
    Relying on image sizes that are specified by the actual user feels much more secure ??

    Anyway, it doesn’t seams like RWP is the right choice for you I’m afraid. But it is however interesting to hear different approaches on building WordPress sites ??

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Any incompabilities with plugins?’ is closed to new replies.