Forums

[resolved] [Plugin: Read More Right Here] What is the call function? (8 posts)

  1. Rafael Sirotheau
    Member
    Posted 1 year ago #

    Hello there! First of all, that's an excellent plugin clean and simple!

    My problem is... I'm using "Infinite Scroll" plugin, so, the newly requested posts don't have "rmrh" option... I imagine that, the rmrh plugin, at the end of page loading, call some function to replace the <!--more--> on posts to some "rmrh" function.... Am I right? so, if this is the case, how can I call this function again to replace the <!--more--> on the newly requested posts ?

    Thank you !

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

  2. Wooliet
    Member
    Posted 1 year ago #

    Hey rsirotheau, just letting you know I'm going to look into this sometime today and will get back with you.

    But right off the bat, the problem you are seeing is the same type of issue I've had reported with the interaction of other plugins and my own. Basically it amounts to the fact that the javascript functionality is not added until after the page's DOM is completely loaded.

    So with something like "Infinite Scroll", the new posts that are added to the page are not processed in the same manner as everything that was there when the page loaded.

    jQuery hides the internals and prevents re-executing all 'ready' functions. If you are comfortable with doing so, can I suggest you try including a jQuery plugin I just wrote (a few days ago) that allows the re-execution of jQuery's ready:

    http://bitbucket.org/wooliet/readyagain

    Please be careful though, and make sure to see how any other plugins you have installed are affected.

  3. Wooliet
    Member
    Posted 1 year ago #

    @rsirotheau:

    I was looking through the Infinite Scroll plugin and see that they have the ability for callbacks. Sorry, I see now why you were asking.

    I will try and get RMRH updated so that it will be possible for you to make use of Infinite Scroll's callbacks.

    Stay Tuned.

  4. Wooliet
    Member
    Posted 1 year ago #

    Okay, the plugin has been updated.

    After you've updated to the latest RMRH version (1.1.4), please go to the Infinite Scroll options page and add the following text to the 'Javascript to be called after the next posts are fetched' option :

    $.fn.ReadMoreRightHere(arguments[0]);

    Please check back in and let me know if this works for you!

  5. Rafael Sirotheau
    Member
    Posted 1 year ago #

    Hello Wooliet!

    That's exactly what I was looking for.... Worked perfectly!

    Thanks a lot!! =)

  6. calibretto22
    Member
    Posted 1 year ago #

    it worked for me too.
    thank you.

  7. Beppe Domani
    Member
    Posted 1 year ago #

    Hello Wooliet,

    There a way to use rmrh only in a determinate page or post and NOT in all blog?

    It's possible to use rmrh only in template pages?

    Many thanks

  8. Wooliet
    Member
    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Topic