這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Limit Widgets

外掛說明

This is a simple WordPress plugin which allows a site adminstrator to limit the number of widgets in a sidebar. You simply go the the settings -> limit widgets page and customize the maximum number of widgets used for each menu.

A nice visual effect will appear in the sidebar in the WordPress admin and the client will be unable to drop new widgets into the sidebar once the cap has been reached.

You can set widgets to have unlimited widgets by leaving the field blank. You can also set the sidebar to have 0 widgets effectively diabling it.

Credits

This is the Internet which means that nothing is created from scratch. This plugin is mostly a combination of work from other people which I just packaged into something with a user interface for easy management.

Contributors Welcome

Author

螢幕擷圖

  • A sidebar that is full.
  • A sidebar that is beyond full. Normally this happens when you limit an existing sidebar.

安裝方式

  1. Upload Limit Widgets to the /wp-content/plugins/ directory.

  2. Activate the plugin through the ‘Plugins’ menu in WordPress.

  3. Go to the Settings -> Limit Widgets page.

  4. Enter an integer for each sidebar on the Limit Widgets settings page.

常見問題集

What do the different colors in the WordPress admin section mean?
  • Blue: If you have a sidebar that has reached the maximum number of widets allowed.
  • Red: If you have a sidebar that has more widets than is allowed.
  • No color: If your sidebar doesn’t have a limit or the number of widgets in the sidebar is less than the limit there is applied to the sidebar.
How do you configure a sidebar with more widgets than allowed?

There are two likely ways to get a sidebar that has more widets than allowed.

  1. You set the maximum number of widgets on a sidebar that was already too full.
  2. Someone disabled the JavaScript. See the next question.
How does this plugin work? / Is there anyway someone can avoid the set limits?

This plugin is based on JavaScript. If you have a client who likes to break the rules you set it is possible that they might disable the JavaScript and set the sidebars that way.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Limit Widgets〉的開發相關工作。

參與者

將〈Limit Widgets〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.0.4

  • fixed a bug where users could add more widgets via the inline tool
  • added additional author

1.0.3

  • Updating admin side CSS to play nicely new layout.
  • Adding link from plugins page to settings page.

1.0.2

  • Fix – PHP notices for an empty widget area

1.0.1

  • Tweak – Updating readme.txt file

1.0.0

  • Initial release