定制 clarkwinkelmann/flarum-ext-see-past-first-post 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

clarkwinkelmann/flarum-ext-see-past-first-post

Composer 安装命令:

composer require clarkwinkelmann/flarum-ext-see-past-first-post

包简介

Permission to let users see past the first post of discussions

关键字:

README 文档

README

MIT license Latest Stable Version Total Downloads Donate

Adds a new permission to Flarum to let users see past the first post of discussions.

Set the permission to "Members" to hide the content from guests but show them to logged in users. A message will invite the user to log in when they view the discussion.

If you set the permission to something else than member, a different message is shown saying the user is not allowed to see the discussion content. You can customize the messages with the Linguist extension.

The permission can be applied to individual top-level tags. Due to limitations in the Flarum tag system, if the discussion possesses any tag that isn't explicitly restricted, the user will be able to see the posts.

Two additional settings allow customizing the restrictions even further:

  • Hide comment count on discussion list: this will hide the total post and recipient count from the API and the homepage.
  • Hide last post user and date on discussion list: this will hide the lastUser, lastPost relationships, last post date and number as well as the user last read date and number from the API and homepage. It will also hide the tag lastPostedDiscussion relationship and last posted date from the API and tag list.
  • Hide first post as well: this will hide the firstPost relationship from the API and homepage, and also hide post with number 1 when browsing a discussion, effectively hiding the discussion content in full.

Installation

composer require clarkwinkelmann/flarum-ext-see-past-first-post

Support

This extension is under minimal maintenance.

It was developed for a client and released as open-source for the benefit of the community. I might publish simple bugfixes or compatibility updates for free.

You can contact me to sponsor additional features or updates.

Support is offered on a "best effort" basis through the Flarum community thread.

Sponsors: HereWeLink, FlarumTR

Links

统计信息

  • 总下载量: 1.78k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 2
  • 开发语言: TypeScript

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-02-25

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固