Chuyển tới nội dung
  • Giới thiệu về WordPress
    • Giới thiệu về WordPress
    • WordPress.org
    • Tài liệu
    • Hỗ trợ
    • Thông tin phản hồi
  • Đăng nhập
  • Đăng ký
WordPress.org
WordPress.org

tiếng Việt

  • Giao diện
  • Plugin
  • News
  • Hỗ trợ
    • Documentation
    • Diễn đàn
  • Giới thiệu
  • Meetup
  • Team
  • Get WordPress
Get WordPress

Plugin

  • Mục yêu thích
  • Phiên bản Beta
  • Lập trình viên

Plugin này chưa được cập nhật với 3 phiên bản mới nhất của WordPress. Nó có thể không được hỗ trợ và bảo trì, và có thể xung đột với các phiên bản WordPress mới nhất.

Tải về

Logged In Conditional Text Widget

Bởi Paul Gregory
  • Chi tiết
  • Đánh giá
  • Cài đặt
  • Hỗ trợ
  • Development

Mô tả

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.

Ảnh màn hình

  • The "Text (If Logged In)" widget

Cài đặt

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.

Hỏi đáp

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.

Đánh giá

Working Perfect

convictedvapour 3 Tháng Chín, 2016
As described and works perfectly on WordPress and BuddyPress. Thanks you a life saver!
Đọc tất cả 1 đánh giá

Người đóng góp & Lập trình viên

“Logged In Conditional Text Widget” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.

Những người đóng góp
  • Paul Gregory

Dịch “Logged In Conditional Text Widget” sang ngôn ngữ của bạn.

Muốn tham gia phát triển?

Duyệt code, check out SVN repository, hoặc theo dõi nhật ký phát triển qua RSS.

Nhật ký thay đổi

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)

Meta

  • Phiên bản: 0.9.2
  • Lần cập nhật gần nhất: 8 năm trước
  • Lượt kích hoạt: 20+
  • Phiên bản WordPress: 2.8 hoặc cao hơn
  • Đã kiểm tra với: 3.7.38
  • Ngôn ngữ:
    English (US)
  • Tag:
    conditionalloginregisterwidget
  • Nâng cao

Đánh giá

Xem tất cả
  • 5 sao 1
  • 4 sao 0
  • 3 sao 0
  • 2 sao 0
  • 1 sao 0
Log in to submit a review.

Những người đóng góp

  • Paul Gregory

Hỗ trợ

Có điều gì muốn nói? cần giúp đỡ?

Xem diễn đàn hỗ trợ

Ủng hộ

Bạn có muốn hỗ trợ vào sự phát triển của plugin này?

Ủng hộ plugin này

  • About
  • News
  • Hosting
  • Donate
  • Support
  • Developers
  • Get Involved
  • Learn
  • Showcase
  • Plugins
  • Themes
  • Patterns
  • WordCamp
  • WordPress.TV
  • BuddyPress
  • bbPress
  • WordPress.com
  • Matt
  • Privacy
  • Public Code
WordPress.org
WordPress.org

tiếng Việt

  • Visit our Facebook page
  • Visit our Twitter account
Viết code như làm thơ.