Home | Warum | WordPress Widgets & Plugins

10. Juni, 2006

Wordpress Widget: King Search

WordPress Widget King Search The Wordpress Search gets more important with every line you write in your blog. So i decided to build an advanced search widget.

I´ve added support for searching only in a specific Category, by choosing one from a dropdown menu.

I implemented a spellchecking on the search words, which will suggest the right word or term. When found you can klick it to search your site again.

Both Options can be disabled of course. This is not the end of all wit’s. I have more on my mind, but first want to wait for your feedback.
 

Features

Version 0.51 features: 

- up to 10 Search Widgets

- Option to Search only in Category choosen from Dropdown

- Option to use Spellchecking on Search words and terms

- 4 HTML fields to customize HTML before/after widget and title or leave empty and use defaults from functions.php

- Fully localizable with gettext Translation (German Translation included in framework)

- Set on which Website Area to show the Widget. Options are:

  • show on Home / Search / Archive or 404 page
  • show on all or special single Page. You can set the id or slug of the Page where to show
  • show on all or special single Article You can set the id or slug of the Article where to show
  • show on all or special Category Listing You can set the id of the Category where to show
  • Show if inside a special Category.  If in list List or on single Article
You find all Options explained in the Wordpress Codex in Conditional Tags  make sure to definitly read this if you are using those Options!
- based on the king widget framework  

Screenshot

not yet (only 3 Switches + the same options like the other King Widgets )

 Comming Features

 
- implement the use of livesearch (tried it but would not really work)
- more Options for the Suggest formating
- maybe implement  google-search (with adsense search)

- Whatever you might suggest… 

Install

Of course you should have wordpress widgets installed and activated. If not, you can find the download and install instructions over at automattic.com

- Copy king-search.php into your plugins widget folder -> where your widgets.php is !!!

- Copy the widget Framework in /king-includes into /plugins (need new version from 10.06.2006)

- activate in Pluginarea.

- Drag the King Search Widget on one of your sidebars and play with the options.

Download

 
Version 0.51
 
king-search_0.52.zip king-search_0.52.zip
 
don´t forget to download the king-widget framework
!! Needs new Version of Framework from 10.06.2006 !! (or newer)

 

Please don´t hesitate to give me a feedback if this is usefull or if you think you found a bug!

Have fun! 

Georg Leciejewski

Verwandte Artikel:

