添加点赞列

:discourse2: Summary Add Likes Column adds a dedicated column for Likes to the Latest page of your site.
:eyeglasses: Preview Preview on Discourse Theme Creator
:hammer_and_wrench: Repository Link https://github.com/discourse/discourse-like-column
:open_book: New to Discourse Themes? Beginner’s guide to using Discourse Themes

Install this theme component

Features

Samples

  • Before:

  • After:

:discourse2: Hosted by us? Theme components are available to use on our Standard, Business, and Enterprise plans.

Last edited by @JammyDodger 2024-06-11T08:09:55Z

Check documentPerform check on document:
33 个赞

The likes for non staff show in this columns when whispers are used:

there is only the topic to see for users but if you are staff there is 13 posts.


Staff:

image


Non-staff:

(However 16 likes still appear)

4 个赞

I was wondering if there is a way to rearrange the order in which the columns appear? So that likes showed up first, then replies, etc.

1 个赞

我注意到“点赞”列只统计心形反应,而不统计竖起大拇指等。有没有办法包含特定的表情符号类型(抱歉,我不知道 CSS)

编辑:这里有另一个帖子:

2 个赞

目前没有办法做到这一点。这需要改变 reactions 插件的工作方式。

1 个赞

有计划分享你们正在评估的选项吗?

只是好奇,这对我们的社区来说是必须的,并且可以进行讨论和贡献:)

1 个赞

我又来了 :sweat_smile: 随着 Reactions 插件的更新,有什么计划来更新这个列?/ Reactions 列的更改是否与这个 Likes 列相关联?

Discourse Reactions - 插件 - Discourse Meta

编辑 - 我刚意识到只是那个帖子的新评论,而不是新插件,我的错 :confounded: :woman_facepalming:

不错的组件,

我希望能够选择包含/排除哪些类别。

现在这是一个全局设置,但在某些类别中,我不想看到帖子的点赞数。

1 个赞

您好,

此扩展程序尚未扩展到移动主题。

一个简单的爱心 :heart:1 旁边带有数字会很好看。

1 个赞

那是一个很酷的TC

不过,如果能用“ 0 :heart:”代替空白处就好了。如果可能的话,也显示其他人的反应图标。

我在此主题中遇到错误:

[THEME 109 'Official: Add Like Column'] 为防止测试中出现错误,请在 `modifyClass` 调用中添加 `pluginId` 键。这将确保修改只应用一次。

看起来问题出在这里:

2 个赞

您好
这个组件很有趣,但它与 discourse-theme-battle-axe-v2-common 结合使用时会产生冲突。

image

我在浏览器开发者控制台中发现了一条信息:

[THEME 59 ‘添加点赞列’] 为防止测试出错,请在 modifyClass 调用中添加 pluginId 键。这将确保修改只应用一次。

只是想提请注意——虽然我无法自己修复它。:see_no_evil_monkey:

1 个赞