主题作者

There seems to be an unexpected bug when used with Who's Online plugin.
That is, if the last post’s author of a topic is online, it’s showing as if the topic’s author itself is online on the /latest and Categories & Latest Topic pages.

1 个赞

Hi @dax
Thank you so much for your awesome theme component.

I wish there was a chance to translate the “Author” term!

3 个赞

Following up on this as well. Is there any way to translate it?

1 个赞

Now yes, it is possible to translate. Update the component to the latest version.

2 个赞

BTW I reduced the width from 70px to 50px. It looked better this way. How about removing that css from the html tag itself and rather create a css class? That way it’s easier to override the CSS in an update-safe manner. I had to change the theme component’s code to adjust width. I will have to reapply those changes manually after updating it.

Alternatively add it as a setting for the theme component backend. :wink:

keep up the good work, the component is great!

PS: Would love to have a similar component but for a “Latest Post” column like in Sam’s Minimal Theme or MD Topic List. This wish comes my community directly.

1 个赞

There was a reason for the width to be hardcoded, but now I can’t remember :thinking:.

In case I will make the change when I have some time :sweat_smile:

3 个赞

I have the same doubt as @thegurjyot, I’d prefer to have a separate author column and another one for all other posters, is there a simple change I can make to achieve this?

1 个赞

Just make a comment in the code next time when you do something specific :stuck_out_tongue:

#Dev Notes: I did this cause the interwebs told me I should

1 个赞

I am still looking forward for a mobile only option in this theme component. Maybe you’ll implement in future update.

4 个赞

Tried something pure css from this topic but seems that would not work now:

Maybe not something your want but you can just comment out everything on Desktop section. (CSS and )

I create a pull request to fix behavior on mobile view
https://github.com/discourse/discourse-topic-author/pull/3

  1. Fix invalid profile url
  2. Should show user-card on first click rather than go to profile directly
2 个赞

Hey @dax

is there any way to disable the theme component in a specific category or view?

I am testing the Topic List Preview and it prevents TLP from displaying thumbnails when both components are activated at same time. The issue appears for TLP plugin and theme component as well.

It is not recommended to use this component in conjunction with other plugins/themes that heavily modify templates.

2 个赞

Hi! I think this is a great component.

Just one quick question: Does it show the avatar flair image? I have installed this theme component in my local discourse installation. While I can see the flair when entering the topics, it does not show in the list of topics (where the theme component changes the layout).

Thanks!


I reply to myself: It is not implemented in the component. I forked and played a bit with the code but I’m not sure whether I can retrieve the primary group (and the flair parameters) from the topic creator. Any hint on that @dax ? Thanks again!

1 个赞

When using this together with the “Topic List Previews” plugin, the “Author” column shows the topic title and “Topic” shows the users, even in categories where no Topic List Preview features are enabled.

1 个赞

在消息列表中是否可以完全禁用主题组件?

您好 @dax,我注意到这个主题组件在最近一次 Discourse 更新后停止工作了。


忘了这件事,我卸载后重新安装就好了。谢谢!:pray:

1 个赞

@dax 嘿,这个还在维护吗?如果还在维护,我们能否添加一个选项,用名称代替图片,并将该列移到主题名称的右侧?暴雪有这个(https://eu.forums.blizzard.com/en/wow/c/wow-classic/wow-classic-discussion/265),看起来很棒。

3 个赞

我使用这个组件已经有一段时间了,并结合了主题预览插件。

现在主题预览已被弃用。
有一个新的 discourse 组件叫做主题缩略图,它负责显示第一张图片的缩略图。

问题是它与您的组件不兼容,如果我激活您的组件,我在任何类别中都看不到缩略图。

能够将两者结合起来将是很好的。

对我来说,理想的情况是,如果帖子有缩略图就显示缩略图,如果没有缩略图就显示头像。
但不知道这对您来说是否可能。

添加一个选项来选择作者主题适用的类别和标签也将是很棒的,这与主题缩略图的功能类似。
这样您就可以在不同的类别中激活两者,而不会发生重叠或冲突。

现在我不得不禁用这个组件,以便能够显示缩略图。

感谢您的工作。

3 个赞