This WordPress plugin NGG Smart Image Search provides a smart search and display functionality for images in NextGEN galleries on a WordPress front end website. It requires NextGEN Gallery to be installed and activated.
|—> WordPress.org Plugin Directory|
Further documentation and examples are given on the following pages qualified search examples, display search result list and new functionalities.
NGG Smart Image Search will provide a highly customizable search and display functionality for images in NextGEN Galleries. Search results can be displayed in various layouts including all original NextGEN galleries.
An image search will be carried out across title, description, filename and tags (as configured per widget or shortcode) of all images in arbitary selectable NextGEN search galleries. There are two search modes available. The basic search mode will look for images which satisfy at least one of the search terms (logical or). The extended search mode will look for images which satisfy all search terms (logical and).
The search result list can be displayed in various ways.
- you can use any of the native NextGEN Galleries to display the search result list.
- you can also use any of the NextGEN Pro / Plus Galleries with all their features including ecommerce.
- you can use any available NextGEN Gallery settings.
- you can use single image lists providing additional image meta data.
- you can use an advanced thumbnail list which is independant of NextGEN Gallery code.
- you can sort the search result list in various ways.
- you can use paging for long search result lists.
You can enter search strings via widgets or shortcodes. You can use complex predefined searches to display an almost arbitrary collection of NextGEN Gallery images. You can dynamically switch the search mode or the display mode between searches. Searches can be configured differently for public users or for logged in (private) users.
For an extended documentation see qualified search examples or display search result list.
The new version 3 of the plugin is a major update of version 2 with many new functionalities and some optimization and error corrections.
The new functionalities are described here: new functionalities.
- Upload ‚NGG Smart Image Search‘ to the ‚/wp-content/plugins/‘ directory
- Activate the plugin through the ‚Plugins‘ menu in WordPress
- Adjust settings, widget and shortcode as necessary
Frequently Asked Questions
How does the search work ?
There are three possibilities to perform a search for NextGEN Galleries images:
- Use a dynamic search field in a sidebar widget.
The plugin comes with a widget „NGG Smart Image Search“. If you use this widget, it will provide a search field in the sidebar. Entering text in the search field will send the input to an automatically generated search page. This search page is described on the settings page of the plugin. You can freely customize this search page.
The search page will use a shortcode to generate and display the result list.
- Use a dynamic search field provided by the shortcode [hr_SIS_nextgen_searchbox]
This shortcode searchbox can be placed on any post or page (also on the automatically generated search page). Entering text in this searchfield will send the input to the shortcode [hr_SIS_display_images], which normally is placed on the same page. Otherwise you have to address the result page by a shortcode parameter (‚target‘). The shortcode [hr_SIS_display_images] will generate and display the search result.
- Use a predefined static search input as parameters with the shortcode [hr_SIS_display_images]
In this case the shortcode [hr_SIS_display_images] will only display the static search result and will ignore all dynamic search inputs.
How can a search be customized ?
You can freely specify the scope of the image search by listing or excluding arbitary collections of galleries and/or albums.
You can also specify the listed meta fields per image in a single/linked search result list.
You can do this separately for public users and for logged in users.
If you do it by using search widgets, you define separate widgets for public users and for logged in users. Users will only see one widget which is relevant for them.
If you use a searchfield shortcode [hr_SIS_nextgen_searchbox] you specify your customization by parameters (see screenshots for a complete list of parameters).
By default parameters are initiated differently for public users and for logged in users (see screenshots).
You can overwrite these settings by specifying the parameters in the searchbox shortcode.
E.g. parameter list_descr=“1″ will list the image description in the result list for all users.
If you want to set this parameter only for public users, you use prefix „pu_“, i.e. pu_list_title=“1″.
If you want to set this parameter only for logged in users, you use the prefix „lo_“, i.e. lo_list_descr=“1″.
How can the result list be customized ?
The result list is generated by the shortcode [hr_SIS_display_images]. This shortcode accepts a display parameter to select the result list layout.
There are several options available:
- use any of the NextGEN Galleries
The easiest way to set up a NextGEN Gallery display is to define the display with an arbitrary NextGEN Gallery on a post or page. Then switch to text mode and replace the generated ’ngg‘ shortcode name by ‚hr_SIS_display_images‘. This shortcode is provided by the plugin NGG Smart Image Search. This shortcode will generate the search result list. It will then dynamically call the NextGEN Gallery shortcode and passing the needed parameters.
You can use a short form of display codes:
display=’bt‘ (for a Basic Thumbnail gallery)
display=’pt‘ (for a Pro Thumbnail Gallery)
display=’ma‘ (for a Pro Masonry Gallery)
display=’mo‘ (for a Pro Mosaic Gallery)
- display=“si“ or display=“ngg_single_images“
This will generate a detailed result list in table format showing found images and their describing fields.
The images are displayed using the native NextGEN Gallery shortcode for displaying single images.
Clicking on an image will open the image in the lightbox as defined on the NextGEN Gallery setting page. The lightbox will only display a single image, no skipping to next found image.
- display=“li“ or display=“linked_images“
This will generate the same result list as in option (1).
However, the found images are here displayed using explicite image links generated by this search plugin.
For this option you should configure NextGEN Gallery so that the standard NextGEN Gallery lightbox will also work for all other linked images.
Doing this you can again open each listed image in the standard NextGEN Gallery lightbox.
However, now you can skip all images in the lightbox, you do no longer have to click on each image first.
- display=“at“ or display=“advanced_thumbnails“
This will generate a proportional thumbnails grid for all found images.
Furthermore, the image title is listed for each thumbnail.
The result list consists of linked images. As for display type (2), you should configure NextGEN Gallery so that the standard NextGEN Gallery lightbox will also work for all other linked images.
In addition you can set further parameters to define the search result list layout. You can specify a sort order, a paging option, a limit parameter etc..
What search string can be entered ?
You can enter any sensible search text.
In basic search mode the plugin will first determine all search items in the search string which are seperated by blanks (whitespace). It will then look for images which have at least one of the search items enclosed in their selected meta data fields (corresponds to a logical OR condition).
In extended search mode the plugin interprets the search string differently. Now it takes the whole text, including entered spaces, as a single search item unless it finds predefined delimiters. These delimiters again seperate the search string into seperate search items.
For logged in users or for static searches there is a special search option available: g:<gallery id>.
This will list all images of the gallery with Id <gallery id>.
The result list will also provide the gallery name and gallery id with underlying links to the backend gallery administration page or to the gallery page, if such a page is defined for the NextGEN Gallery in the backend.
There are other special search options available like r:<number> for searching most recent images or l:<number> for last uploaded images.
You can also do multi-keyword searches like „sun & clouds & summer“ which will search for all images satisfying all three single search conditions (in the given example).
You can negate searchstrings by „&- searchstring“.
You can restrict searchstrings to dedicated fields like „&t sun &t clouds“ which will only search in tags.
A search string can have an escape character +/- at the beginning to switch between basic and extended search mode. It can have escape options at the end to switch dynamically between display options.
For an extended documentation see qualified search examples.
screenshot 1: widget display for search definition
screenshot 2: search result list
screenshot 3: settings page
screenshot 4: public default parameters
screenshot 5: private default parameters
ein ganz tolles Plugin, Respekt.
Eine Frage trotzdem, ist es möglich dies auch bei einer zweisprachigen Webseite einzusetzen? Obwohl ich zwei mal das Widget einsetze und jewils auf deutsch und englisch stelle und zwei Suchergebnis-Seiten, für jede Sprache eine benutze, wird immer die „deutsche“ Ergebnisseite als Resultat aufgeben.
Danke für Ihre Hilfe
I would like to hear your advice on the following: I have set a base of 4.000+ photos divided into 5 galleries, and it takes 15-20 second for a search. Do you think the search would be faster if I put all these images into one gallery or divide it into more galleries? What’s your opinion on that?
Thanks in advance,
How can I make a search on the gallery name and make the result show all the photos in that gallery?
I made italian translation of your plugin but it is in waiting status.
Hi there, I’m running into a pagination issue: I used my search plugin with a specific term, and got back 27 results. The page displayed 25, then had buttons for page 2 and a right-arrow down at the bottom. When I click either of those to go to the second page of results, I get an empty page with „No search string for images entered.“ Is there a way to make those buttons work? Or at least, to just show ALL the results on one page, instead of showing page buttons? In the widget, I have the „Limit number of… Weiterlesen »
I have installed „NGG Smart Image Search“ on a test website. The plugin is searching pickures in the gallery. But i would also like to offer full size download to the readers , but these images are stored on the server and are not in the gallery.
My price list shows 400px, 800px, 1200px and full resolution download. However, the full size download option does not appear in the search results. Can I fix this?
It appears that the search is finding deleted images, my search results include about 50 lines like this:
Warning: filesize(): stat failed for http://dreamsofthegoddess.com/art/wp-content/gallery/zebra-stripe-gallery-two/1386-MAK.jpg in /home/dreamsof/public_html/art/wp-content/plugins/ngg-smart-image-search/public/class-ngg-smart-image-search-public.php on line 1048
followed by the images that match my search.
Do I need to clear a cache or something?
I got this working easily in a test for a major new image source site, but have two questions:
1. I can’t figure out how to write the shortcode to display the results in a grid. Something wrong with my syntax
2. Can’t find out to that nice settings page where you can click on or off which data to show
Congratulations on your plugin – and thank you. It allows me to contemplate using NGG and WordPress to create a professional-looking image database.
I probably missed it in the documentation, but is there a way to paginate the search results?
Hi, This is a really great plugin! Thanks for your work on it! I am having a small issue with searching words that are plural or have an s on the end. For example, when I search my photos for the word scout I get 6 images, but when I search for the word scouts it says 0 images are there. Same with the word flower versus the word flowers. Do I have to add the s to the end of all these words in my tags? Right now I have the words flower and scout in the tags. Thanks… Weiterlesen »