Support » Plugin: Read More Right Here » [Plugin: Read More Right Here] Not compatible with JavaScript Ads

  • svenzn

    (@svenzn)


    The plugin is great! But I have two problems, most of my ads are Javascript, and when “Read More” is clicked, instead of expanding the post, it loads a new page with only the ad and nothing else.

    Second problem is also related to JavaScript. I use Shadowbox JS to display images and youtube-videos (it expands a box on top of the the other content on the site in which it displays the image/video). When a post has been expanded with “Read More Right Here” however, the functionality of it is disabled, and the image/video links open in a new page instead.

    So I guess my question really is, how do I make this plugin work along with javascript inside posts?

    This is the site btw, http://violentcinema.se

    http://wordpress.org/extend/plugins/read-more-right-here/

Viewing 1 replies (of 1 total)
  • Plugin Author wooliet

    (@wooliet)

    There really is no simple solution right now. The explanation is that most plugins wait until the web page is loaded (to ensure all required elements are there) and then perform some action on those elements.

    When RMRH pulls in new content, it’s too late. The other plugins don’t know its there and nothing will happen.

    What has to happen is that the javascript of the other plugins (or ads or whatever) needs to start monitoring for the creation of new elements that match the type on which they act. In other words, instead of

    Wait for the page to load, find all images, and do this to them

    the code needs to say

    Every time a new image element is created, do this to it

    jQuery has live and delegate to accomplish this.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Read More Right Here] Not compatible with JavaScript Ads’ is closed to new replies.