Topic List Thumbnails

Have him try on mobile with wifi disabled so he’s not going through his home network, but the cellular network. This will eliminate anything on his network from interfering.

But if you have tried “different ISP” then maybe not.

2 Likes

I can’t get this to work anymore, did this revert perhaps?

Also, the feature is not easy to discover for users. Would it be possible to add an option to select the thumbnail to the ‘size selection’ in the preview?

image

5 Likes

Thanks Jeff, he has tried hotspotting to his phone, and at a friends house with a different ISP. I thought it might be a CDN issue so I tried clearing the CDN cache which did not help him. I also tried impersonating him while using a VPN in Atlanta where he is from which did not help either. I’m not sure what else to try.

2 Likes

3 posts were split to a new topic: Caching for tag topic lists?

It’s still working for me. Can you share some more details about what you tried, and what result you’re seeing? This is what I have in my test OP:

![image|690x460](upload://1lGVHoB5KKnftUZoEYVgANxKdWL.jpeg)
![image|612x500|thumbnail](upload://cILOby5v31IEtJtbOEEDgXQPZ7Z.jpeg)

and the second image is correctly selected as the thumbnail.

I agree that would be nice, but I don’t think it would be needed for most sites. I think it would make a great separate theme component.

3 Likes

Ha, that’s embarrassing, of course it does work now… :facepalm:

3 Likes

Hi @david,

I have the following requirement and maybe you can point me to how to achieve this.

Sometimes we have a topic that we want to share via social media and we prepare an image for it that should be used as thumbnail and for the og:image tags, but we don’t want it to be visible inside the topic.

How could we realize something like this e.g. add “hide” to the sizes and then a class is added to the image container that applies “display: none;”?

![image|612x500|hide](upload://cILOby5v31IEtJtbOEEDgXQPZ7Z.jpeg)

3 Likes

Maybe you could use Generic bbcode wrapper for theme components to do something like

[wrap=hidden]
  ![image|612x500|hide](upload://cILOby5v31IEtJtbOEEDgXQPZ7Z.jpeg)
[/wrap]

Then some CSS like

div[data-wrap="hidden"]{
  display: none;
}
7 Likes

Oh, did not know about this one. Neat, thank you!

2 Likes

The alert-info banner overlaps the thumbnails, is this by design or a bug?

3 Likes

It’s somewhat by design. Normally, that bar sits on top of the column headings in the topic list. The alternative would be for the bar to “push down” all the topics when it appears, which would make the entire UI jump down, and could be quite jarring.

I’m not sure why there is a ~1px gap on the right hand side of the bar in your screenshot. That could be an issue with the component, or it could be related to your custom theme CSS.

4 Likes

Is it possible to show the number of likes on the thumbnail cards + make it clickable so images can be liked straight from the gallery view?

4 Likes

list categories is not working on mobile mode even when check Enable thumbnails on mobile devices ?

2 Likes

Hi, it is pretty cool.
Is it possible to use the hotlink figure (from imgur for example) as thumbnail?

2 Likes

hi I just set the blog category to use list categories, but it shows in every categories, have I did some wrong set step?

2 Likes

Default thumbnail mode should be set to none if you don’t want to use it everywhere.

The other settings will work as expected

2 Likes

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.

5 Likes

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.

2 Likes

It’s a Theme Component, they can just choose another theme without this component. No code required, just name the Themes appropriately.

6 Likes

That worked well, thank you!

4 Likes