# How to implement the function of logging in to view content, in order to better attract users to register

**URL:** <https://meta.discourse.org/t/how-to-implement-the-function-of-logging-in-to-view-content-in-order-to-better-attract-users-to-register/279350>\
**Category:** Product Support\
**Created:** [2023 年9 月 18 日 06:29 UTC](https://meta.discourse.org/t/how-to-implement-the-function-of-logging-in-to-view-content-in-order-to-better-attract-users-to-register/279350 "2023-09-18T06:29:00Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

作者： ![go\_ahead](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/go_ahead/32/254371_2.png) [@go\_ahead](https://meta.discourse.org/u/go_ahead)\
发布日期： [2023 年9 月 18 日 06:29 UTC](https://meta.discourse.org/t/how-to-implement-the-function-of-logging-in-to-view-content-in-order-to-better-attract-users-to-register/279350/1 "2023-09-18T06:29:00Z")

</div>

如题，我在论坛里搜索，只查到更改类别的安全性，但这样只会使全部类别都不可见，并不是我需要的功能。

 ![image](https://global.discourse-cdn.com/meta/original/4X/5/f/b/5fb261425a73bfba8b19b101b8f0dd163071b6d9.png)

我的使用情景是：未注册用户可以查看一部分帖子内容，隐藏部分的内容只能登录才能查看。或者注册用户，需回复帖子才能查看。

这是一个吸引注册的手段，也是防止大部分的伸手党。

类似于

 ![image](https://global.discourse-cdn.com/meta/original/4X/0/b/1/0b196874c717762d9d52d91b91ef3c7e0c1703b9.png)

---

_[View the full topic](https://meta.discourse.org/t/how-to-implement-the-function-of-logging-in-to-view-content-in-order-to-better-attract-users-to-register/279350)._
