NextGen Search with Tags

Alex Rabe released a plugin to search through the Next Gen galleries for images. Unfortunately this does not include images tagged with the search terms. I’ve modfied his code to include these. The code was mostly taken from NGG’s own functions with some fancy cut ‘n paste action by myself.

You can find the original plugin page here.

To install download the plugin into your plugin directory and activate it then modify your search.php file with the following line:

<?php if ( function_exists( 'ngg_images_results' ) ) ngg_images_results(); ?>

You might have to disable Alex’s Plugin because of name collisions in the code. Also removed pagination for now since it wasnt working as intended in his plugin.

  NextGen Search with Tags (2.0 KiB, 14 hits)

Comments

6 Responses to “NextGen Search with Tags”
  1. Katn says:

    Thank you! This works really well I really appreciate you taking a look at this whole search tags issue.

  2. Tom says:

    Thanks for this! Does your version of the plugin override the pagination settings in the NextGen Dashboard Options? I’m getting link errors, the search result pagination is leading to non-gallery pages. Will your plugin show all results on one page?

  3. Patriek Jeuriens says:

    I completely disabled pagination if I remember correctly. It wasnt working as it should and I just got rid of it.

    You can easily add pagination if you want, there are several classes on the net that could be used without a glitch.

  4. Tom says:

    I think you are talking about the global setting for pagination in the Nextgen Options screen. Could you make further coding changes to your script so that the pagination for the search results does not have link errors? I would not be able to add the classes you mention, since I have limited knowledge in that area.
    Please contact me directly if you would like to discuss this.

  5. Patriek Jeuriens says:

    I tried fixing the pagination with the NGG function but i could not get it done without altering the Nextgen Core. Which in turn means you cant update NGG without breaking it.

    I can add a regular pagination if you need it. Ill try and work it out next weekend.

  6. Tom says:

    It may be acceptable if your solution alters the NexGen pagination function, as long as it is commented in such a way as to make updates possible but not guaranteed and does not alter the global pagination for galleries.

    I looked for a Contact form on your site to contact you directly, but did not find one. That’s why I am using the comment form.I would be most interested in compensating you for your time for implementing a pagination for the search results outside of the core NextGen function. Please let me know if that is of interest. I would like to expedite this if possible!

    Its also possible that an override that shows all the search results on one page may work.

    Thanks!