• Resolved pallisvans

    (@pallisvans)


    Updated to 1.6.1 and the search doesn’t work any more. It just loads the page without any results.
    I have a pdb-search-custom.php template which I updated also using the
    default search template in 1.6.1 but no luck.

    My template uses only one field in the database for the search (saga_safngrips) so I’m using <input type=”hidden” name=”search_field” value=”saga_safngrips” /> in the template.

    Went back to the earlier version of the plugin and the search works again. Any thoughts?

    https://wordpress.org/plugins/participants-database/

Viewing 14 replies - 1 through 14 (of 14 total)
  • Thread Starter pallisvans

    (@pallisvans)

    By earlier version I mean 1.5.4.9.

    I’m having the same problem–for the most part. The search works on pages containing the Participants Database short code, but not on the popup window (made with Popup Maker), I need to use for the PD short code. It worked with 1.5.4.9, so I’ll try downgrading too as a temporary remedy. Thanks–Angelo

    Plugin Author xnau webdesign

    (@xnau)

    Hi pallisvans, can you provide a link so I can see what it’s doing?

    Plugin Author xnau webdesign

    (@xnau)

    angbonadon, this is really a separate thread, but I’m curious what you have in your popup. The remote search capability was improved in the latest update, so I’m sure we can get it working for you.

    I greatly appreciate your offer!

    Our site uses Participants Database to store data on all the schools in Illinois–including district info. The pop-up presents a PD search tool to help members find their district

    Here’s an example page–a membership sign-up form that has the pop-up district-finder near the very end of the form:

    http://english.sxu.edu/sites/wordpress/iate/membership-information-form/

    NOTE: If you don’t know your IATE district, click Find Your IATE District to open a search tool in a popup window.

    Thank you for any help you can offer–much thanks–Angelo Bonadonna

    As an example of how Participants Database still works at the site, but in a page of its own (not a popup):

    http://english.sxu.edu/sites/wordpress/iate/find-your-iate-district/

    If you search by school name, e.g., “lane,” results are delivered in this environment. Thanks again–Angelo

    Plugin Author xnau webdesign

    (@xnau)

    OK, it looks like you’re using a separate shortcode for the search control in that popup window. If you do that, you have to tell the search which “instance” to target with the results. In this case, the instance number of the list where the results should be shown is 4. (You can see this if you look at the HTML and see the instance number of the list in the wrapper div) So, in your search shortcode, set the “target_instance” value to 4:

    [pdb_search target_instance=4]

    Thread Starter pallisvans

    (@pallisvans)

    Here is the link xnau:
    http://xn--prentsgusetur-nmb.is/safngripir

    If you use the searchterm Linoterm it should only return the Linoterm Display in the list. But it just loads the whole list.

    Plugin Author xnau webdesign

    (@xnau)

    OK, well the answer is the same for you: you need to set the “target_instance” attribute of the search shortcode to target the instance number of the list. This is because it’s possible to have multiple instances on a page, so we need to tell the search control which one it applies to.

    If you look at the HTML, you’ll see the list wrapper has a class of “pdb-instance-2” so your search shortcode has to have a target_instance value of 2.

    Thread Starter pallisvans

    (@pallisvans)

    So I tried this shortcode:
    [pdb_search target_instance=2 template=custom]

    Now it loads nothing at all, no list – just empty. (using searchterm linoterm)

    http://xn--prentsgusetur-nmb.is/safngripir

    Dear XNAU–I tried the recommendation (and some variations on the “target_instance” number), but no luck.

    But hey–I’m glad that search still works on regular pages, and I’m solving my problem by avoiding the popup window search altogether.

    Plugin Author xnau webdesign

    (@xnau)

    OK, try it with AJAX off. The switch is in the plugin settings under the “Advanced” tab. I am seeing a bug with this, and I’m working on a fix, but until then you should get functionality with the AJAX off.

    Thread Starter pallisvans

    (@pallisvans)

    Yes, can confirm it’s working now with Ajax turned off.
    Thanks xnau.

    Thread Starter pallisvans

    (@pallisvans)

    Marking this as resolved

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Update 1.6.1 affects the search’ is closed to new replies.