[wordpress插件] Custom Add User自定义添加用户

wordpress 插件 文章 2020-04-07 05:40 577 0 全屏看文

AI助手支持GPT4.0

评分
80
描述

This WordPress plugin provides completely customized experience for adding users with a single form for adding brand new users (single site or multisite installs)

WordPress插件提供了完全自定义的体验,可通过单一表单添加用户来添加品牌新用户(单个站点或多站点安装)

or existing users (in multisite).

现有用户(在多站点中)。

The users can be added without them requiring account activation (which is useful in private multisites where authentication is handled by third party systems such as Shibboleth/ LDAP).

可以添加用户而无需他们启用帐户激活(这在由第三方系统(例如Shibboleth / LDAP)处理身份验证的专用多站点中很有用)。

It also allows you to add custom instructions for adding users to your site.

它还允许您添加自定义说明以将用户添加到您的网站。

Use cases

用例

In a private multisite installation, you might often face three issues

在私有多站点安装中,您可能经常会遇到三个 问题

    1. If user authentication is handled by external authentication systems such as LDAP or Shibboleth, you don't want the new user to be 'invited

      如果用户身份验证是由外部身份验证系统(例如 LDAP Shibboleth )处理的,则您不希望新用户被“ 邀请

      >' to join your site or one of the sites in your network.

      >”即可加入您的网站或网络中的网站之一。

      Instead, you would like to send them a welcome email skipping the invitation part which requires them to click the link to activate their account.

      相反,您想向他们发送欢迎电子邮件,跳过邀请部分,这要求他们单击链接以激活其帐户。

      Since user authentication is not handled by WordPress, it doesn’t really make sense for WordPress to validate user activation.

      由于WordPress不会处理用户身份验证,因此WordPress验证用户激活实际上并没有任何意义。

    2. When a user (site admin) tries to add another user to a site, an invitation gets sent to the invited user.

      当用户(站点管理员)尝试将另一个用户添加到站点时,邀请将发送给被邀请的用户。

      When that invitation expires, the invited user cannot be added to a site for a time period as their username is on hold, which creates a lot of frustration for both – the site admin trying to add people to their

      当邀请过期时,被邀请的用户不能在一段时间内被添加到网站,因为他们的用户名一直处于保留状态,这给双方都带来了很大的挫败感–网站管理员试图将人们添加到他们的

      site and users trying to access the site after the invitation has expired.

      网站和邀请过期后尝试访问该网站的用户。

      Also until the invited user has accepted the invitation, no other site admins can add the same user to a different site in the multisite network.

      同样,在受邀用户接受邀请之前,其他站点管理员都无法将同一用户添加到多站点网络中的其他站点。

    3. When a site admin adds a user to a site, the new user is also added to the network users table.

      当站点管理员将用户添加到站点时,新用户也将添加到 network users 表中。

      If any site admin tries to add a user to other sites, they have to know if the user already exists in any of the other sites in the network, for which they might not even have access

      如果任何站点管理员试图将用户添加到其他站点,则他们必须知道该用户是否已经存在于网络中的其他任何站点中,而他们可能甚至没有访问权限

      because only super admins can see the list of all users in the network.

      ,因为只有超级管理员可以看到网络中所有用户的列表。

      If the user already exists in the network and they try to add this user using the 'Add New User' form instead of 'Add Existing User' form, they will get an

      如果用户已经在网络中,并且他们尝试使用“添加新用户” 表单而不是“添加现有用户” 表单添加该用户,则他们将获得一个

      error saying the user already exists and vice versa.

      错误说用户已经存在,反之亦然。

      This leads to a lot of confusion among site admins as they have no idea if the user they are trying to add is a brand new or an existing user in the multisite installation.

      这导致站点管理员之间的混乱,因为他们不知道要添加的用户是多站点安装中的全新用户还是现有用户。

    This plugin addresses all the above issues by –

    此插件通过– 解决了上述所有问题

      1. Skipping the invitation (activation link) email and automatically adding the user to the site instantly.

        跳过邀请(激活链接)电子邮件,并立即将用户自动添加到站点。

        A welcome email is sent as soon as site admin adds the user.

        网站管理员添加用户后,就会发送一封欢迎电子邮件。

        (You can customize the text of Welcome email from network settings screen.)

        (您可以从网络设置屏幕自定义欢迎电子邮件的文本。)

      2. Hiding the ‘Add existing User’ form, so that site admins only see one form for adding users.

        隐藏“添加现有用户”表单,因此网站管理员只能看到一种用于添加用户的表单。

      3. Handling the ‘brand new user’ vs ‘existing user’ issue in the back-end after site admin submits the form.

        网站管理员提交表单后,在后端

        处理后端的“新用户”与“现有用户”问题。

        If the user doesn’t exist, the plugin will create a new user and add it to the site.

        如果该用户不存在,该插件将创建一个新用户并将其添加到网站。

        If the user already exists, it will add the user to the site.

        如果该用户已经存在,它将把该用户添加到该站点。

安装步骤

From your WordPress dashboard

从您的WordPress仪表板中

    1. Visit ‘Plugins > Add New’
    2. 访问“插件>添加新内容”

    3. Search for ‘Custom Add User’
    4. 搜索“自定义添加用户”

    5. Activate or Network Activate (multisite) ‘Custom Add User’ from your Plugins page.
    6. 从“插件”页面激活或网络激活(多站点)“自定义添加用户”。

    From WordPress.org

    来自WordPress.org

      1. Download ‘custom-add-new’.
      2. 下载“ custom-add-new”。

      3. Upload the ‘custom-user-new’ directory to your ‘/wp-content/plugins/’ directory, using your favorite method (ftp, sftp, scp, etc…)
      4. 使用您喜欢的方法(ftp,sftp,scp等)将“ custom-user-new”目录上载到您的“ / wp-content / plugins /”目录中

      5. Activate or Network Activate (multisite) Custom Add User from your Plugins page.
      6. 从插件页面

      7. 激活或网络激活(多站点)自定义添加用户

      Installing a zip file

      安装zip文件

        1. Create a zip of custom-user-new directory.
        2. 创建 custom-user-new 目录的zip。

        3. In the WordPress dashboard, navigate to the Plugins -> Add New page.
        4. 在WordPress仪表板中,导航到插件-> 添加新页面。

        5. Click Upload Plugin.
        6. 点击上传插件。

        7. Upload the zip file and click Install Now.
        8. 上传zip文件,然后单击立即安装。

        9. Click on Activate or Network Activate (multisite).
        10. 单击激活网络激活(多站点)。

        Copying a Directory

        复制目录

          1. Copy the custom-user-new directory into your wp-content/plugins directory.
          2. custom-user-new 目录复制到您的 wp-content / plugins 目录中。

          3. In the WordPress Network Admin dashboard, navigate to the Plugins page
          4. 在WordPress网络管理控制台中,导航到插件页面

          5. Locate the menu item that reads “Custom New User Page”
          6. 找到显示“自定义新用户页面”的菜单项

          7. Click on Activate or Network Activate (multisite).
          8. 单击激活网络激活(多站点)。

下载地址
https://downloads.wordpress.org/plugin/custom-add-user.2.0.2.zip
-EOF-

AI助手支持GPT4.0