配置用户如何创建和发送邀请以便他人加入您的社区

:bookmark: 本指南说明如何在 Discourse 中配置、创建和管理用户邀请。

:person_raising_hand: 所需用户级别:管理员

Discourse 允许受许可群组中的用户邀请新成员加入您的社区(默认信任级别 2)。可以配置邀请,在新用户首次加入站点时将他们重定向到特定主题。还可以配置邀请,以便在新用户接受邀请时将他们添加到自定义 Discourse 群组中。

配置与邀请相关的站点设置

可以调整以下站点设置来配置邀请在您的站点上的工作方式:

名称 描述
invite allowed groups 允许邀请新用户加入站点的群组(默认为信任级别 2 和 staff)
default invitee trust level 将授予被邀请用户的信任级别(默认为信任级别 1)
max invites per day 普通用户一天可以发送的最大邀请次数。此限制不适用于 staff 成员。(默认为每天 10 次邀请)
invite expiry days 邀请的有效天数(默认为 90 天)
invite link max redemptions limit 由_staff_用户创建的邀请链接可以被兑换的最大次数(默认为 5000 次)
invite link max redemptions limit users 由非 staff 用户创建的邀请链接可以被兑换的最大次数(默认为 10 次)

创建邀请

要创建邀请,请从用户的个人资料页面访问“邀请”部分。这将带您进入“待处理的邀请”页面。该页面显示您已发送的先前邀请的列表,并允许您发送新的邀请。点击“邀请”按钮开始创建新邀请:

将打开一个模态窗口,允许您配置邀请:

  • Description (描述):为邀请添加可选描述,以便于组织。
  • Restrict to (限制对象):输入电子邮件地址或域名(例如 example.com)以限制谁可以使用此邀请。
  • Max uses (最大使用次数):如果不在上一个字段中限制为单个电子邮件,请设置允许的兑换次数。
  • Expire after (有效期至):设置邀请的有效期限。
  • Arrive at topic (到达主题):选择用户加入后登陆的主题。(仅限 Staff,启用 must approve users 时隐藏)
  • Add to groups (添加到群组):选择新用户将被添加到的群组。(仅限 Staff 和群组所有者)
  • Custom message (自定义消息):向您的邀请电子邮件添加个性化注释。(仅在限制到电子邮件地址时显示)

配置邀请后,如果您已将其限制到电子邮件地址,您将可以选择复制邀请链接,或者直接从您的 Discourse 站点发送邀请电子邮件:

如果您没有将邀请限制到电子邮件地址,您将只能选择复制邀请链接。

其他邀请用户的方法

邀请到特定主题

用户可以通过点击主题页脚的“分享”按钮来被邀请到特定主题。点击打开的模态框中的“邀请”按钮以访问邀请表单。请注意,只有站点上的管理员用户才能邀请用户到受保护类别中的主题。当这样做时,系统会提示他们将用户添加到有权访问该类别的群组。

邀请到群组

群组所有者和站点管理员可以从群组页面邀请新用户加入群组。点击群组页面上的“邀请”按钮以打开邀请模态框:

接受邀请

当通过访问邀请链接接受邀请时,用户将被带到一个页面,该页面将显示与您站点注册模态框中看到的字段相同的内容。一个例外是,如果邀请是为特定电子邮件地址创建的,则不会显示电子邮件字段。相反,系统将使用配置邀请的电子邮件地址为他们创建一个帐户:

邀请分析

关于特定链接带来了多少人注册的统计数据可以在创建邀请链接或邀请电子邮件的用户的“邀请”页面上查看。

特别是,“待处理”页面将显示所有当前有效的邀请链接列表,并显示链接已兑换的用户数与该链接允许的总注册数。 “已过期”页面将显示类似视图,但只显示不再有效的邀请,您也可以在“已兑换”页面上查看所有兑换了邀请链接的用户列表。

此外,数据浏览器 插件可用于使用 invited_users 表创建有关邀请统计数据的报告。例如,以下 SQL 查询将显示所有被邀请到站点的用户列表,以及邀请者以及用户注册了多长时间:

受邀用户列表
SELECT iu.user_id, 
       i.invited_by_id AS invited_by_user_id, 
       iu.redeemed_at AS reltime$time 
FROM invited_users iu
JOIN invites i ON iu.invite_id = i.id
WHERE iu.redeemed_at IS NOT NULL
ORDER BY iu.redeemed_at DESC

常见问题和解决方案

  • 邀请不起作用:检查邀请有效期和兑换限制。
  • 用户未收到邀请:验证发送的电子邮件日志和电子邮件地址的有效性。

附加资源

25 个赞
Trying to launch discourse to our membership?
Disable trust level 2 to invite users
Automate User Creation
Invite email link not working on Safari
How do I add users to a group?
Inviting users to Discourse?
Allow New Users by Invite Only
Sign up with link
How to make the user belong to a specific group once he creates the account
Is it possible to have a link that adds a user to a group?
Multiple use invites to existing users
Why is the invite screen different for normal users?
Trying to make a generic invite
Invite only community and newsletter
Trial period limitations - sending an email invite?
Invites not working
Bulk adding email addresses to group sends invitation emails even when “Notify users” is unchecked (latest branch)
Where can I find EXPLICIT step by step instructions to navigate to the section where I can invite people?
How does someone join my community?
Invite users to a group
Invite link for a closed group/category
Where can I find EXPLICIT step by step instructions to navigate to the section where I can invite people?
Invalid invite fields when creating invite as a moderator
Invite link now available in the sidebar
Default notifications for new users
Google groups login
Direct users into closed categories
Why do invited users on discourse get extra trust?
Getting error trying to add new accounts
Creating and using invites
Please help with new sign ups issue
(Superseded) Multiple Use Invite Links
Unique invite code/link to assign role
What is essential content for a new community?
How to allows members to invite others
Invite tokens without email?