Support » Plugins » [Plugin: z-LightView] Not Parsing IMG tags correctly

  • Something is amiss for IMG tags that have a trailing /”> in the tag. I am getting validation errors on my blog page for IMG tags where class=”lightview” is being added to IMG tags (not even sure why they are being added, since they are on code copies from my flickr embeds:

    <a href=""
    title="2009/365/239 When He Was Young"><img src=""  alt="2009/365/239 When He Was Young" / class="lightview"></a>

    I cant figure out why this class is being added as this is just HTML pasted into my post, notthing done via the WP image tools.

Viewing 2 replies - 1 through 2 (of 2 total)
  • I just re-read my plugin description and realized it is poorly worded. The implication of the description is that it only affects the WordPress gallery. In fact, the plugin will handle single image links as well.

    The next thing is that the code snippet you posted above demonstrates that the regular expression used to parse the link and image tags needs needs some tweaking. I’ll look into it for the next release.

    As of release 1.3.0 I’ve updated the code that parses the content in search of images to use for Lightview. Let me know if functions better for you now.

    I also added options to optionally restrict use of Lightview to local images (on your own blog) and/or to only use Lightview for the WordPress gallery. These combinations should suit your set up from what you’re telling me.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: z-LightView] Not Parsing IMG tags correctly’ is closed to new replies.