WordPress.org

Hong Kong 香港中文

  • 佈景主題
  • 外掛
  • News
  • Support
  • About
  • 重要通知
  • WordPress 常見問題
  • 團隊
  • 取得 WordPress
取得 WordPress
WordPress.org

Plugin Directory

Logged In Conditional Text Widget

  • Submit a plugin
  • My favorites
  • Log in
  • Submit a plugin
  • My favorites
  • Log in

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

Logged In Conditional Text Widget

由Paul Gregory
下載
  • 詳情
  • 評價
  • 安裝
  • 開發
支援

描述

Adds three widgets – “Text/List”, “Text/List (If Logged In)” and “Text/List (Not Logged In)”. These can be used much like the normal Text widget, except two of them only display if the condition is met.

Potential Uses:
* Add a link to a Register page, along with some text promoting registration (for example on a site with the bbPress plugin)
* Display adverts to users who are not logged in
* Display useful links to users who are logged in.
* Display a nice list to everyone.

Because the widgets are separate, you can have the logged-in widget in a different place to a logged-out widget. You don’t even have to have pairs of widgets.

Unlike the normal Text widget which just has a toggle for paragraph on/off, this widget has four display options:

  • No formatting
  • Add paragraphs
  • Bullet list (ul)
  • Numbered list (ol)

The list options are useful if you are adding a number of links – simply add each one on a new line and they’ll be turned into a bullet. Please note that this plugin adds no CSS. Often themes style the lists within a widget to make menus look nice, so your theme may (for example) prevent numbers from showing. See FAQ.

You may find that the Text/List widget is useful even without the logged-in / logged-out conditional.

螢幕截圖

  • The “Text (If Logged In)” widget

安裝

There isn’t much to do.

  1. Upload logged-in-conditional-text-widget.php to the /wp-content/plugins/ directory (or install via Add Plugins – search for Logged In Conditional Text Widget or author Paul Gregory)
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Go to Widgets where you’ll see three new widgets: “Text/List (If Logged In)”, “Text/List (Not Logged In)”, “Text/List”.
  4. Add and configure widget instances in the normal way.
  5. You may need to tweak your theme’s CSS to get numbered lists to show as desired. See FAQ. The UL and OL have a class of ‘textlistconditional’ which you can target if required.

常見問題

Why doesn’t my numbered list have numbers?

Most likely, your theme is overriding the default styling of the LI (list item) element so that the number/bullet is hidden. This plugin does not include any CSS. However, the UL and OL have a class of ‘textlistconditional’ which you can target if required in your theme’s CSS.

What about internationalisation?

All text strings are in the pgloggedintext domain. If you’d like to submit a translation, please do.

評價

Working Perfect

convictedvapour 2016年9月3日
As described and works perfectly on WordPress and BuddyPress. Thanks you a life saver!
閱讀全部1個評價

貢獻者及開發者

“Logged In Conditional Text Widget” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者
  • Paul Gregory

將 Logged In Conditional Text Widget 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

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

修改日誌

0.9.3

  • Readme changes

0.9.2

  • Logged in and Logged Out reuse same widget code, actually from the new third type which is a text widget without conditions.
  • Shows title in editor when widget minimised
  • Some labelling changes, e.g. now “Text/List”.
  • Allows shortcodes
  • Class on the UL and OL to assist CSS targeting

0.9.1

  • Bugfix release (2014).

0.9

  • First release (2011)

其它

  • Version 0.9.2
  • Last updated 11 年之前
  • Active installations 10+
  • WordPress version 2.8 or higher
  • Tested up to 3.7.41
  • Language
    English (US)
  • Tags
    conditionalloginregisterwidget
  • 進階顯示

評分

5 out of 5 stars.
  • 1 5-star review 5 stars 1
  • 0 4-star reviews 4 stars 0
  • 0 3-star reviews 3 stars 0
  • 0 2-star reviews 2 stars 0
  • 0 1-star reviews 1 star 0

Add my review

See all reviews

貢獻者

  • Paul Gregory

支援

有話想說?需要協助?

檢視支援論壇

捐贈

想要支援這個外掛的發展嗎?

贊助這個外掛

  • 關於我們
  • 最新消息
  • 寄存
  • 隱私權
  • 展示網站
  • 佈景主題
  • 外掛
  • 區塊版面配置
  • Learn
  • 技術支援
  • 開發者資源
  • WordPress.tv ↗
  • 共同參與
  • Events
  • Donate ↗
  • Five for the Future
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org

Hong Kong 香港中文

  • Visit our X (formerly Twitter) account
  • Visit our Bluesky account
  • Visit our Mastodon account
  • Visit our Threads account
  • 訪問我們的 Facebook 專頁
  • Visit our Instagram account
  • Visit our LinkedIn account
  • Visit our TikTok account
  • Visit our YouTube channel
  • Visit our Tumblr account
代碼就是詩歌。