# 限制未上传头像的用户在群组中发帖

**URL:** https://meta.discourse.org/t/restrict-the-users-to-post-in-the-groups-who-havent-uploaded-their-profile-picture/265000
**Category:** Development
**Created:** [2023 年5 月 15 日 06:43 UTC](https://meta.discourse.org/t/restrict-the-users-to-post-in-the-groups-who-havent-uploaded-their-profile-picture/265000 "2023-05-15T06:43:30Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### 作者： ![Kushalghosh9899](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kushalghosh9899/32/292844_2.png) [@Kushalghosh9899](https://meta.discourse.org/u/Kushalghosh9899)
#### 发布日期： [2023 年5 月 15 日 06:43 UTC](https://meta.discourse.org/t/restrict-the-users-to-post-in-the-groups-who-havent-uploaded-their-profile-picture/265000/1 "2023-05-15T06:43:30Z")

</div>

我希望实现用户在未上传头像时不能发帖。  
他们应该收到 **消息** ：“请上传个人资料图片并完成您的个人资料，然后才能在此网站上开始工作”

有什么方法可以实现这一点吗？

---

<div class="post-metadata">

### 作者： ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### 发布日期： [2023 年5 月 15 日 08:21 UTC](https://meta.discourse.org/t/restrict-the-users-to-post-in-the-groups-who-havent-uploaded-their-profile-picture/265000/2 "2023-05-15T08:21:45Z")

</div>

我认为现有的设置无法实现这一点，因此可能需要自定义解决方案。我将把它转给 #Dev，看看是否能得到一些答案。 👍

---

<div class="post-metadata">

### 作者： ![Krsh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/krsh/32/296559_2.png) [@Krsh](https://meta.discourse.org/u/Krsh)
#### 发布日期： [2023 年5 月 16 日 04:40 UTC](https://meta.discourse.org/t/restrict-the-users-to-post-in-the-groups-who-havent-uploaded-their-profile-picture/265000/3 "2023-05-16T04:40:33Z")

</div>

您好，让我们忽略自定义消息。但是，在用户开始发帖之前，有没有办法强制他们完成某个特定的个人资料字段？  
当然，我们可以将其作为注册过程的一部分，但我希望允许用户先浏览一番，然后再强制他们完成个人资料。

---

<div class="post-metadata">

### 作者： ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### 发布日期： [2023 年5 月 16 日 11:14 UTC](https://meta.discourse.org/t/restrict-the-users-to-post-in-the-groups-who-havent-uploaded-their-profile-picture/265000/4 "2023-05-16T11:14:43Z")

</div>

在 Discourse 论坛注册时，默认字段仅包括：

邮箱\*  
用户名\*  
姓名  
密码\*

注册时无法填写头像、简介、地点等信息。

除了默认字段（姓名除外）外，唯一可以设置为必填的注册字段是自定义字段：[Creating and configuring custom user fields](https://meta.discourse.org/t/create-and-configure-custom-user-fields/113192?u=canapin)

或者，[Custom Wizard Plugin 🧙](https://meta.discourse.org/t/custom-wizard-plugin/73345?u=canapin) 也许会有帮助，但我从未使用过，所以不知道它是否能满足您的要求。

---

<div class="post-metadata">

### 作者： ![Lhc\_fl](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lhc_fl/32/268115_2.png) [@Lhc\_fl](https://meta.discourse.org/u/Lhc_fl)
#### 发布日期： [2023 年5 月 16 日 14:27 UTC](https://meta.discourse.org/t/restrict-the-users-to-post-in-the-groups-who-havent-uploaded-their-profile-picture/265000/5 "2023-05-16T14:27:08Z")

</div>

> [@Canapin](#):
>
> 另外，[Custom Wizard Plugin 🧙](https://meta.discourse.org/t/custom-wizard-plugin/73345) 也许有帮助，但我从未使用过它，所以我不知道它是否能满足您的要求。

根据我的探索，这是可以的。您可以创建一个在注册时必须填写的向导，允许跳过，并在完成后设置“自动添加到组”。

> **""**
>
> 然而，如果 Discourse Automation 某天能够将徽章同步到组，那将是最方便的。🙂
