Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author wpo-HR

    (@wpo-hr)

    You will see the configuration box if you set up a search widget.

    Pagination will work if you define the parameter images_per_page for the display shortcode. If you experience problems, please provide a link to your search page and the setup of your shortcodes.

    Bets regards
    Harald

    Thread Starter felixdartmouth

    (@felixdartmouth)

    Thank you for your wonderful support.

    I have a widget in the content sidebar that displays 120 images.

    But I wish to have a separate search page with more complex search and pagination.

    I don’t understand the exact format of the parameters – for instance,

    [hr_SIS_display_images display=”si” images_per_page=”180″]

    gives an error. – An example search might be “dress. Please note that some of the results may be adult oriented.

    The results show 30 – this is different than the Widget number of results

    The page I am developing is:

    https://archw.com/blog/search-archives-bbs-images-by-keyword/

    Please note that the HTML currently on the page is simply:

    “[hr_SIS_nextgen_searchbox]

    The specified search string will be searched in the fields Title, Description and Tags of the respective images. The search is not case sensitive.

    [hr_SIS_display_images display=”si”]

    Thanks for your help

    Thread Starter felixdartmouth

    (@felixdartmouth)

    Sorry, I wanted images per page to be 30 but a search to return, say 120 results.

    [hr_SIS_display_images display=”si” images_per_page=”30″]

    Plugin Author wpo-HR

    (@wpo-hr)

    The search widget and the search shortcode use a parameter ‘limit’ to limit the scope of search (i.e. the size of the result list). By default this parameter is set to 30 (for public users) or to 80 (for logged in users).

    If you use the parameter images_per_page it only makes sense if this parameter is set to a value smaller than the limit parameter.

    If you see the text (Number of displayed images limited by settings.) this means that the number of search results was limited by the limit parameter and that there would be more results if the limit parameter is increased.

    [hr_SIS_nextgen_searchbox limit=120] will do the job.

    Thread Starter felixdartmouth

    (@felixdartmouth)

    Great progress! Changing the limit on searchbox works perfectly. I didn’t understand which parameter goes with which shortcode statement.

    If I use the following:

    [hr_SIS_nextgen_searchbox limit=120]
    [hr_SIS_display_images display=”si” images_per_page=20]

    I get this result. I suspect I have a syntax error.

    “ArgumentCountError thrown

    Too few arguments to function wpdb::prepare(), 1 passed in /home/archw188/public_html/blog/wp-content/plugins/ngg-smart-image-search/public/class-ngg-smart-image-search-public.php on line 1328 and exactly 2 expected”

    Plugin Author wpo-HR

    (@wpo-hr)

    Normally the code you provided should work (at least it works fine in my environment). I suppose that you use some strict settings in your php environment which enforce explicit specification of an empty array parameter.
    I included this empty array parameter for you to test it.
    You can download this test version 3.1.1 from my website and manually install it.

    Note: this will install the test plugin in a seperate directory parallel to your productive version. You must first deactivate the current version before activating the test version. You can switch back to the productive version in the same way (first deactivate the other version, than active).

    Thread Starter felixdartmouth

    (@felixdartmouth)

    Great! I’m anxious to try –

    but when I click the link, I get

    “No file path defined.”

    BTW – other databases on my server are “PHP version: 5.6.30”

    Plugin Author wpo-HR

    (@wpo-hr)

    Sorry, the file got corrupted during upload somehow.
    The link to the test version should now work.

    Thread Starter felixdartmouth

    (@felixdartmouth)

    OK! I got the file, installed, deactivated the old plugin, etc.

    I replaced the widget, and set the default images to 60, and it works well. I’m not trying to get pagination working on the widget, yet.

    I have an offline page:

    https://archw.com/blog/search-archives-bbs-images-by-keyword

    that has the following:

    [hr_SIS_nextgen_searchbox limit=120]
    [hr_SIS_display_images display=”si” images_per_page=20]

    as noted above.

    And it IS PAGINATING:

    If you try the search there with a term like “Vika” or “blouse” – you’ll get 88 and 120 results back and there is apparent pagination, but the images, links don’t work, etc.

    Results follow:
    START
    Warning: Use of undefined constant Modernizr – assumed ‘Modernizr’ (this will throw an Error in a future version of PHP) in /home/archw188/public_html/blog/wp-content/plugins/ngg-smart-image-search-3-1-1/public/class-ngg-smart-image-search-public.php on line 1144

    Warning: Use of undefined constant canvas – assumed ‘canvas’ (this will throw an Error in a future version of PHP) in /home/archw188/public_html/blog/wp-content/plugins/ngg-smart-image-search-3-1-1/public/class-ngg-smart-image-search-public.php on line 1144

    Images will be searched in all galleries of this website.

    The specified searchstring will be searched in the fields Title, Description, Filename and Tags of the respective images. The search is not case sensitive.

    Images will be searched in all public galleries of this website.

    The specified search string will be searched in the fields Title, Description and Tags of the respective images. The search is not case sensitive.
    88 images found for searchstring vika . Show paged result list with 20 images per page.

    Warning: No correct display parameter supplied (”si”).
    END

    Progress!

    Plugin Author wpo-HR

    (@wpo-hr)

    Paging is now working on your site correctly.
    However, you have to specify your display parameter si correctly.
    Just write
    display=si
    If you want to use delimiters, you must use delimiter ‘ or delimiter “, i.e.
    display=’si’ or dispaly=”si”.
    You must not use ”, because this is not accepted as a delimiter by php and will be interpreted as part of the display parameter.

    To switch of warnings should be possible by php settings.
    To eliminate the warning regarding use of Modernzr will take some days (currently quite busy).

    Thread Starter felixdartmouth

    (@felixdartmouth)

    Splendid! Thank you for your excellent support. My images are laden with keywords in a structured manner, and I have been looking for a way for users to be able to utilize that.

    I’m going to bring the page public and let it work for a while.

    Thank you!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Cannot find certain configuration features –’ is closed to new replies.