Show Original Poster Avatars

:discourse2: Summary Show Original Poster Avatars is a simple theme component that shows the profile picture of the original poster (OP) on the mobile topic list, rather than the latest reply.
:hammer_and_wrench: Repository Link https://github.com/discourse/discourse-mobile-op-avatar-component
:open_book: New to Discourse Themes? Beginner’s guide to using Discourse Themes

Install this theme component

I turned this into a component because it’s a common request, but keep in mind that this isn’t the default because it means the profile picture shown next to a topic will rarely change and could make your site look somewhat stale (to contrast, last poster updates often).

28 Likes

That’s exactly what I needed. Thank you so much for creating this.

4 Likes

This is neat! Thank you!

Is there a way to apply the theme on specific categories only?

1 Like

Thank you. Just installed. Was requested by many users in our community and just found your component.

1 Like

Nice component but I would like to have in both side mobile and desktop

Regards.,

3 Likes

Some user’s report a problem:

Already read topics not marked as such on mobile.,

Once you read a topic and all their replies, when you return back to the list of all the topics, the title is in light gray for those topics.

  1. Works on Discourse app whcih is a wraper.
  2. Doesn’t works in REAL browser like Vivaldi, Firefox and Chrome, on Android.

Regards.,

Just to make this more clear because I didn’t get it at first: what @hhlp is saying is that this theme component causes this bug. That’s not a mis-directed report about something unrelated. :slight_smile:

1 Like

Hey, it seems this theme component doesn’t work well with the Who’s Online plugin

When i check my mobile view i get this

on desktop i get

As you can see on mobile it’s saying that F150Chief is online (represented by the green circle), but actually it’s the circle saying i am online but around F150Chief’s avatar.

Not sure if this is an issue that would need to be fixed on Who’s Online or on this Theme Component?

I think this is because Who’s Online shows the online indicator on latest poster and not original poster. This is instead Who’s Online related request.

For now if you use original poster shows instead latest poster than you have to disable this setting from Who’s Online plugin. So if the latest poster is online in a topic than it will shows the indicator on topic list avatar even if the avatar is the original poster.

1 Like

This is great, thank you! Is there a reason that it’s mobile-only? I’d like to have the same thing for desktop mode.

With that said, now that I’ve installed this component and seen the theming system in context (it’s very slick!), I think I could work out how to make a custom version which does desktop + mobile.

1 Like

BTW: The code for this theme component is outdated and doesn’t contain the following code, which prevents bulk-select functionality for admins on mobile.

I opened a PR to fix this, hope you will review it

4 Likes

Thanks @Lhc_fl! I’ve merged your PR.

4 Likes

I also have the same question as @hhlp and @joellabes. Love this on Mobile and wish it worked on Desktop too. Is that a difficult change?

@joellabes said he already got it working locally … Joel, any chance I could entice you to make a PR for the upstream repo? :innocent: :heart:

2 Likes

Hi @petermarkley, :wave: if you’re interested, my Topic List Author theme component does this for both desktop and mobile, and also adds options for author column placement.

3 Likes

@Lilly Exactly what I needed, thank you!

1 Like

I only said I thought I would be able to work it out - I never actually did anything. Glad that Lilly has got you covered!

2 Likes