內容簡介
Login-box 是一個 WordPress 外掛,它會在所有網頁中插入一個登入表單,加快驗證過程。由於 Login-box 是隱藏的,它不會引起讀者的注意,而對於您(以及您的博客其他編輯人員)來說,僅需使用一個簡單的組合鍵就可以輕鬆打開。
Login-box 的外觀與 WordPress 的預設登入頁面完全相同,但可以透過佈景主題輕鬆修改。
選項
Login-box 2.0 具有實用且自我解釋的選項面板,您可以在 WordPress 的「外觀」頁面中進行更改。
或者,您可以直接在 PHP 文件中編輯選項,這樣可以消除對數據庫的查詢,如果您的博客有很多訪問,可以顯著提高性能。打開 login-box-config-sample.php,編輯以下行,最後以 login-box-config.php 保存。
@define(“LB_THEME”, “wp25”);
在這一行中,輸入您喜歡使用的主題名稱。您可以在網絡上下載新的主題或基於默認的「wp25」和「wpclassic」製作自己的主題。
@define(“LB_KEY”, “e”);
選擇要使用 Ctrl 或 Alt 開啟/關閉 Login-box 的按鍵(不區分大小寫)。請注意,某些按鍵在您的瀏覽器(以及讀者的瀏覽器!)中執行特殊功能,Login-box 將取消它們(例如, Ctrl + A 會選擇全部)。我建議您保留默認值「e」。
@define(“LB_CTRL”, true);
在這裡,您也可以定義為 false,停用 Login-box 的 Ctrl 使用。這樣,您可以在 LB_KEY 中輸入「a」,然後使用 Alt + A 打開 Login-box。Ctrl + A 將正常選擇全部。
@define(“LB_BACKTOPAGE”, true);
在此選擇成功登錄後要重定向到的頁面。如果為 true,您將返回實際頁面;如果為 false,您將重定向到 WordPress 儀表板。
@define(“LB_FADE”, true);
在這裡,如果要使用淡入效果開啟 Login-box,請設為 true;如果不需要,則設為 false。
@define(“LB_AUTO”, true);
在這裡,請保留 true,Login-box 將自動插入到您的博客中(參見「安裝」部分的步驟 3 和 4);如果您想選擇 Login-box 出現在博客中的位置,請將其設為 false,並在其佈景主題中使用代碼 <?php loginbox(); ?>。
外掛標籤
開發者團隊
原文外掛簡介
Login-box is a WordPress plugin that inserts into all your pages a login form, making faster the authentication process. As the Login-box is hidden, it doesn’t draws attention of your readers to this part of the blog that doesn’t interest them, but, for you (and the others editors of your blog), becomes quite practical to be opened with a simple combination of keys.
The Login-box presents a visual identical to the default login page of WordPress, but it can be easily modified with themes.
Options
Login-box 2.0 has a practical and self-explanatory options panel where you can change your settings, it is accessible within the page “Design”, into the panel of WordPress.
Alternatively, you can edit the options directly into a PHP file, which eliminates the database queries and significantly improves the performance if your blog has a lot of access. Open the login-box-config-sample.php, edit the following lines and at the end, save it with the name login-box-config.php.
@define(“LB_THEME”, “wp25”);
In this line, put the name of the theme that you like to use. You can download new themes on web or make your theme based in the defaults “wp25” and “wpclassic”.
@define(“LB_KEY”, “e”);
Choose the key (case insensitive) that will be open/close Login-box with Ctrl or Alt. Note that some keys executes especial functions in your browser (and in browser of your readers!). and them will be cancelled by Login-box. (e.g. Ctrl + A selects all). I recommend that you leave the default value “e”.
@define(“LB_CTRL”, true);
Also, you can define false here and deactivate the Ctrl use of Login-box. So, you can put “a” in LB_KEY, and open Login-box with Alt + A. Ctrl + A will be selects all normally.
@define(“LB_BACKTOPAGE”, true);
Here, choose on you will be redirected when success login. If true, you will be back to the actual page; if false, you will be redirected to the WordPress Dashboard.
@define(“LB_FADE”, true);
Here, set true if you want that Login-box opens with a fade-in effect; Set false if not want.
@define(“LB_AUTO”, true);
Here, leave true and the Login-box will be automatically inserted into your blog (see steps 3 and 4 of the “install” section); If you prefer to choose where the Login-box will appear in your blog, set here as false and put in its theme, the code where you want it to appear.
