[WordPress] 外掛分享: Sidebar Login

WordPress 外掛 Sidebar Login 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「Sidebar Login」是 2008-08-01 上架。
  • 目前有 10000 個安裝啟用數。
  • 上一次更新是 2020-10-17,距離現在已有 1660 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 5.0 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 5.6 以上。
  • 有 78 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

mikejolley |

外掛標籤

login | widget | sidebar | login widget | sidebar login |

內容簡介

e links.
sidebar_login_widget_end – Fired after the widget.

這是一個 WordPress 的外掛,Sidebar Login 可以為您的 WordPress 博客添加一個有用的登錄小工具,您可以在 WordPress 博客的側欄中使用它進行登錄。

當用戶登錄後,他們將被重定向回他們登錄時所在的頁面,而不是管理面板(可配置)。

如果您想為該插件貢獻程式碼,您可以通過GitHub進行貢獻。

如果您想貢獻翻譯,該項目托管在 WordPress.org 上。

用法

只需轉到外觀>小工具,並將“側欄登錄”拖到您選擇的側欄即可。在小工具中,您可以使用多個選項來更改顯示給用戶的標題或鏈接。

要在模板中使用此小工具,請使用 WordPress 提供的the_widget() 函数 。

標題+鏈接標籤

這些標籤可用於標題+鏈接的小工具設置中,在運行時將被替換。

%username% - 登錄用戶顯示名稱
%userid% - 登錄用戶ID
%firstname% - 登錄用戶名
%lastname% - 登錄用戶姓氏
%name% - 登錄用戶名+姓氏
%nicename% - 用戶別名
%admin_url% - WP管理面板的 URL
%logout_url% - 登出 URL
%buddypress_profile_url% - Buddypress個人資料正文的 URL
%bbpress_profile_url% - bbPress論壇個人資料的 URL
%avatar% - 用戶頭像

過濾器參考

sidebar_login_include_css - 返回 false 不包含 CSS 樣式表
sidebar_login_widget_logged_in_links - 登錄後顯示的鏈接數組。
sidebar_login_widget_logged_out_links - 登出後顯示的鏈接數組。
sidebar_login_widget_display - 返回 false 隱藏小工具。
sidebar_login_widget_logged_in_title - 登錄時顯示的小工具標題。
sidebar_login_widget_avatar_size - 頭像大小 - 默認為38px
sidebar_login_widget_logged_out_title - 登出時顯示的小工具標題。
sidebar_login_widget_form_args - wp_login_form 函數的参數。
sidebar_login_widget_login_redirect - 登入後重新導向的 URL。
sidebar_login_widget_logout_redirect - 登出後重新導向的 URL。
sidebar_login_widget_register_url - 注册鏈接的 URL。
sidebar_login_widget_lost_password_url - 遺忘密碼鏈接的URL
sidebar_login_widget_wp_login_form - 登錄表單的 HTML。

操作参考

sidebar_login_widget_start - 小工具之前啓動。
sidebar_login_widget_{logged_in || logged_out}_content_start - 小工具內容之前啓動。
sidebar_login_widget_before_{logged_in || logged_out}_links - 鏈接之前啓動。
sidebar_login_widget_after_{logged_in || logged_out}_links - 鏈接之後啓動。
sidebar_login_widget_end - 小工具結束後啓動。

原文外掛簡介

Sidebar Login adds a useful login widget which you can use to login from in the sidebar of your WordPress powered blog.
Once a user logs in they are redirected back to the page they logged in from, rather than the admin panel (this is configurable).
If you’d like to contribute code to the plugin you can do so via GitHub.
If you’d like to contribute a translation, the project is hosted on WordPress.org.
Usage
Simply go to Appearance > Widgets and drag “sidebar login” to the sidebar of your choice. Within the widget are several options you can use for changing the titles or the links displayed to the user.
To use this widget in a template, use the the_widget() function which WordPress provides.
Tags for titles + links
These tags can be used in the widget settings for titles + links and will be replaced at runtime.

