主题作者

:warning: 已弃用,推荐使用 Topic List Author

:discourse2: 摘要 Topic Author 将更改 /latest 以及“分类和最新主题”主页的布局,在第一列显示主题作者。它同时适用于桌面端和移动端。
:eyeglasses: 预览 在 Discourse 主题创建器中预览
:hammer_and_wrench: 仓库链接 https://github.com/discourse/discourse-topic-author
:open_book: Discourse 主题新手? Discourse 主题使用入门指南

安装此主题组件

功能

设置

名称 描述
show author username 显示作者用户名而非个人资料头像
翻译 默认值
author 作者

:discourse2: 由我们托管? 主题组件可在我们的标准版、商业版和企业版计划中使用。

41 个赞

I recommend renaming this to Topic Author or Starter since creator may be confusing to some. Awesome theme, good work :+1:

6 个赞

Correct, I will rename it

8 个赞

It was exactly what I was looking for. But why to hide the other user’s images on desktop. Don’t you think there’s enough space to show the other images as well? Or if there’s an option to show those?

Thanks for working on this. Any chance you can also apply this to the /categories page, where the desktop category page style setting is “Categories and Latest Topics”?

This is now done, please update the theme component to see it in action.

I think that have more than 1 avatar (the author) in the first column can confuse users and dividing users into two columns, one for the author and one for the other users (maybe where it was originally) can be even more confusing.

You can do something similar

using this fork:

5 个赞

I am checking the preview of this component using the link in the first post but, it’s not working.

I can’t repro your issue even if I’m not logged in. The link https://theme-creator.discourse.org/theme/Dax/author works for me also if I open it in a new private window. Can you open the dev console on your browser and see if there are errors? Also, please try to open the link above using the safe-mode (https://meta.discourse.org/safe-mode) and disabling your current theme.

3 个赞

Now it’s opening correct but previously it wasn’t that’s why I reported it. Between great component, just want to know can be enable this for mobile only? As we already get the first image as author’s image in desktop.

Nope, but you can fork the original component on https://github.com/discourse/discourse-topic-author and delete the Desktop folder…

4 个赞

Okh, that’s a good workaround. But can’t this be an option in future versions?

@dax Thanks for your work on this component! It’s a perfect fit for our need.

I’m running into a small issue, though. The markup for the .author and .main-link elements have an extra " before class, which means my CSS for those elements isn’t being recognized.

Mmm… are you using other theme components? On my test-site it works without problem. The component probably do not works if you use other theme components as Avatar size and shape that manipulate the avatars.

1 个赞

Yes, I did have the Discourse Avatar Component active, but am still seeing the markup issue with that component deactivated.

Ok, try to update the theme component now, the issue should be fixed.

PS: while I was working on this component I tested it with the Avatar component and it seems that it works well on topics (it does not work on Latest because it is overwritten by the Topic Author component).

4 个赞

@dax Yep, that looks good! Thanks for the quick turnaround.

1 个赞

I noticed this component also changes the layout on the private messages list. Would it be relatively easy to change the topic list layout everywhere except the private messages list? For the private messages list I would like to use the default layout.

Hi @dax, just circling back here on the private message layout versus topic list layout. Is it possible to have the private message list display with the default layout?

你好 @dax,这个问题有更新吗?

1 个赞

是否可以为该主题添加一个选项,以保留下方显示的“用户”列?

3 个赞