注册时选择群组和关注的类别

I know there can be custom user fields, but is there any way of sorting out group requests and category watching from the signup form?

(Either the normal Discourse signup form, or using a plugin, or separately using the API?)

Thanks.

2 个赞

I guess there might be two possibilities.

  1. A Discourse plugin that changes the sign up process.

  2. A separate script that uses the Discourse API to sign up and simultaneously make a group request and/or watch certain categories.

I’m pretty sure it’s not possible using the standard settings.

Am I on the right track? Thanks.

1 个赞

I’m not sure what you mean by “sorting out” but this might be the droid you’re looking for :grin:
Discourse-automation
even if sign-up is not in the Available triggers list… but I guess maybe sign-up is also user added to group TL0 ?

4 个赞

I believe this plugin will work.

4 个赞

The Custom Wizard Plugin looks promising. I’ll have time to try it out next month!

It looks like a wizard could be triggered straight after the user signs up, allowing notification levels to be set per category.

The plugin also allows a user to be added to a group. I’m not entirely sure how Discourse groups work, or how the plugin works with a private group (not publicly visible and/or users can’t join freely) - maybe it sends a group request. Alterernatively, the plugin allows a private message to be sent, so I could use this as a group request.

I’ll look at Discourse Automation too.

Thanks to both of you.

3 个赞

Your welcome. If you figure out a template for first time set Up for users to pick categories let me know haven’t had much time to dig deep.

1 个赞

我认为现在是(至少,“首次登录”足够接近了):

自动化插件是否也能根据自定义字段为每个类别设置监视状态?

我认为目前使用自动化无法实现这一点。不过,我认为我们有一个新的 API 端点,现在可以让管理员设置用户的通知级别,这可能有点用:

(不过,如果他们被自动添加到某个组,你也可以设置该组对类别和标签的默认通知,并以此方式设置?)

2 个赞

在过去一年左右的时间里,这种情况是否有所改变?

(我希望注册页面上的潜在用户能够勾选某些类别来决定“观看”哪些类别。)

2 个赞

这是一个有趣的用例。
您可以使用“通过用户自定义字段将用户添加到组”自动化脚本,然后根据需要为组设置“类别默认通知”。

1 个赞

谢谢。我会对此进行调查。它确实存在一个潜在的缺点,即当人们更改其通知设置但仍保留在原始组中时可能会造成混淆。

现在可能了吗?我看到自动化现在是 Discourse 本身的一部分,所以也许在这个过程中得到了改进。

1 个赞

自动化插件现在已与核心捆绑在一起,但它仍然是同一个插件。快速查看一下当前的脚本和触发器,似乎没有什么新东西可以帮助解决这个问题。:person_shrugging:

虽然为组设置默认通知级别的功能仍然是您可以利用的核心功能,特别是与现有的“通过用户自定义字段将用户添加到组”的自动化功能相结合(我认为您需要为每个组使用单独的自定义字段)。

您尝试过吗?如果尝试过,您发现了什么问题?

2 个赞

我必须承认我没有试过,因为有这个顾虑:

为此,与其用自定义字段、群组、自动化等来混淆,不如在注册后将新用户发送到 /categories 页面,这是否是一个可行的选项?使用这个主题组件 https://meta.discourse.org/t/categories-tracking-toggle/207150,我认为你应该能够将类别通知级别选项添加到那里的类别中,他们可以逐个选择他们想要的。
你可能还需要在那里添加一个额外的信息横幅来提供提示。


这让我想起了 默认静音所有类别 的设置,人们需要选择一些类别来取消静音/关注等,以避免出现空白的最新页面。我认为这不是一个特别常见的设置,但可能有一些帖子可以提供他们如何处理的技巧?

1 个赞

再次感谢。我不太想使用它,因为我认为这个问题的答案仍然是“否”:

2 个赞