%username% – logged in users display name
%userid% – logged in users ID
%firstname% – logged in users firstname
%lastname% – logged in users lastname
%name% – logged in users firstname + lastname
%nicename% – user nice name
%admin_url% – url to WP admin
%logout_url% – logout url
%buddypress_profile_url% – Buddypress Profile URL
%bbpress_profile_url% – Buddypress Profile URL
%avatar% – User Avatar

Filter Reference

sidebar_login_include_css – return false to not include the CSS stylesheet
sidebar_login_widget_logged_in_links – An array of links shown when logged in.
sidebar_login_widget_logged_out_links – An array of links shown when logged out.
sidebar_login_widget_display – Return false to hide the widget.
sidebar_login_widget_logged_in_title – The widget title shown when logged in.
sidebar_login_widget_avatar_size – The avatar size – defaulted to 38 (thats in px)
sidebar_login_widget_logged_out_title – The widget title shown when logged out.
sidebar_login_widget_form_args – Arguments for the wp_login_form function.
sidebar_login_widget_login_redirect – Redirect URL after login.
sidebar_login_widget_logout_redirect – the redirect after logging out.
sidebar_login_widget_register_url – The URL for registration links.
sidebar_login_widget_lost_password_url – The URL for lost password links.
sidebar_login_widget_wp_login_form – The HTML of the Login form.

Action Reference

sidebar_login_widget_start – Fired before the widget.
sidebar_login_widget_{logged_in || logged_out}_content_start – Fired before the widget content.
sidebar_login_widget_before_{logged_in || logged_out}_links – Fired before the links.
sidebar_login_widget_after_{logged_in || logged_out}_links – Fire after the links.
sidebar_login_widget_{logged_in || logged_out}_content_end – Fired after the widget content.
sidebar_login_widget_end – Fired after the widget.

Notes

Due to AJAX not working across different domains (see same_origin_policy), AJAX logins will be disabled if your site it non-SSL, but the FORCE_SSL_ADMIN constant is set to true. Instead it will fallback to a traditional POST.

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Sidebar Login」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


2.0 | 2.1 | 2.2 | 2.3 | 2.4 | 2.1.1 | 2.1.2 | 2.1.5 | 2.1.6 | 2.1.7 | 2.2.1 | 2.2.2 | 2.2.3 | 2.2.4 | 2.2.5 | 2.2.6 | 2.2.7 | 2.2.8 | 2.2.9 | 2.3.1 | 2.3.2 | 2.3.3 | 2.3.4 | 2.3.5 | 2.5.0 | 2.5.1 | 2.5.2 | 2.5.3 | 2.6.0 | 2.7.0 | 2.7.1 | 2.7.2 | 2.7.3 | 3.0.0 | 3.0.1 | trunk | 2.2.10 | 2.2.12 | 2.2.13 | 2.2.14 | 2.2.15 | 3.0.0.beta | 3.0.0.beta2 |

延伸相關外掛(你可能也想知道)

  • Login Widget With Shortcode 》, 這是一個簡單的小工具中的登入表單。, 相容於 WordPress 多站架設。, 您可以利用此縮短代碼 [login_widget] 在您的頁面/ 文章中使用登入表單。, 只需要安裝...。
  • Tabbed Login Widget 》Tabbed Login Widget 是一個 WordPress 外掛,提供小工具讓您在 WordPress 動力部落格的側欄中以表單方式提供登入功能。, 它讓用戶登入,然後重新導向回他們...。
  • WP Sidebar Login 》WP Sidebar Login 是一個啟用 AJAX 的 WordPress 登入外掛,提供小工具和範本標籤,讓您可以在 WordPress 網誌的側邊欄擁有登入表單。使用者可以登入,然後將...。
  • Siris Login Widget 》這個外掛可以輕鬆地將自定義登入頁面和安全菜單添加到您的側邊欄中,您可以添加多個 Siris 登入小工具。, 使用方法:, 1. 安裝並啟用 Siris 登入小工具 , 2. ...。
  • Bangla Sidebar Login 》Bangla Sidebar Login是一個啟用 Ajax 的孟加拉語 WordPress 登入外掛程式,具有小工具和模板標籤兩個允許您在 WordPress 部落格的側邊欄中設置孟加拉語登入...。

文章
Filter
Apply Filters
Mastodon