一、theme my login采用了模块化管理。
theme my login总共有7个模块,分别是电子邮件,重定向,用户链接,验证码,安全,资料风格化(这个暂没想好使用什么中文术语),用户控制。电子邮件是theme my login发给用户和管理员的邮件设置。用户链接是控制用户登录及个人资料如何显示。验证码是控制用户在注册时是否启用谷歌提供的验证码(很酷)。安全是设置是否关闭wordpress的wp-login.php和登录多次失败输入密码的锁定设置。资料风格化是控制那些角色的用户次用theme my login前后还是后台。用户控制提供三个选项,分别是如何激活用户,第一个是无需激活,第二个是电子邮件验证,第三个是用户需要管理员批准。点金选择了第三个。这些模块可以在常规里单独启用与关闭。
二、如何使用theme my login辅助wordpress用户管理。
首先你需要下载这个插件进行安装。在worpress后台,点插件-安装插件,输入theme my login搜索即可找到。对于点金主题网的用户可以在下面下载全新汉化版:
theme my login
Usage
[theme-my-login instance=”1″]
Parameters
instance
(string) A unqiue instance ID for this instance.
default_action
(string) The action to display. Defaults to “login”.
login_template
(string) The template used for the login form. Defaults to “login-form.php”.
register_template
(string) The template used for the register form. Defaults to “register-form.php”.
lostpassword_template
(string) The template used for the lost password form. Defaults to “lostpassword-form.php”.
resetpass_template
(string) The template used for the reset password form. Defaults to “resetpass-form.php”.
user_template
(string) The templated used for when a user is logged in. Defalts to “user-panel.php”.
show_title
(boolean) True to display the current title, false to hide. Defaults to true.
show_log_link
(boolean) True to display the login link, false to hide. Defaults to true.
show_reg_link
(boolean) True to display the register link, false to hide. Defaults to true.
show_pass_link
(boolean) True to display the lost password link, false to hide. Defaults to true.
register_widget
(boolean) True to allow registration in widget, false to send to register page. Defaults to false.
lostpassword_widget
(boolean) True to allow password recovery in widget, false to send to lost password page. Defaults to false.
logged_in_widget
(boolean) True to display the widget when logged in, false to hide. Defaults to true.
show_gravatar
(boolean) True to display the user’s gravatar, false to hide. Defaults to true.
gravatar_size
(integer) The size of the user’s gravatar. Defaults to “50″.
before_widget
(string) Content to display before widget. Defaults to “
”.
after_widget
(string) Content to display after widget. Defaults to “
”.
before_title
(string) Content to display before the title (if displayed). Defaults to “
”.
after_title
(string) Content to display after the title (if displayed). Defaults to “
”.