34 Kommentare zu “Wordpress Widget: King Search”

  • 1.

    King search is Excellent!

  • 2.

    [...] 插件页面: 点击进入 [...]

  • 3.

    [...] I never figured anyone would need to find anything important in my blog, but not everyone is this self-abasing. For the rest, there is the WordPress Widget King Search. The author has come up with his own Widget Framework that is required to make this widget work. [...]

  • 4.

    Great plugins! I want to aply some style to the category dropdown box so that it matches the look of the search box that I have styled. I have an id css tag ready. Can you point me in the right direction for where it needs to go in the plugin code? Thanks!

  • 5.

    Im using the wordpress build in “dropdown_cats” function.
    So you can´t go directly in the select over this widget.

    You can wrapp the call with a class or id in the code or use the before / after html fields and than make a cascading css call.

    search for “dropdown_cats” between line 64 and 150 in the plugincode.

  • 6.

    [...] 插件页面: 点击进入 [...]

  • 7.

    hallo, super widgets…
    ich habe gerade das search widget installiert und bekomme dieses error:
    Warning: Missing argument 8 for widget_king_where_to_show(), called in /home/www/swingcheese/balswing.de/wp-content/plugins/widgets/king-search.php on line 286 and defined in /home/www/swingcheese/balswing.de/wp-content/plugins/king-includes/library/king_widget_functions.php on line 52

    aber es funktioniert trotzdem,
    vielen dank,
    philippe

  • 8.

    Great Plugin. I’ve uploaded framework files to my plugins folder and King Search Widget to my widgets folder.

    I haven’t modified anything, and that includes my own Sidebar functions.php.

    I get this error when I place a King Search widget in one of my sidebars inside the Presentation >> Sidebar Widgets:
    `Warning: Missing argument 8 for widget_king_where_to_show() in /home/xxxx/public_html/wp-content/plugins/king-includes/library/king_widget_functions.php on line 52`

    can you please advise what I need to do to remove this warning from “Where To Show” slide box in side King Search Widget.

    Thanks

  • 9.

    I’ve got the same problem as KatGirl plus the widget doesn’t work. Due to old links in Google visitors frequently end up on my 404 page. There the search widget would come in nicely – if it worked.

  • 10.

    Georg, I have a modified version of King Search that fixes the missing argument bug by setting up and enabling the show_not_on_site_area parameters, using the same code as in King Categories. If you let me know where to send it I can zip it email it to you if you are interested?

  • 11.

    I get the same error message:

    `Warning: Missing argument 8 for widget_king_where_to_show() in /home/xxxx/public_html/wp-content/plugins/king-includes/library/king_widget_functions.php on line 52`

    And Kig-links does not show up. Even though its activated in the plugins sub menu. I have also installes the latest King framework. What am I doing wrong? Are there required changes to the stylesheet?

    Does anybody have a fix they can send me?

  • 12.

    can we have an option to search for posts of a specified word count (e.g. between 100 and 300 words)

  • 13.

    Martin,

    King Search fails XHTML validation because the LIs are missing “alt” attributes. You could draw these from the descriptions. A feature for the next version, perhaps?

    Emre.

  • 14.

    I mean, George, sorry :)

  • 15.

    I see now! The option is called “Show Category Feed Text”. Unfortunately, this is a fixed description; not something specific to the link, like the description as I mentioned above, so my request still stands.

    Sorry to stuff your comments, and thanks for your attention.

  • 16.

    Has anyone figured out how to solve the “Missing argument 8″ warning for this widget??

  • 17.

    [...] con Google” funcionaban bien. Probé a instalar algún plugin adicional, como el King Search Widget, pero los resultados no [...]

  • 18.

    [...] commentaires récents pour en mettre un mieux (qui les affiche par posts). J’ai changé le plugin de recherche aussi, même si je suis déçue que celui là ne reprenne pas les petits images de la loupe propre [...]

  • 19.

    [...] King Search Widget King Search Widget Version: 0.52 License: GPL Description: The Wordpress Search gets more important with every line you write in your blog. So i decided to build an advanced search widget. I have added support for searching only in a specific Category, by choosing one from a dropdown menu. I implemented a spellchecking on the search words, which will suggest the right word or term. When found you can klick it to search your site again. Features – up to 10 Search Widgets – Option to Search only in Category choosen from Dropdown – Option to use Spellchecking on Search words and terms – 4 HTML fields to customize HTML before/after widget and title or leave empty and use defaults from functions.php – Fully localizable with gettext Translation (German Translation included in framework) – Set on which Website Area to show the Widget. Author: georg leciejewski Plugin Page [...]

  • 20.

    This no longer works with Wordpress 2.2 :(

  • 21.

    [...] Visit [...]

  • 22.

    Yes it does’t work in Wordpress 2.2. I would like to test this plugin. Is there a way to make work in v2.2?
    Or do you plan to rewrite it for 2.2 and if yes when?

  • 23.

    Yes, please make it Wp 2.2 compatible.

    I am dying to use King widgets again on my blog :-(

  • 24.

    I’m having a similar problem with WP 2.2. There is a call to a function that gives a fatal error when attempting to activate the widget.

    Call to undefined function get_admin_page_title() in /home/aepdesi/public_html/areachicago/wp-admin/admin-header.php on line 12

    Please let those of us using WP 2.2 what would help. I’m looking into it myself and if I can fix it to work with WP 2.2 I will load the fix.

  • 25.

    Will there be an update for wp 2.2 or wp 2.2.1?

  • 26.

    [...] King Search Widget Advanced Search Box Widget including Category Dropdown and Search Word Spellcheck Suggestion By Georg Leciejewski. [...]

  • 27.

    [...] King Search The Wordpress Search gets more important with every line you write in your blog. King Search is an advanced search widget. [...]

  • 28.

    Please let us know how to make this work with Wordpress 2.2

    Thanks

  • 29.

    Is this ever going to be upgraded to work with 2.1 or higher?

  • 30.

    Hello. The widget sounds like a great idea but it isn’t working with my version of wordpress. I have 2.3.3. Any Ideas? Thanks

  • 31.

    [...] King Search – advanced search [...]

  • 32.

    [...] King Search – advanced search [...]

  • 33.

    [...] King Search – advanced search [...]

  • 34.

    [...] King Search – advanced search [...]