Blog

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

21 Comments to WordPress Widget: King Search

  1. Jonathan's Gravatar Jonathan
    11.02.2008 at 5:40

    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

  2. Jan's Gravatar Jan
    02.10.2007 at 8:22

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

  3. 26.09.2007 at 17:41

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

    Thanks

  4. Jan's Gravatar Jan
    25.06.2007 at 21:13

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

  5. 15.06.2007 at 15:15

    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.

  6. 05.06.2007 at 17:13

    Yes, please make it Wp 2.2 compatible.

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

  7. misc's Gravatar misc
    03.06.2007 at 22:58

    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?

  8. Jan's Gravatar Jan
    18.05.2007 at 1:50

    This no longer works with WordPress 2.2 :(

  9. 29.12.2006 at 23:02

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

  10. emre's Gravatar emre
    21.12.2006 at 23:10

    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.

  11. emre's Gravatar emre
    21.12.2006 at 22:48

    I mean, George, sorry :)

  12. emre's Gravatar emre
    21.12.2006 at 22:47

    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.

  13. andy's Gravatar andy
    18.12.2006 at 13:15

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

  14. Steve's Gravatar Steve
    14.12.2006 at 15:13

    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?

  15. Wizzud's Gravatar Wizzud
    27.11.2006 at 16:53

    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?

  16. 08.10.2006 at 15:20

    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.

  17. KatGirl's Gravatar KatGirl
    08.09.2006 at 11:21

    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

  18. 31.08.2006 at 13:11

    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

  19. 28.07.2006 at 16:21

    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!

  20. 12.06.2006 at 14:56

    King search is Excellent!

  1. By on 05.07.2009 at 15:44
  2. By on 02.06.2009 at 8:47
  3. By on 31.01.2009 at 22:25
  4. By on 31.01.2009 at 22:25
  5. By on 25.09.2007 at 16:33
  6. By on 08.08.2007 at 9:17
  7. By on 20.05.2007 at 9:53
  8. By on 15.04.2007 at 15:24
  9. By on 24.03.2007 at 12:29
  10. By on 17.08.2006 at 10:02
  11. By on 12.06.2006 at 17:33

Referenzen

Archive