888888.888888.88""Yb..dP"Yb..8888b..Yb..dP.88b.88....db....8b....d8.88..dP""b8..dP"Y8
88__...88__...88__dP.dP...Yb..8I..Yb.YbdP..88Yb88...dPYb...88b..d88.88.dP...`".`Ybo."
88""...88""...88"Yb..Yb...dP..8I..dY..8P...88.Y88..dP__Yb..88YbdP88.88.Yb......o.`Y8b
88.....888888.88..Yb..YbodP..8888Y"..dP....88..Y8.dP""""Yb.88.YY.88.88..YboodP.8bodP'


88b.88.888888.888888.Yb........dP.dP"Yb..88""Yb.88..dP
88Yb88.88__.....88....Yb..db..dP.dP...Yb.88__dP.88odP.
88.Y88.88"".....88.....YbdPYbdP..Yb...dP.88"Yb..88"Yb.
88..Y8.888888...88......YP..YP....YbodP..88..Yb.88..Yb

October 18, 2008

For a good few months now I have been developing a replacement to my Fun with Widgets plugin. The new plugin is called Fun with Widget structures (the beta version is on the site here). Unfortunately I have run into a problem which I can’t solve and I was hoping someone out there might be familiar enough with the widget system to help.

The plugin works like this. When you add a sidebar structure widget into another sidebar, the plugin registers a new sidebar into which you can add other widgets. This then displays them in a more structured way, such as in a tabbed interface or accordion structure.

This part of it works fine. Where it all falls down is that even when the widget is removed, the sidebars still get registered. Whenever I change the code to tell the plugin not to register the sidebars for widgets that are not active, the whole widget system gets strange and widgets start appearing in the wrong sidebars, if at all.

I have reached a bit of a dead end with trying to understand the widget system. Each time I thought I understood it and added appropriate code to compensate the same problem re-occured. I am now in the situation that, if I can’t find a solution to this I will need to abandon the plugin. This isn’t the end of the world, as there is a good alternative available from Kaspars, but I do think this plugin has some nice features that could prove useful.

If you think you may be able to help let me know, either in the comments, or e-mail me: andrew.rickmann@gmail.com. Thanks

Converting Wordpress Themes To Habari
Habari timthumb?
one comment
page 694
Fun With Sidebar Tabs Styling
Tabs with html css on same page javascript?
2 comments
page 336
Using Your Own Url Shortener
How to have own url short?
4 comments
page 1190
Post Image The Easy Peasy Way
Insert conditional image php wp?
26 comments
page 1065
Using Your Own Url Shortener
Run short url using htaccess?
4 comments
page 1190
How To Add Sidebars To A Theme
Wordpress sidebar above main sidebars?
11 comments
page 1053
Html 5 Gallery
Html5 simple wordpress theme?
6 comments
page 1305
Dont Mess With My Toot Toot
New posttype not displayed wordpress?
16 comments
page 599
Quick N Dirty Replacement Text
Wpupdatepost object?
no comment
page 122
Updating Code Snippets Here
Fun wordpress plugin?
one comment
page 1338
How To Add Sidebars To A Theme
Wp register sidebars?
11 comments
page 1053
Html 5 Gallery
Html5 wordpress theme?
6 comments
page 1305
Post Image The Easy Peasy Way
Get post images?
26 comments
page 1065
Updating Code Snippets Here
Wordpress fun plugins?
one comment
page 1338
Post Image The Easy Peasy Way
Wordpress get first image large?
26 comments
page 1065
Using Wordpress As A Php Framework
Wordpress create your own framework?
2 comments
page 335
Improve Your Typography With Plugins
Wordpress typography plugin?
one comment
page 721
Quick N Dirty Replacement Text
Dirty replacement?
no comment
page 122
How To Add Sidebars To A Theme
How to add pages in footer wordpress?
11 comments
page 1053
Post Image The Easy Peasy Way
How to post all gallery images in one post wordpress?
26 comments
page 1065
Post Image The Easy Peasy Way
Get attachment by post?
26 comments
page 1065
Html 5 Gallery
Html 5 tab?
6 comments
page 1305
Wordpress 25 Exif Fields
Exif info display wordpress?
12 comments
page 230
Using Your Own Url Shortener
Tiny urls htaccess?
4 comments
page 1190
Six Million Ways To Die Choose One
6 million ways to die so i chose?
14 comments
page 1128
How To Add Sidebars To A Theme
Wp register sidebars?
11 comments
page 1053
Fun With Sidebar Tabs Styling
Funwithsidebartabs customize css?
2 comments
page 336
Wpunlimited The Ultimate Wordpress Theme
Ultimate admin theme?
3 comments
page 1141
Quick N Dirty Admin Login Screen
Css login screen?
no comment
page 128
My Experience Of Flexx
Flexx theme review?
4 comments
page 1026
Html 5 Gallery
Html 5 e wordpress?
6 comments
page 1305
Dont Mess With My Toot Toot
Toot html5?
16 comments
page 599
Fun With Sidebar Tabs Styling
Css tabcontentcontainer?
2 comments
page 336
  1 query every 1292 seconds, updated 1 seconds ago.
Saturday, 8pm
 __
(__)
   `

 Andrew Rickmann

Wow, that's amazing Kaspars. You've done in now time what it has taken me weeks to give up on.

Saturday, 7pm
 __
(__)
   `

 Kaspars

Lets test this Disqus thing. Can I post code here?


foreach ($this_sidebar as $_widget_id) {
$widget_info = explode('-', $_widget_id);

if ('tabbedsidebar' == $widget_info[0] && is_numeric($widget_info[1])) {
if (!in_array($_widget_id, $_POST['widget-id'])) {
// Remove widget as it was delted
unset($this->adminOptions['widget_settings'][$widget_info[1]]);
// Remove also the sidebar which was a placeholder for tabbed widgets
unregister_sidebar($_widget_id);
}
}
}