게시물 목록 미리보기(TLP)

With the latest update to discourse , we are facing the issue of user portfolio feature not working. The button on the user card is gone and the page can’t be accessed.

Is the portfolio functionality deprecated?

Not at all, it’s just the usual Discourse core updates occasionally forcing compatibility changes. Fixed here:

https://github.com/merefield/discourse-tc-topic-list-previews/pull/50

If you think Topic List Previews is awesome & I did a great job, you can buy me a coffee :coffee:

1개의 좋아요

Thank you so much, it works again

1개의 좋아요

According to the plugin documentation, the “Topic List Featured Images count” can be set to “unlimited”.
However, in practice, it seems that the number of featured images is limited by the /tag/.json endpoint, which only returns a maximum of 30 topics.

Phenomenon observed:

  • For tags with more than 30 topics, /tag/.json only returns 30 topics.
  • As a result, the Featured Images display is limited to at most 30 images, even though the plugin setting is “unlimited”.
1개의 좋아요

Sounds about right. Silly description but sensible behaviour :slight_smile:

I will change the description to something more suitable.

Thanks for clarifying! I understand now that the 30-item limit comes from the /tag/.json endpoint itself.
I was wondering: would it be possible to either

  • display more than 30 featured images (by somehow fetching additional pages of the tag JSON), or
  • if that’s not feasible, still keep the display limited to, say, 10–30 images, but have them chosen randomly from a larger pool of topics (rather than always the same 30)?

I’m not sure whether this is technically possible within the current plugin or Discourse APIs, but I think it could make the display feel more dynamic. What do you think?

1개의 좋아요

It would need to be redesigned so as to successively load each “page” on demand.

PR welcome.

hi, i am a newbee here, your plugin is so wonderful and i really enjoy it, but i have a question, is it able to show the more than one thumbnail on one topic? let’s say, the topic contain 4 or more images, and i wish to show all the image on the topic card. tried research some theme component and dive on discourse doc, i can’t really find a good way to extract image from topic, the last option was using dicourse api. Really appreciate if you can help/explain/give some idea

1개의 좋아요

Thanks for your kind words.

Unfortunately at present it is not possible. It leverages core thumbnail code which only allows one to be chosen at a time.

However, at least it lets you choose which thumbnail and doesn’t restrict you to the first post.

It would be significant work to add the option of several thumbnails in part because you would need to pay particular attention to Topic List performance.

I would accept a high quality PR.

1개의 좋아요

Thanks for the swift reply.

U r correct. performance is headache, if using api to get topic.cooked field and extract it.

1개의 좋아요

Hi Rob - I’d love to highlight the OP Author using tiles in TLP for a little project I’m doing.

I’ve worked out that I can hide the other participants with this CSS:

.topic-footer .topic-users .inline a {
    display: none;
}
.topic-footer .topic-users .inline a:first-child {
  display: inline-block; /* Display only the first link/image */
}

However, I can’t work out how to make the OP Author’s avatar thumbnails bigger - certainly I can’t with CSS alone.

Can you suggest anything?

I don’t seem to be able to select thumbnails from posts other than the OP (with the sidecar installed). It would be very helpful sometimes to be able to do so!

1개의 좋아요

I’m afraid I do not have a lot of time atm, but try this:

.tiles-style .topic-users .inline .avatar {
  width: 34px;
  height: 34px;
}

that seems to do the trick on my site …

Thanks Rob!

I had already tried that, but unfortunately it gives fuzzy avatars. The problem is that it is pulling the low res (24px) files, and I want it to get the 48px files.

Being a rubbish dev, I can’t see where in your code (if anywhere) I could hack that.

you’ll have to fork and pull in higher quality versions then, but as you might imagine, there can be an awful lot of them so they are deliberately kept small to improve performance.

PR accepted to make it a setting.

I found a very beautiful forum and I want to make my forum have the same interface and functions, but I am not good at technology. Can anyone help me build a similar forum?:thinking:

:backhand_index_pointing_right: https://community.robotime.com/

I hope to achieve the same interface and functionality as it

:backhand_index_pointing_right: Topic List Previews (TLP)

This is the theme or plugin that may be used

I am happy to accept paid construction :smiling_face_with_three_hearts:

1개의 좋아요

Have you had a go at just installing the Theme Component? Let us know if you find any issues.

Yes, I installed it, but I have a hard time figuring out how to implement the appearance and functions of various forums. So I hope Discourse or someone else can help me implement these interfaces and functions, and I am willing to pay for it.

1개의 좋아요

선택 사항: 최신 게시글 발췌 및 내비게이션

TLP의 일반적인 작동 방식입니다. 토픽 목록에서:

  • 토픽 제목을 클릭하면 해당 토픽의 첫 번째 읽지 않은 게시글(첫 번째 게시글일 수도 있음)로 이동합니다. 이는 네이티브 코어 동작입니다 :+1: (정말 좋습니다! :heart: )
  • 썸네일이나 발췌문을 클릭하면 첫 번째 게시글로 이동합니다

이제, 몇 가지 추가 기능을 추가했습니다:

토픽별로, 해당 토픽을 편집할 권한이 있는 사용자(보통 작성자, 관리자, 그리고 TL4 및 모더레이터)는 몇 가지 추가 옵션을 사용할 수 있습니다:

  • 이 토픽의 항상 최신 게시글로 이동
  • 이 토픽의 첫 번째 게시글 대신 최신 게시글의 발췌문 표시

현재 이 옵션들은 모든 토픽에 대해 기본값이 FALSE로 설정되어 있습니다.

(원하는 특정 썸네일을 선택할 수 있는 기능과 함께)

이 기능이 유용할 수 있는 예시:

  • 패치 노트를 게시글별로 전달하는 경우 (최신 게시글이 매우 중요해짐)
  • 스태프 공지사항을 특정 토픽에 작성하는 경우 (최신 공지사항이 가장 중요함)

참고: 이 기능은 _sidecar 플러그인_도 함께 설치해야만 가능합니다.

https://github.com/merefield/discourse-topic-previews-sidecar/pull/176

https://github.com/merefield/discourse-topic-previews-sidecar/pull/177

(@Dimava 이 영역에 관심이 있으셨죠)

1개의 좋아요

Excerpts now support emoji’s:

https://github.com/merefield/discourse-topic-previews-sidecar/pull/178

No site-wide default?
Could’ve use one I guess

Though I’m not completely sure how it works, maybe gonna do some testing
I’m absolutely unsure what exactly I want