Forums

[Plugin: NextGEN Gallery] AJAX effect for lightbox (7 posts)

  1. nrajesh
    Member
    Posted 5 months ago #

    Hi,
    Request someone to post/ list out the modifications required to get javascript image effect (AJAX effect) in the version 1.3 of next-gen; I use lightbox effect.

    Thanks,
    Rajesh

  2. alexrabe
    Member
    Posted 5 months ago #

    Sorry, the solution is not so trivial as it should be :

    1. Copy the script js/ngg.js to your theme folder
    2. Add the script to your header
    3. Change the script at the follow lines :

    line 67,68 and 133,134

    // add shutter-listeners again
    shutterReloaded.init('sh');

    for Lightbox it should be instead (never tested)

    lightbox.updateImageList();

    Hope this works for your

  3. nrajesh
    Member
    Posted 5 months ago #

    Hi,
    I did the changes in those two lines and put the ngg.js in the js folder of my theme (I use K2).

    I added this line to the k2-hook-up (plugin) header portion:

    <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/ngg.js"></script>

    Didn't seem to work! Any suggestions?

    Thanks,
    Rajesh

  4. alexrabe
    Member
    Posted 4 months ago #

    I forgot that you need to define as well the path, ebfore you add the script itself :

    So please add before :

    <script type='text/javascript'>
    /* <![CDATA[ */
    var ngg_ajax = {
    	path: "http://your.blog.com/wp-content/plugins/nextgen-gallery/",
    	loading: "loading"
    };
    /* ]]> */
    </script>
  5. draver
    Member
    Posted 4 months ago #

    Thanks Alex. It's working with a little problem: the loading image near the cursor is still present even the new gallery page is loaded.

  6. mibsolutionsllc
    Member
    Posted 3 months ago #

    Is this required to just activate the lightbox effect?

  7. mkonthecoast
    Member
    Posted 3 months ago #

    Hi Alex,

    Thanks for posting this. I'm using nextgen with highslide. The code you posted works but there's one thing I would like to adjust.

    Going forward keeps me on the same page, but if I go back it will either reload the page or take me off the main index page to the specific post page. Do you know where I would look to correct this so it doesn't take the user away from the current page?

    Thanks for your help,
    Michael

Reply

You must log in to post.

About this Topic