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



Wordpress title showing space?
no comment on page 1371

Wordpress fun?
one comment on page 1376

Live blogging plugin?
4 comments on page 1258

Wordpress 3 admin speed up?
4 comments on page 1321

Framework photoshop?
3 comments on page 296

Fun wp plugins?
one comment on page 1376

Habari vs wordpress?
12 comments on page 440

Wp tags vs categories?
12 comments on page 7

Wordpress rss seo?
one comment on page 1361

Photo albums html5?
6 comments on page 1305

Wordpress chat?
no comment on page 1308

Wordpress exif data?
12 comments on page 230

Css sidear tab?
2 comments on page 336

Wordpress theme html5 blueprint?
6 comments on page 1305

Wordpress shortcode in plugin?
no comment on page 236

Html 50 photo album?
6 comments on page 1305

Get the post attachement?
24 comments on page 1065

Wordpress plugin development 30?
one comment on page 1373

Wordpress plugin development 30?
one comment on page 1373

Disqus formatting?
7 comments on page 1175

Html5 photoalbum?
6 comments on page 1305

Html5 photoalbum?
6 comments on page 1305

Wordpress fun?
one comment on page 1376

Fun wordpress plugins?
one comment on page 1376

Url shortener ideas?
4 comments on page 1190

Url shortener ideas?
4 comments on page 1190

Html 5 photo gallery?
6 comments on page 1305

Multiple post navigation?
no comment on page 1147

Html5 photo galleries?
6 comments on page 1305

Adding images to a wordpress 3 post?
24 comments on page 1065

Html5 photo gallery code?
6 comments on page 1305

Wordpress multiple blog master?
one comment on page 1376

Wordpress 3 tableprefix?
one comment on page 1376

Wordpress 3 tableprefix?
2 comments on page 1374

Using wordpress as a framework?
2 comments on page 335

Single post image size?
24 comments on page 1065

Get featured image src wordpress?
24 comments on page 1065

Disqus wordpress mu?
7 comments on page 1175

Image gallery html 5?
6 comments on page 1305

Wordpress theimage?
24 comments on page 1065

Wpgetattachmentimagesrc size?
24 comments on page 1065
  every 1732s, 1s ago, in 0.02s.
 __
(__)
   `
 Andrew Rickmann

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

 __
(__)
   `
 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);
}
}
}


0s