Blog

King Widget Framework

Worpdrpess Widgets king frameworkThe King Widget Framework contains a bunch of files and libraries on which all of the King Widgets depend.  Without those files none of the King Widgets will work! The Framework resides in the /plugins/king-includes/ – Folder.
I decided to  put often used functionality into those files, to make developing and maintaining widgets smoother.

Those of you that are already using my King widgets might askes themselves why to upgrade .. well i implemented a better AJAX foldable Admin Menu, made some css improvements and cleaned up the folder structure.

Check out this little screencast (sorry for the format was just a fast shot):

 new_ajax_menu_1.wmv (283.75 KB )

The Framework includes:

  • one Language file for all King Widgets (currently only german)
  • CSS Styles for widgets
  • JS used in Widgets
  • Images for Adminarea
  • php libraries for Forms and Admin Head includes

Since those are a a couple of files, it is kinda hard to give the framework an overall numbering scheme. Therefore I´ll keep track of the changes in a changelog.txt file and go by date. The php and css files aditionally have an internal version numbering.

For future changes I´ll always put up the whole framework (Folder king-includes) so you can simply replace your existing files with that. 
Yes i know i need a public SVN .. we are working on that and some more changes to make our wordpress plugins, themes and widgets easier available.

Changelog

Version 0.70 – 03.09.06

– new function to have a comma separated list in the "where ot show on sitearea "

– updated language file 

02.07.2006 

– Framework now has version numbering + remote version check with a  Plugininterface to accomplish that
– added a switch in the framework plugin options to enable javascript includes for the new sliding widgets feature
– minor bugfixes + language strings

Experimental!
added functions to have a widgets options dump for easy transfer of set options. The King Login Wdget is right now the first to test this functionality. Other widget will follow when it proves itself stable

Inside the folder there is also a changelog file


Install

Place the folder in the zip -> "king-includes" into WordPress Plugins folder -> wp-content/plugins/

Activate the Framework in Adminarea. The Activation is mainly to have a remote version check. With the time there will  more options added to it.

Known issues 

CSS Background Images in Widgets Admin are not shown.

If you have your WordPress installation inside a subfolder on your webspace e.g. ww.mySuperSite/wordpress/ you need to adopt the background image pathes in the CSS-Style Sheet. Those background images give your widget headers and the king widget menus a nicer look.

Look for those lines in king-includes/css/king_widget.css  

background:url(/wp-content/plugins/…gif)

append your install sub directory in front of the line:

background:url(/wordpress/wp-content/plugins/…gif)

 

Internet Explorer shows all Menu´s open

I tried 4 hours to get by a ie bug and have not found a decent solution yet. If you are still using IE,  well … that´s your problem, you will not be able to see those nice sliding menu´s. The bug shut the widgets admin menu´s  directly after you opened them.

Please get yourself a descent browser:

 

The good News … I implemented a css style hack so that you can still set all King Widget Options and therefore use all King Widgets. All Menu Options of the widget are initally expanded.
Hopefully one of our CSS Freakz can give me a hand with this, or maybe you find a solution!

You are already using some King Widgets

Replace the king-includes folder with the new one. Grab yourself the new Version of the King widget you are using.

Download


 

Version  0.70

king-includes_0.70.zip king-includes_0.70.zip (03.09.2006 14:49)

 

Version 0.68  from 03.07. July 2006 

 king-includes_0.68.zip king-includes_0.68.zip (03.07.2006 00:42)

PreviousVersion  from 22. June 2006

king-includes_22_06_2006.zip king-includes_22_06_2006.zip (22.06.2006 08:45)

Have Fun.. 

