Support » Plugin: WordPress Gallery Plugin - NextGEN Gallery » NGG 2.0 and Image Search??

Viewing 15 replies - 16 through 30 (of 35 total)
  • It looks like that the following code-line currently does not work for all users: (only works for a update if galImages was previously set)

    $maxElement = $ngg_options[‘galImages’];

    for example you can simply hard-code:

    $maxElement = 10; // 10 is the number of thumbs per page

    Plugin Author photocrati


    @thebluebus: for the record, we do plan to incorporate this kind of feature into the free version. We obviously have some other issues to sort out before we can get back to work on that kind of feature request.

    w.bear: huge thanks for jumping in with a short term fix.

    FYI…the latest update to NextGEN Gallery to 2.0.23 didn’t play nicely with the above fix to NextGEN Search. Here’s there error:

    Fatal error: Call to a member function id() on a non-object in

    Going to try and revert back to 2.0.21. Photocrati, any word on when search will be baked into the solution? Thanks!

    To make it work again – you can comment this out: (quick&dirty)

    // get the effect code
    if ($galleryID)
    $thumbcode = ($ngg_options[‘galImgBrowser’]) ? ” : $picture->get_thumbcode(‘set_’ . $galleryID);
    $thumbcode = ($ngg_options[‘galImgBrowser’]) ? ” : $picture->get_thumbcode(get_the_title());

    I have WP 3.9.1 and NGG 2.0.61. I didn’t find the function nggCreateGallery in nextgen-gallery/products/photocrati_nextgen/modules/ngglegacy/nggfunctions.php . Could you please tell me how to modify the NGG search code to work again?

    Plugin Author photocrati


    @dassoubarna – This is a very old topic and more related to the NextGEN Search plugin which is by another author. It may be much easier for you to address your concerns with that plugin author.


    – Cais.


    Here is what is currently working for me. I have WP 3.9 and NGG 2.0.61.
    I reworked it a bit as version 2 plugin and created a file called in the plugins directory nggSearch2/nggSearch2.php with the following code.

    Hope this helps

    This file is deleted.
    Can you please post it again? 🙂

    Here you go. Please refer to here for code snippet for integration into search.php

    Neglected to enter the spam code, so it didn’t post correctly with above link. 🙂

    Here is the new link.

    Thanks 🙂
    I’ve tried it, but no hits when I search.
    I just hope that the next version of NGG will have its own searchengine…..

    I am new to all of this and am looking for the same search results as you all are. Where do we put that file that you sent the link to?

    Also, the directions that come from are very confusing to me. Can this be put into very simple steps? Sorry I am still learning!

    Here is the link to my original question that never got a response:


    Create a blank PHP file on your local machine called something like “nggSearch2.php” and paste this code into the file.

    Using FTP and assuming that you are using the default WordPress plugins directory, create a directory called something like “nggSearch2” in the “/wp-content/plugins/” directory. Place the file, created previously, into the new directory.

    Place this <?php if ( function_exists( 'ngg_images_results' ) ) ngg_images_results(); ?> in your themes “Search.php” file. It is WordPress best practice to make modifications to theme file by creating a child theme.

    Log into the WordPress admin panel and activate the newly created plugin called “NextGen 2.0 Search engine”

    Hopefully, I haven’t missed anything. 🙂

    Plugin Author photocrati


    @onerock – Thanks for the follow-up responses!

    – Cais.

    Thank you! @onerock I appreciate all this information! I am going to work on this tonight and hopefully it all works out. Thanks for breaking it down in easy steps for me 🙂

Viewing 15 replies - 16 through 30 (of 35 total)
  • The topic ‘NGG 2.0 and Image Search??’ is closed to new replies.