Discourse类别封锁

This plugin allows you to restrict access to topic pages in a category. Topic titles will still show up in topic lists, search, user activity & digest emails. This is a great way to advertise the activity in a “members-only” category, which may charge for access.

It IS NOT designed to keep the contents of the category 100% private - if someone is determined enough they will be able to piece together the content from search results.

Each category has a couple of new settings in the Security tab:

“Locked down” topics will show a (configurable) icon in the topic list if the user does not have access:

Once clicked, unauthorised users will be redirected to a defined URL (e.g. your payment gateway). This link can be internal or external. The static pages plugin works great for this.

Plugin repository: https://github.com/paviliondev/discourse-category-lockdown

Thanks to @DiscourseMetrics.com for funding the development of this plugin.

Authored by @david
Now maintained by Pavilion

50 个赞
Login required to see topic info
Partial view of hidden content
Private category
Making topics private and visible for not logged in users
Is this new category access a feasible feature? "see topic title"
How do I allow people to see categories but not access topics?
Permissions for users not logged in?
Enabling category previews for restricted paid access categories
Share single topics / categories with unregistered users
Prompt subscription to groups for non members
Discourse Memberful integration
Asking for access to a private category
Premium Categories Visibility
Update and add features to the Category Lockdown plugin
Only register users can see more
Guest Gate Theme Component
Make chats visible to "reply"
Private Topics Plugin
Charge one-time fee to post in a category?
Show topic title even if you don't have access
Partial view of "private" content
Can't load topics
Public community, private community, or a mix? (context: migrating from Facebook)
Latest topics on homepage with only members to read in detail?
Private discourse and crawling, can it happen?
Chat compatibility with the category lockdown plugin
Paid Groups
Paid Groups
Chat compatibility with the category lockdown plugin
Paid Groups
I need a theme to promote some hidden categories
Ability to show topics in a category but not open?
Gated Topics in Category
Monetisation: how to partially hide posts to non-members?
Allow to hide part of a post content with "login to see" or "reply to see" function
Preventing non-registered users from viewing posts
Allow setting visibility of Event attendees
Major upgrade -- best practices?

just checked in on this plugin (which looks exactly like what i’ve been looking for) and it looks like the build is failing. anyone using in production?

what should be put for Groups?

想问一下:为什么这个插件在 #plugin:broken-plugin 里?我们使用它没有任何问题。

1 个赞

不太确定,但 @david 在 2019 年中这么做可能是有原因的?

还记得 2019 年吗?:woozy_face:

1 个赞

嗯,我想我把它移走了,因为

既然听起来它现在能正常工作了,我就把它移回 #plugin:slight_smile:

我不再使用或维护这个插件了,而且它也不是官方插件。如果有人愿意接手维护,请告诉我。

8 个赞

我愿意接手,因为我正在为 @davidkingham 在此方面做一些工作。

9 个赞

太好了,感谢你接手此事 @fzngagan。我已将原始帖子重新分配给你,并已开始 GitHub 转移。

5 个赞

David,非常感谢你提供的所有内容。:slight_smile:

1 个赞

我刚刚安装了这个插件,发现它允许用户在已锁定的分类中创建新主题。这个问题能修复吗?

1 个赞

您需要更改类别的安全设置,使所有人都能“查看”,但只有属于正确组的人才能创建主题。以下是我的设置方式:

2 个赞

啊,明白了,所以我把“所有人”改为“仅自己可见”,然后授予我的“付费会员”组完整权限。懂了,谢谢!

5 个赞

随着 Discourse 订阅 插件的开发不断推进,我非常希望能看到它与“分类锁定”(Category Lockdown)插件实现紧密集成。

目前使用最新版本进行测试时,不属于指定组的用户仍然可以看到该分类及其中的帖子。

插件已激活,分类安全设置如下:

如果取消“所有人可见”设置,非组成员用户就无法再看到该分类。因此,其行为表现得好像“分类锁定”插件未激活一样。

日志中没有显示任何错误。是否可能是我遗漏了某个设置,导致无法正常工作?

4 个赞

是的,这是正确的,因为:

2 个赞

current_member 组的准入限制是什么?

我运行的论坛同时启用了这两个插件,上次检查时,私有组功能正常。

2 个赞

哎呀!:man_facepalming: 我竟然忽略了显而易见的问题,没有勾选类别设置底部的这个选项:

现在一切正常了!

3 个赞

订阅插件应该已经实现了这一点。它与 Discourse 群组紧密集成,而群组又与类别安全设置紧密集成。:wink:

2 个赞

我一直在寻找一个几乎完全实现此功能的插件(而且我都没意识到它已经存在了!)。不过,你能澄清一下这句话的意思吗?是不是仅仅指该帖子会被 Google 索引?

如果用户不在该群组中,或者未登录,当他们访问该帖子时,是否会被始终重定向到支付网关(或任何指定的链接)?

1 个赞

是的,但主题条目和部分相关内容仍会出现在搜索结果中。如果您可以接受这一点,那就没问题了。

最近,我添加了一个功能,允许按类别进行重定向。

如果您需要更全面的功能,可以参考:Discourse Subscriptions Plugin

3 个赞

这对我来说比 Discourse 订阅更理想,因为我在 WordPress 中使用 SSO 进行会员管理。我会试试看。

1 个赞