• Resolved Anonymous User 14656615

    (@anonymized-14656615)


    Hello,
    thank you for an otherwise perfect plugin – it works well and my client (with no prior experience) can update and add galleries on their own without help.

    However, for some odd reason, the Ajax pagination setting does not work correctly. When logged in, it works as intended (clicking on the next/previous-links will load another page within the gallery). But when you log out, the same links just stop working. I tried it without Ajax, and it works, but that solution is ugly and out of date.

    Note that this only happens when embedding galleries with shortcodes on a page.
    If anyone has any tips or if the plugin author can fix this, that would be fantastic!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Anonymous User 14656615

    (@anonymized-14656615)

    I asked someone else in the forum who had encountered a similar problem and they had fixed it themselves.

    Here is the solution:
    1. Go to the plugin folder (wp-content/plugins/responsive-lightbox)
    2. In the Includes-folder, open file named class-galleries.php in a text editor
    3. Below the line add_action( 'wp_ajax_rl-get-gallery-page-content', array( $this, 'get_gallery_page' ) ); ADD the following line: add_action( 'wp_ajax_nopriv_rl-get-gallery-page-content', array( $this, 'get_gallery_page' ) );
    4. Save and exit

    That should be it, as it worked perfectly for me.

    Plugin Author dFactory

    (@dfactory)

    On uptade will be available in the next release of RLG

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Ajax Pagination not working when logged out’ is closed to new replies.