內容簡介
這個外掛可以在網站的指定頁面中插入標準的登入程序 (登入、登出、註冊、密碼恢復)。這是通過以下幾個技巧實現的:
wp-login.php 徹底處理,並且將所有指向 wp-login.php 的鏈接替換為指向當前頁面的鏈接
一個“init”hook在調用 wp-login.php 時重定向到登入頁面
一個“login_redirect”過濾器在登入和登出時發送至登入頁面
登入頁面可以(也應該)對登入狀態進行自定義:這是通過“Settings”菜單下的設置子面板進行的。
從0.6版本開始,用於已登錄用戶的頁面包含名為“insitelogin_sidebar”的側邊欄,放置在InsiteLogin選項中插入的文本之後。注意,生成的側邊欄將被解析,替換任何“%%logout%%”實例,因此您可以將選項留空,並僅使用帶有文本小工具的側邊欄。
請注意: 忽略在運行插件的選定頁面中輸入的內容!
待辦事項
在設置中使用所見即所得編輯器
也許檢索標準登入框的CSS?
自定義 insitelogin_sidebar 的佈局
有關註冊/登入/檢索密碼的短代碼
如果您需要其他漂亮的功能,請問我!
外掛標籤
開發者團隊
原文外掛簡介
This plugin insert the standard login procedure (login, logout, registration, password recovery) in a selected page of the site. This is made whith a few tricks:
wp-login.php is fully processed, and his output parsed replacing all links to wp-login.php with links to current page
an “init” hook redirect to login page when wp-login.php is invoked
a “login_redirect” filter send to login page on login and logout
Login page can (and have to) be customized for logged in status: this is made through configuration subpanel under the Settings menu.
From 0.6 version, the page for logged-in users contain a sidebar called “insitelogin_sidebar”, placed after the text inserted into InsiteLogin options. Note that the generated sidebar will be parsed replacing any “%%logout%%” istance, so you can leave blank the option and use only the sidebar with a Text widget.
Pay attention: the content of the page selected to run the plugin is completely ignored!
ToDo
wysiwyg in configuration
maybe retrieve standard CSS for login box?
customize the layout for insitelogin_sidebar
shortcode for registration / login / retrieve pw
If you wish any other pretty feature, you’ve to ask me!
