Search Light

WordPress

WordPress “find as you type” Dropdown

Aktuelle Version: 1.4.1

Search Light erweitert die Standard-Suche von WordPress um ein Ajax-Dropdown, in dem bereits während der Eingabe Suchergebnisse angezeigt werden. Die Suchergebnisse werden nach Artikeln und Seiten sortiert.

Vielen Dank an Marco Kuiper, der uns mit seiner Code-Demo zur Entwicklung dieses Plugins inspiriert hat.

Folgende Einstellungen können über die Administrationsoberfläche angepasst werden:

  • Theme-Auswahl
  • Anzahl der angezeigten Suchergebnisse
  • Anzeige von Seitenbildern
  • Position des Dropdowns
  • Bezeichnung der Überschriften innerhalb der Ergebnissanzeige
  • Eingabe individueller ID-Bezeichnungen für das Suchformular

30 Kommentare zu „Search Light“

  1. Xzibitz sagt:

    Really like this plugin guys.

    I’ve modified a few things in it for myself. I have added a custom post type search (unfortunately, I’m not that good at coding, so I just did it for MY custom post types, I don’t know of a way to make it easy for anyone else by just using a settings page) and I have modified the ajax.js so that it doesn’t start until at least 3 characters have been put in and there is also a small delay to accommodate for people typing a little slower (and thus not crawl the whole database after every single character they put in).

    For anyone who wants this last change, open up the ajax.js file and go to line 94. Change the “1″ to the amount of characters you like as a minimum.
    Comment line 95 by putting two frontslashes before it “//”
    Remove the frontslashes from line 96, change the value to anything you like as delay (in miliseconds I believe, so the 220 that is there at the moment stands for 0.22sec)

    Anyway, that’s a little how-to, but I’d rather like to know if we’re going to have these features in a next release:
    - set minimum characters allowed
    - set a delay
    - display custom post type(s)

    • Xzibitz sagt:

      Oh, and there’s also a bit of hardcoded German in the ajax.js file at the top. These two things (Seiten and Artikel) will show up for a very brief but noticeable moment in the dropdown. Would be nice if these are deleted.

    • dkowalski sagt:

      Hi,

      thanks for your feedback, I just added your feature requests to my list.

      Greetings,

      Daniel

  2. Erik sagt:

    Hi,

    I have a problem with the plug-in on my site. When I installed it, all worked just fine. I think it was when I updated to WP 3.0 the problem occured. The drop-down from the searchbox is gone!

    Can someone take a look? http://www.locoloco.no

    Thanks! :) And, btw, great plug-in!

    • dkowalski sagt:

      Hi,

      I just had a quick look at your site, everything seems to be fine.
      As soon as I type into the search box, the dropdown appears.

      Maybe it’s a browser or cache-problem? Try clearing your cache
      and completely close the browser.

      Greetings,

      Daniel

    • mark sagt:

      Hi Antworten,

      I just installed the search plug in. I like it, but is an English version available or can I edit it myself?

      Thanks,
      Mark

      • dkowalski sagt:

        Hi,

        just go into Settings > Search Light of your WordPress installation.
        Under Translation you can change the text that shows up in the dropdown.

        Greetings,

        Daniel

  3. Kees van heijden sagt:

    Hello,

    Can this plugin be used in conjuction with WPML?

    So you will only be searching in the English text or only in the German for example.

    Thanks!

    Kees

    • dkowalski sagt:

      Hi,

      the current version is not able to do this.

      Since we haven’t used WPML for our projects,
      I first would have to research how the language
      separation is done within the database.

      The latest release of Search Light is able to hide certain
      posts from the result list, I would need to get back to our
      coder to see if we can somehow adapt this feature to
      dynamically hide all results from the currently not selected
      language…

      I will put it on my feature wish list.

      Greetings,

      Daniel

  4. Mary sagt:

    … I hope I can figure out how to use this it’s Beautiful!!!

    • dkowalski sagt:

      Glad you like it!

      please let me know if you need any further
      assistance on how to make it work in your site.

      In most cases, as I wrote in my last comment,
      you just need to activate the plugin to start using it.

      When it is not showing up after you start typing in the
      searchbox, there could be a problem with the ID of the
      searchform or the input-field. These need in some cases
      to be updated in the advanced settings of Search Light.

  5. Mary sagt:

    Guten Tag! I am in San Francisco! Sorry to be such a “Newbie” i love the idea of this plugin. Do I insert an HTML code to get it to show up in my HTML code editor? I want to insert the search in a particular page???

    • dkowalski sagt:

      Hi,

      there’s no need to manually add the plugin to you HTML code.
      After installing and activating the plugin, it should automatically show
      up wherever the default WordPress search is located in the theme you are
      using.

      Greetings from Germany!

      Daniel

  6. Bob James sagt:

    Hello. Please email me when this plugin gets upated for WordPress 3.0.

    I spent the afternoon trying to get it to work and then noticed it was only good up to version 2.9.2

    Someday I will learn to read release notes!

  7. Thank you very much for this great plug-in. It is exactly that what I was looking for: a separation of pages and posts in the results. The only thing I am missing is that the search phrase should be highlighted in the pages/post I choose of your drop-down menu. It this an easy task to do?

    Cheers to Heidelberg from Wächtersbach, gl

    PS: I would appreciate an answer to aufBlog@gmx.de

  8. Sascha sagt:

    Ich habe das problem mit einer Seite meines Bekannten auch. In dem mit Artisteer erstellten Theme funktioniert das Suchplugin nicht. Wie kann ich das anpassen damit es funktioniert? :)

  9. Darren sagt:

    Hi,

    This is a fantastic plugin, thank you!

    Is there a way to exclude pages from showing up in the list?

    Thanks, Darren.

    • dkowalski sagt:

      Hi,

      glad you like it!

      In the current release there’s no easy way to do this, but it’s already on my list of features we will add to a future version.

      There you’ll have a new option to exclude certain posts or pages in the result-panel.

  10. Pls check out LAB212.com and tell me why it’s not workin ?? it works on most of my other blogs. Thanks

    • dkowalski sagt:

      Hi,

      please try the following:
      In WordPress admin, go to “Settings” > “Search Light”.
      Under “Advanced” you will find the option to change the “Input-field ID”.
      As a default, it is set to “s”. Change this to “searchbox” and click “Save changes”.

  11. Chris sagt:

    Hi,

    ich habe das Suggestion Search Plugin Search Light bei unserem WP-Blog http://www.proteinratgeber.de installiert, jedoch funktioniert das Plug-In nicht, das Plugin ist aktiviert aber die Suche bleibt völlig unverändert und es erscheint auch keine Fehlermeldung.

    Woran könnte das liegen? Dankeschön :-)

    • dkowalski sagt:

      Hi,

      es könnte ev. am verwendeten Theme liegen. Am besten in einer Test-Installation der Site das Theme auf den WordPress Standard “WordPress Default 1.6 von Michael Heilemann” setzen und hier das Suchfeld testen.

      Wenn Search Light sauber funktioniert, liegt es am PHP-Code für das Formular im Greenway-3C Theme.

  12. Ted sagt:

    Hi there man… nice work!
    Could you help me with the fact that when i do a search it don´t show any picture?

    Thanks!

    • dkowalski sagt:

      Hi,

      since I don’t know if the WordPress theme you are using is already supporting Post-Thumbnail Images, it’s hard to analyze your problem. If you could give me an URL to your site, I will have a look.

  13. Anonymous sagt:

    un plugin ajax pour une recherche assistée via la barre de recherche déjà existante du site.

Kommentieren