82 Comments to King Widget Framework

  1. Ole's Gravatar Ole
    30.06.2009 at 15:29

    you can find the last updated widget framework for wp 2.8 compatibility at #github
    http://github.com/schorsch/blog-king/

  2. joe's Gravatar joe
    13.02.2008 at 14:35

    no, it does not work with wp 2.3.x

  3. jan's Gravatar jan
    10.01.2008 at 13:46

    Does this work with wordpress 2.3.x ?

  4. IDIOTS's Gravatar IDIOTS
    24.12.2007 at 15:44

    LoL dude,

    why you don´t just give a tutorial about you plugins? is that to much demands? You Plugins working crappy and your support is more than less.

  5. Check's Gravatar Check
    13.11.2007 at 0:57

    Does this widget and framework pose/present any security risks when used with WordPress ? Since you allow lots of flexibility wouldn’t this be a security vulnerability ?

  6. Jens's Gravatar Jens
    04.11.2007 at 11:31

    o.k. … alles klar …
    Hätte vielleicht die letzten Comments vorher lesen sollen! Sorry! Also ab Version 2.2 ist schon Schicht! Schade, da Eure Plugins richtig gut klingen …
    Plant Ihr denn mit Updates für die neuesten WP-Versionen?
    Greetz Jens

  7. Jens's Gravatar Jens
    04.11.2007 at 11:19

    Hallo!
    Ich bin auf die KING-Widgets durch blogpimp.de aufmerksam geworden und habe versucht, einige der Widgets zu installieren inkl. Framework, so wie hier beschrieben …
    Leider funzt nix davon und wirft die unterschiedlichsten Fehlermeldungen aus …
    Ich habe jetzt gesehen, dass die Widgets alle auf älteren WP-Versionen sitzen, die das widgets-plugin installieren müssen bzw. mussten. Ich nutze zur Zeit die aktuelle WP 2.3 Version. Kann es sein, dass diese version von Euren widgets nicht unterstützt wird, oder dass man sie anders installieren muss?
    Die letzten Posts hier liegen ja schon einige Zeit zurück … Auf Hilfe bzw. kleine Anleitung würde ich mich freuen … Greetz Jens

  8. Jay's Gravatar Jay
    23.08.2007 at 20:35

    There needs to be a notice that king widgets is not compatible with the latest version of wordpress!

    That would save people like me from all that installation instruction reading, installing, fretting, uninstalling/fixing wordpress, & then searching for a solution.

    I could have avoided all that if it was clearly listed somewhere that it was not wordpress 2.2 compatible!

  9. sanso's Gravatar sanso
    18.07.2007 at 22:18

    @@Big Dog

    You’re right, partly: if there’s a problem it would be nice to state so by the author and hint at the solution. Sure people are giving stuff for free, but as this is also a commercial site, it gains a lot of links, hits and reputation from it.

  10. 26.06.2007 at 15:02

    Ace, don’t you think that you are being a bit ignorant to a person who wrote a plug in for you to use for free especially when there a number of comments indicating that the plug in does not work in 2.2?

    There is a fix for this to make it work (not 100%) in the WordPress forum. All you have to do is search for King Widgets or King Text and you should get what you need.

    It might have been more accurate if you had written:
    Wow, because I did not read first I installed something that messed up my site. I can’t access anything because I was too lazy, foolish, or ignorant to read before I tried this.

    I know the fix but you can search for it. As for the problem you have right now, try using ftp to delete all the King items from your site and then refresh it.

    And one last thing, it is only a blog. It is not worth getting upset over and going off the deep end. If this is the worst thing you have to deal with in life then you have it made.

    Big Dog

  11. Erik's Gravatar Erik
    22.06.2007 at 16:52

    Seems to break wordpress 2.2. I think an update is in order….

  12. Ace's Gravatar Ace
    20.06.2007 at 1:42

    Wow, all this did was fuck up my WordPress. AWESOME. I get errors out the ass, cant access my Admin Panel, AWESOMEEEEE. And hey, its a pain in the ass to get rid of because you cant just delete it! GREAT!

  13. Martijn's Gravatar Martijn
    13.06.2007 at 9:38

    Hey King I really like to use your plugins in the new wordpress version. Is there any news on progress or updates coming up?

    Danke Schön for any update

  14. Sonja's Gravatar Sonja
    22.05.2007 at 14:17

    hi, i’ve an problem. i copied the king-includes folder in my plugins folder. activated the king widgets in word press. copied the king-text.php in the widgets folder, activated it – BUT – when i go in wordpress in themes – sidebar widgets, i cannot drag and drop the items.
    Befor the king widgets installation everything worked fine.
    could anybody help me plz :)

  15. Jacky's Gravatar Jacky
    21.05.2007 at 3:22

    Hi, I am user of many King plugins and widgets. After upgrade to wordpress 2.2, widgets do not activate and cause errors like „Warning: array_keys() [function.array-keys]: The first argument should be an array in /site/wp-admin/admin-functions.php on line 1528″.
    Is there a fix? Thank You

  16. Mike Hansen's Gravatar Mike Hansen
    20.05.2007 at 18:46

    Evening.

    Yep I too got trouble with King Framework on WordPress 2.2. I can enable framework but if I enable a plugin, like the kingLinks, it crashes everything. Thank God for backups, heh. Hope the problem can be fixed. I love the framework!

  17. 17.05.2007 at 6:27

    Hi,
    I have been using widgets plugin and found your king-widget-framework can be useful to me. I installed the frame work and then activated the plugin. But when I go into my sidebar widgets section, I am not able to move anything. Could you shed some light. Thanks for the great work.

  18. 17.05.2007 at 1:12

    Guten Tag,
    Seems that the King Framework does not work with WP 2.2 I get an error of an undefined call (I think it is get_current_user).

    If I had known they changed WP that much I would not have upgraded. I like the King widgets too much to lose them.

    Danke,
    BD

  19. scott's Gravatar scott
    16.05.2007 at 17:00

    same issue as others noted above–installed widget and now my sidebar functions are frozen. I can assess the data in the ones that are currently live, but I cannot move them around, therefore cannot move king pages up to my left sidebar to try it out.

    also tried the above fixes but they don’t seem to work for me. should I try an earlier version? maybe this versions not ready from prime time.

    SL

  20. 16.05.2007 at 16:49

    FYI: Unable to activate Framework after upgrading to 2.2.
    Looking forward to an update

  21. 16.05.2007 at 15:16

    I guess we just have to wait for an update, 2.2 has just been released.

  22. 16.05.2007 at 5:41

    I have just recently upgraded to WordPress 2.2, and now I can’t get any of the Kings Plugins to work. Each time I activate any of plugin, WordPress comes up with an error saying No Sidebars Defined You are seeing this message because the theme you are currently using isn’t widget-aware, meaning that it has no sidebars that you are able to change. For information on making your theme widget-aware, please follow these instructions. Help.

  23. 16.05.2007 at 5:40

    Hi,
    I have just recently upgraded to WordPress 2.2, and now I can’t get any of the Kings Plugins to work. Each time I activate any of plugin, WordPress comes up with an error saying Fatal error: Call to undefined function wp_get_current_user() in E:\the-reflector.com\httpdocs\wp-includes\capabilities.php on line 446 or No Sidebars Defined You are seeing this message because the theme you are currently using isn’t widget-aware, meaning that it has no sidebars that you are able to change. For information on making your theme widget-aware, please follow these instructions.

    Help please…

  24. 16.05.2007 at 5:38

    Hi,
    I have just recently upgraded to WordPress 2.2, and now I can’t get any of the Kings Plugins to work. Each time I activate any of plugin, WordPress comes up with an error saying „Fatal error: Call to undefined function wp_get_current_user() in E:\the-reflector.com\httpdocs\wp-includes\capabilities.php on line 446″ or “
    No Sidebars Defined

    You are seeing this message because the theme you are currently using isn’t widget-aware, meaning that it has no sidebars that you are able to change. For information on making your theme widget-aware, please follow these instructions.“

    Help please…

  25. 14.05.2007 at 15:12

    Thanks Chris! That has worked fine!!! 😀

  26. 10.05.2007 at 14:27

    I’ll try that again…

    To people who have recently commented, just to double check, have you gone to the following lines..

    echo ''."\n";

    (around line 34)

    and

    echo "\n".''."\n";

    (around line 280)

    and changed prototype.lite.js to prototype-lite.js?

    (that is in the king_widget_functions.php file in the king-includes\library\ folder)

    I had this plugin framework and the RSS and Text plugins working fine, then after an upgrade and re-installation of plugins, I had the same frozen widget issue. Having made the above changes, it is now working fine.

    PS if that code doesn’t display properly, I’ll try again.

  27. 10.05.2007 at 14:26

    To people who have recently commented, just to double check, have you gone to the following lines..

    echo “.“\n“;
    (around line 34)

    and

    echo „\n“.“.“\n“;
    (around line 280)

    and changed prototype.lite.js to prototype-lite.js?

    (that is in the king_widget_functions.php file in the king-includes\library\ folder)

    I had this plugin framework and the RSS and Text plugins working fine, then after an upgrade and re-installation of plugins, I had the same frozen widget issue. Having made the above changes, it is now working fine.

    PS if that code doesn’t display properly, I’ll try again.

  28. 09.05.2007 at 15:42

    hope there’s a fix out for this soon! it looks great!

  29. 30.04.2007 at 3:04

    Hey.

    I have got the exact same situation and error message as #63. Will there be a fix soon?
    Really looking forward to using your widgets!

  30. John's Gravatar John
    27.04.2007 at 19:10

    I was having the same freeze problem with the standard widgets when activating the king framework. Thanks to the comments above (comments 56 & 60), the freeze problem was solved.

    However, activating ANY of king’s widgets (links, search…) gives errors of the type:
    ————————————–
    Warning: widget_king_search_register() [function.include]: Failed opening ‚widgets.php‘ for inclusion (include_path=‘.:/usr/lib/php:/usr/local/lib/php‘) in /home/ggg/public_html/blog/wp-content/plugins/king-search.php on line 351
    ————————————–

    So I guess there is definitely a bug to be fixed here.

    Note: I am using WP 2.1.3 and YES, the widgets plugin is already installed and activated.

  31. jen's Gravatar jen
    24.04.2007 at 5:07

    I also have the same problem with, after installation, undraggable widgets. ALL my remaining widgets are undraggable while only your files are enabled.

    I followed the directions from comment 60 and did not work. As long as they are enabled, nothing is draggable.

    help please!

    Danke!

  32. Dan's Gravatar Dan
    19.04.2007 at 19:00

    I have everything working, however when I attempt to edit the options for one of the King Links widgets, the options don’t stay open for long. They collapse in an instant and I cannot fill anything in.

    Any ideas?

  1. By on 05.07.2009 at 15:38
  2. By on 02.06.2009 at 8:25
  3. By on 11.03.2007 at 19:20
  4. By on 10.02.2007 at 9:45
  5. By on 23.01.2007 at 4:16
  6. By on 21.01.2007 at 16:57
  7. By on 18.12.2006 at 22:33
  8. By on 28.11.2006 at 0:10
  9. By on 06.11.2006 at 22:42
  10. By on 17.10.2006 at 19:21
  11. By on 26.08.2006 at 11:08
  12. By on 08.05.2006 at 13:00