Default thumbnail mode should be set to none if you don’t want to use it everywhere.
The other settings will work as expected
Default thumbnail mode should be set to none if you don’t want to use it everywhere.
The other settings will work as expected
I don’t want to be annoying, but I’m curious if this could be considered? We feel that liking from a thumbnail is a valid use case (you can judge the image without seeing the full version), and that it would greatly increase engagement for the more ‘instagram-oriented’ visitors.
Hi folks,
great components. I want to make it so that the thumbnail shows the LAST image of a topic, not the first one provided by the topic creator.
I looked through the code and found the topic.thumbnails decorator but I cannot reverse engineer how this is created so that I can build logic myself to get the last image in that topic.
Can anyone point me to docs on how to extend/build decorators for the topic?
Discourse is amazing!
Thank you
It also is great to add a User Preference so that users can control the list types themselves. And also make this an optional thing assuming some forum owners wouldn’t want that. We want that option though.
I could build it and rais a PR I guess.
It’s a Theme Component, they can just choose another theme without this component. No code required, just name the Themes appropriately.
That worked well, thank you!
如果它位于主题设置(默认禁用)之后,那么我同意这对于某些网站来说将是一个不错的选择。 pr-welcome
在 @jrgong 论坛上,图片在第 10 行之后无法加载。这似乎与图片的实际数量无关(即,总是第 10 行,即使只有少数主题有缩略图)。
没有网络错误,控制台也没有任何信息。有什么想法吗?
我见过当列表中的最后一个主题通过 CSS 隐藏时(例如,有人添加了 CSS 规则来隐藏已关闭的主题)发生这种情况。这里会发生这种情况吗?
如果您能发送链接,我很乐意快速查看一下。
@jrgong 该主题当前处于预览模式,因此非用户无法重现(他们无法 preview_theme_id)。是否可以暂时启用该主题以供 David 查看?
快速更新:我们发现是一些非官方插件导致了这个问题。一旦我们确定了具体是哪个插件,我们会在此处更新 ![]()
因此,这甚至不是另一个插件。这是预览模式中的一个错误(?)。
当您在预览模式下打开“主题缩略图”主题组件,而您当前选择的主题尚未包含它时,就会出现懒加载中断。在稳定版上完全可以重现此问题,尚未在 beta 版或 tests-passed 上尝试。
有没有办法不放大微小的图像,例如 30x30 像素?它们会随着传入的电子邮件一起出现:
![]()
尝试过使用 CSS,取得了一些效果,但理想情况下是完全跳过它们……

您还可以使用“spoiler/hide details”来隐藏图片作为缩略图:
结果是一个小三角形 ![]()

更新:
您甚至可以模糊它:
[spoiler]
[details=""]

[/details]
[/spoiler]
抱歉,如果之前问过,我搜索了一下但没找到。
我想知道是否可以实现点击列表模式下的缩略图直接跳转到帖子的第一条消息?
感谢您的辛勤工作 ![]()
这似乎正是我想要的:一个简单的插件主题列表预览替换,因为我尝试过将它作为主题组件替换但无法正常工作,而且它充满了我不需要的选项。
我们只使用该选项在列表视图中显示每个主题的第一张图片的缩略图,而不是作者的头像(在左侧)。
但我已经启用了这个 TC 并将列表作为缩略图默认模式:
但它没有显示缩略图,在每个页面上仍然显示作者的头像,例如在这里的最新页面列表中:
我一定有什么地方理解错了。
我应该如何配置它?
是否有详细的配置指南?
也许是因为它只显示新帖子的缩略图……在这种情况下,是否可以为旧帖子重新创建缩略图以与它们一起显示?
“作者”列并非来自 Discourse 核心,也不是来自 topic-list-thumbnails 主题组件。
您是否仍然安装了旧的 topic-list-previews 插件和/或主题组件?如果是,请确保将其完全卸载。
谢谢你,大卫
不,我在 app.yml 中删除了 topic-llist-thumbnails,并重新构建了启动器。
我也从主题组件中删除了 topic-list 组件。
这些是我的当前组件:
以及 app.yml 钩子:
hooks:
after_code:
- exec:
cd: $home/plugins
cmd:
- git clone https://github.com/discourse/docker_manager.git
- git clone https://github.com/discourse/discourse-chat-integration
- git clone https://github.com/discourse/discourse-math.git
- git clone https://github.com/discourse/discourse-solved.git
- git clone https://github.com/discourse/discourse-staff-notes.git
- git clone https://github.com/discourse/discourse-assign.git
- git clone https://github.com/discourse/discourse-checklist.git
# - git clone https://github.com/angusmcleod/discourse-topic-previews.git
- git clone https://github.com/discourse/discourse-data-explorer
您是否安装了其他第三方插件?可以分享您的网站链接吗?
您是否安装了 Topic Author
我已在回复中更新了它。
网站:
是的,主题作者已安装,但也在其他地方使用。
在主题列表预览中,图片已显示。