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

URWA for bbPress

外掛說明

Description

User Role Widget Areas for bbPress allows you to selectively display content in your themes active widget areas based on standard bbPress user roles (bbPress Keymaster, bbPress Moderator, bbPress Participant, bbPress Spectator) of logged in users. All user role widget areas can be displayed in any existing sidebar or widget area within your theme.

Plugin Features

  • 4 User role based widget areas, one for each of the standard bbPress user roles.
  • 1 display widget for displaying your new widget areas on the front end (public site).
  • An additional shortcode for displaying your user role and user status based widget areas.
  • The ability to hard code the script into your theme that displays the widget areas on the front end.

Important Information

This plugin is designed to work with bbPress, a popular, full-featured forum plugin for WordPress. Therefore, bbPress needs to be installed and activated for the plugin to work.

Rate The Plugin

If you like this plugin and find it useful please take a moment to rate it. Thanks!

螢幕擷圖

  • screenshot-1.jpg

安裝方式

Installation

  1. In WordPress go to Plugins > Add New and search for URWA for bbPress.
  2. Install and activate the plugin using the built in WordPress plugin installer.
  3. Go to Appearance > Widgets. You will notice a new set of user role and status based widget areas. Drag any widget into those areas that you desire.
  4. Drag the installed bbPress Users by Role display widget to the sidebar or widget area where you want your user role based widgets to appear.
  5. Refresh your public site to see role based widgets and log out or log in as a different user role to see the widgets change.

Additional Usage – Shortcode

One shortcode comes installed with this plugin.

The following shortcode will display the bbPress role based widgets that you have defined on the Appearance > Widgets page in WordPress:

[bbpress-user-role-widget-areas]

Additional Usage – Hardcoding

You can also hardcode the dynamic widget areas into your theme using the following PHP code.

The following code will display the role based widgets that you have defined on the Appearance > Widgets page in WordPress when placed in your theme:

<?php echo do_shortcode('[bbpress-user-role-widget-areas]’); ?> 

Advanced Styling

Each role based widget area gets wrapped in a unique ID allowing advanced users to individually style the widget areas.

常見問題集

FAQ

Q: I dragged widgets into the bbPress User Role Widget Areas but they are not showing up on the front end. Why?

A: You must make sure that you have placed the bbPress Users By Role widget into any existing NON-USER widget area where you want to display specific widgets based on user roles.

Q: I did the step above but the bbPress User Role widgets are still not showing up.

A: Make sure you have at least one widget in the widget area for the role you are logged in as. For example: If you are logged in as an Keymaster drag a text widget into the Users – bbPress Keymaster widget area and give it a title and some placeholder content. Go back to your browser and refresh.

使用者評論

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

參與者及開發者

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

參與者

將〈URWA for bbPress〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

1.0

  • Initial release
  • Added registration for 4 bbPress user role based widget areas
  • Added registration for 1 bbPress display widget that displays your bbPress user role based widget areas on the front end
  • Added shortcode support for displaying user role and status based widget areas on the front end
  • Tested functionality on a variety of themes and browsers