收藏 - 选择您喜欢的类别

大家好,

本插件允许用户选择他们喜欢的分类,并仅查看来自这些喜欢分类的主题。本插件是 此处 提到的想法的实现,并作为规范在 此处 起草。

如何使用

  • 用户决定最喜欢哪些分类,并将其标记为收藏。这可以从“分类”视图中完成。

  • 用户也可以从“用户偏好设置”视图中修改他们的收藏列表。

:warning: 由于 Discourse 插件系统的限制,更改会立即保存,“保存更改”按钮实际上不会对收藏分类列表产生任何影响。换句话说,如果您更改了列表但未按下“保存更改”,更改仍会被保存。

  • 现在,分类 :star: 收藏 包含所有收藏分类中的所有主题。该分类可以像其他任何分类一样访问(例如,从主页的下拉菜单中)。

安装

:information_source: 需要 Discourse 2.0 或更高版本。

请遵循官方说明:https://meta.discourse.org/t/install-a-plugin/19157。

包含本插件源代码的仓库位于 https://github.com/nbianca/discourse-favorites

反馈

我尚未发现任何错误。但是,如果您发现任何问题,请随时报告。

您的反馈备受珍视,将帮助我为所有人改进本插件。如果您有任何建议,请回复。:slight_smile:

28 个赞

Nice! :+1:
Can the favorites view be selected as a user’s home screen (like latest or categories) too?

3 个赞

Unfortunately that is not supported yet, but I am considering it.

7 个赞

Any progress on this? It would be a nice feature!

看起来有一个相当严重的问题——当我启用并重新构建时,重建过程会崩溃;一旦我注释掉这个插件,构建就能正常完成。

FAILED
--------------------
Pups::ExecError: cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-canned-replies 失败,返回状态码为 <Process::Status: pid 346 exit 128>
失败位置:/pups/lib/pups/exec_command.rb:112:in `spawn'
执行失败,参数如下:{"cd"=>"$home/plugins", "cmd"=>["git clone https://github.com/discourse/docker_manager.git", "git clone https://github.com/discourse/discourse-akismet.git", "git clone https://github.com/discourse/discourse-data-explorer.git", "git clone https://www.github.com/gdpelican/retort", "git clone https://github.com/angusmcleod/discourse-events", "git clone https://www.github.com/gdpelican/babble", "git clone https://github.com/discourse/discourse-canned-replies", "git clone https://github.com/team-melbourne-rgsoc2015/discourse-adplugin", "git clone https://github.com/discourse/discourse-solved", "git clone https://github.com/discourse/discourse-assign", "git clone https://github.com/discourse/discourse-staff-notes", "git clone https://github.com/davidtaylorhq/discourse-whos-online", "git clone https://github.com/discourse/discourse-spoiler-alert", "git clone https://github.com/discourse/discourse-saved-searches", "git clone https://github.com/communiteq/discourse-sitemap", "git clone https://github.com/discourse/discourse-cakeday", "git clone https://github.com/discourse/discourse-oauth2-basic", "git clone https://github.com/angusmcleod/discourse-question-answer", "git clone https://github.com/angusmcleod/discourse-locations", "git clone https://github.com/discourse/discourse-voting", "git clone https://github.com/nbianca/discourse-favorites"]}
3fba033b9027ed6955339e39aa83594c187de75004d5fa6836d443058c645a61
** 启动失败 ** 请向上滚动查找更早的错误信息,可能不止一条

@nbianca @blake I think this maybe needs to be updated to ‘broken plugin’ given my post above? Can anybody else confirm?

I am marking it as broken plugin for the time being, we need to decide longer term if we want this as a core feature or not.

6 个赞

FWIW, I’d like it as a core feature…

6 个赞

I whole heartedly agree with this guy +1

3 个赞

As recenty discussed as feature request, this functionality in core would be beneficial for multiple purposes.

2 个赞

Did you guys already decide on that? :slight_smile:

1 个赞

I’ve got at least one community that really needs this. It’s got hundreds of categories and people are likely to be interested in only a few.

4 个赞

it would be great to have this on core.

1 个赞

The current workaround is just to work in reverse, mute the categories you want suppressed from the home page.

4 个赞

Yeah, but mute seems more like to things you don’t like/hate.

Example:

I really like to know/see topics about plugins, feature and themes here, its my main choice when I log in. But If a mute the others 15 categories I wouldn’t have a idea about the whole community.

2 个赞

Thing is the plugin worked exactly the way mute works. Muting a category only removes it from home pages.

I am guessing you are asking for an extra favorites tab?

4 个赞

Yes. It would be a nice feature. :smile:

3 个赞

Using muting is really not intuitive for some use case:

  • A lot of categories are available but only a are few relevant for most people. With new categories popping periodically.
  • Wanting a new category to be created as muted for everyone but the few relevant users.
  • Wanting to check the muted status for all categories available / all subcategories of that specific category on the same page I can read their description (on the category page).

The star makes everything clearer and more intuitive.

Actually, without having to implement new rules and logic for a ‘favorite’ status, if the star was just a toggle for the muted status of the category, it would be already very handy. Or on the same UX maybe have 3 settings: muted (BG-secondary color star), displayed/normal (primary color star), or favorite (smiling shiny rainbow star).

It would also be very nice if admins could chose if both 1) the stars would be displayed, and 2) the favorite status is possible :

  • for all categories, through a global setting
  • for that category on the category setting page
  • for all subcategories on the parent category setting page

(Oh, and to continue the wishlist, if the star could be a parameter allowing to chose any FA icon instead, that would also be fun).

4 个赞

I’d be willing to put the work into this plugin to get it back on the road if there was backing:

Is there any appetite to co-sponsor that effort? I’d be looking to raise $700 from the community for a straight reboot (fixed, no additional features)

I know @Merlls_Rizzini is interested, any other support? @pfaffman, would that community of yours be keen to sponsor? Any other pledges?

5 个赞

@sam 这个想法有进一步讨论吗?它是作为 Discourse 的核心功能正在开发中,还是值得有人花时间修复这个插件?