NGG 2.0 and Image Search??
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
@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
$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?
@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.
Neglected to enter the spam code, so it didn’t post correctly with above link. 🙂
Here is the new link.
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? http://pastebin.com/yaZPMXpP
Also, the directions that come from http://alexrabe.de/2010/01/13/search-for-images/ 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: http://wordpress.org/support/topic/show-thumbnail-in-search-nextgen?replies=1
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.
<?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. 🙂
@onerock – Thanks for the follow-up responses!
- The topic ‘NGG 2.0 and Image Search??’ is closed to new replies.