Dynamic Widgets
Browsing all articles in Dynamic Widgets

Bug in version 1.1

A bug has been reported and confirmed in version 1.1:
When using role options, other options may display unexpected default values in the widget options edit admin page.

A fix is on it’s way and will be released asap, but no later than Sunday February 7, 2010.

If you can not wait, you may try the following. Please note, you have to change some PHP code in two files. If you’re not familiar with PHP, I do not recommend this. Also this code is not fully tested.

In file ./dynamic-widgets/dynwid_class.php:149-155

public function getOptions($widget_id, $maintype) {
  $opt = array();
  $query = "SELECT widget_id, maintype, name, value FROM " . $this->dbtable . " WHERE widget_id LIKE '" . $widget_id . "' AND (maintype LIKE '" . $maintype . "%' OR maintype = 'role') ORDER BY name";

Replace by:

public function getOptions($widget_id, $maintype, $admin = TRUE) {
  $opt = array();

  if ( $admin ) {
    $query = "SELECT widget_id, maintype, name, value FROM " . $this->dbtable . " WHERE widget_id LIKE '" . $widget_id . "' AND maintype LIKE '" . $maintype . "%'   ORDER BY name";
  } else {
    $query = "SELECT widget_id, maintype, name, value FROM " . $this->dbtable . " WHERE widget_id LIKE '" . $widget_id . "' AND (maintype LIKE '" . $maintype . "%' OR maintype = 'role') ORDER BY name";
  }

In file ./dynamic-widgets/dynwid_worker.php:24

$opt = $DW->getOptions($widget_id, $whereami);

Replace by:

$opt = $DW->getOptions($widget_id, $whereami, FALSE);

UPDATE: Bug has been fixed in version 1.1.1.

2

Dynamic Widgets 1.1

I’ve just released a new official stable version of the Dynamic Widgets Plugin. Compared to the previous stable version 1.0 two features have been added:

  • Default widget display setting option for ‘Not Found’ Error (404) Page. (since 1.0.1)
  • Support for widget display settings based on role, including not logged in (anonymous) users. (NEW)

If you have a previous version installed, you’ll see an update of the plugin soon when wordpress.org picks up the new version. When you’re not using the automatic updating function in WordPress, please follow the upgrade notes in the readme.txt included in the zip file of the plugin.

UPDATE: A bug has been fixed in version 1.1, which made the new version 1.1.1. Do not use version 1.1, but version 1.1.1. You can download version 1.1.1 from wordpress.org.


Dynamic Widgets 1.0.1

I’ve just uploaded version 1.0.1 of Dynamic Widgets. Just one feature have been added by request to be able to set display option for the error 404 page. I probably won’t make this version an official (stable) release.

If you want to use this extra feature, you’ll have to use the development version.

UPDATE: This feature is now available in the official version 1.1.

2

Dynamic Widgets 1.0

This is the first release of Dynamic Widgets. A plugin for WordPress which gives you more control over your widgets. It lets you dynamicly place widgets on WordPress pages by excluding or including rules for the homepage, single posts, pages, categories and archives.

The plugin has been written out of frustration Sabine from (Warning: Shoes addict ahead) stilettogirl.nl had. She wanted to have more control over the widgets. After looking into a couple of already existing plugins which were not satisfactory, she came to me. Of course I couldn’t say no to her and ‘Dynamic Widgets’  was born.

To demonstrate the plugin, you’ll not see a ‘Recent Posts’ widget at the left side in the sidebar on the front page. On other pages (About, this single post, the Dynamic Widgets Category page) the ‘Recent Posts’ widget is displayed.

The widget ‘Dynamic Widgets’ which shows the latest release and a download link of the plugin is only displayed at the front page, the Dynamic Widgets page and the Dynamic Widgets Category page.

Widgets Overview

Widget Options