Discourse용 Reddit 스타일 테마

Odd, it works for me:


It’s not part of the site texts. It’s part of the theme.

Go below where all the related translations are located:

I understand it might be confusing!

1개의 좋아요

I feel so stupid now, been so used to using the site texts, didn’t even realise they were there. Thankyou so much :slight_smile:

1개의 좋아요

Awesome work! Is there any way I can add a image background to the theme at all?

1개의 좋아요

Hey - I really love the theme. I think it really works well for encouraging discussion and showing media.

Two things I’m trying to solve for (in attached image) and curious if anyone has suggestions. Keep in mind, I’m new to hosting a discourse community. I’m self-hosted.

  1. YouTube loads beautifully in the post itself, but I only get a thumbnail in the post preview on the homepage. I’m sure this is a performance play potentially but is there a way to make it to where it would actually load the video so you could watch directly from the home page on the topic preview? I understand the trade off that it’s less likely someone may click into the topic to engage in the discussion, so I can see why this was an intentional choice but wanted to see what the options are there.
  2. The top post in my screenshot has a poll as the first thing on the post, but the poll doesn’t get shown on the topic preview. Can this be changed to show polls just like images (or the Youtube thumbnail in the above example) - essentially make it a media type that would be displayed in the topic preview rather than having to click into the topic?

Thank you so much in advance for the guidance.

2개의 좋아요

I would be interested in that too!! It seems to be possible here.

It’s somewhat possible, but has a lot of shortcomings… if a youtube video is posted as the featured link (i.e., the URL is entered as the title of the topic), which it appears it is in your screenshot, then the URL is available in the topic list and this can be used to embed the video (this will take some additional work in the theme)

The shortcoming is that if the link is simply posted in the body of the first post, it doesn’t get picked up as a featured link… and Discourse would still grab the thumbnail, but the video URL wouldn’t be available on the topic list. So it’s almost a hidden feature.

Also each video provider would need some custom logic in the theme to support embeds, so it wouldn’t work automatically for every video.

Generally this is something a custom plugin could do better. A plugin could check for video links in the original post and pull them out as the featured link automatically.

This is also fairly tricky because of similar issues, at the topic list level we have no idea if the original post has a poll… we don’t serialize any data about it. We could maybe check for poll in the excerpt, and then try to fetch the data from the topic as a separate request… but this would only work if the poll is at the top of the post and may have some performance issues.

A custom plugin would also be able to handle this better.

Thank you! This is a helpful response. I’ll look into some potential solutions for this based on what you suggested. Ultimately, may be too big of a lift for me to attempt on my own but I might give it a go.

If I come up with a solution that might help others on that, I’ll share it. I see the challenges for sure though, and it may be a “is the juice worth the squeeze?” sort of situation.


When category logos are set, only the logo image is displayed at the top.

If the topic post has code fences (triple backticks), the topic list preview has a rectangle that says ‘No Glyph’ in its place.

This happened here on Meta.

1개의 좋아요

Hi everyone, I met the same problem: Theme is not center when wide screen higher than 2560px. Thanks

Hi arkshine, your theme is not center

Anyone have some examples of this in mobile?

새로고침 후 작성기를 열 때마다, 무시 버튼을 눌러도 계속 'Draft is being edited in another window. Please reload this page.'라는 오류가 반복적으로 발생하고 있습니다.

간단히 살펴본 결과, 테마가 /drafts.json 요청에서 시퀀스 키를 보내지 않거나, draft_key가 잘못되었을 가능성이 있어 보입니다.

혹시 이 오류를 경험하신 분이 계신가요?

2개의 좋아요

이 테마가 활성화되지 않은 상태에서도 이 초안 오류가 여전히 발생합니까? 아니면 테마가 어떤 이유로 오류를 일으키고 있다고 의심합니까?

3개의 좋아요

죄송합니다. 더 자세히 살펴본 결과, 문제가 생긴 건 테마 자체가 아니라 방치된 테마 컴포넌트였네요 :man_facepalming:

이 놀라운 테마를 가지고 이것저것 시도해 보고, 꽤 오랫동안 사용해 왔습니다. 제가 변경한 내용을 공유하고 싶어서 이렇게 글을 남깁니다.

  1. 토픽 목록 위쪽에 있는 주제 생성 버튼을 제거했습니다. 이 버튼이 사람들이 잘못된 카테고리에 게시글을 올리는 문제를 일으키고 있었거든요. 대신, 헤더에 “Create Post” 메뉴 링크를 추가했는데, 방법은 다음과 같습니다.
  1. 오른쪽 사이드바를 쉽게 설정할 수 없다는 점이 정말 마음에 들지 않았습니다. (제 제안은 오른쪽 사이드바 블록을 코어 테마의 기본 기능으로 추가하는 것입니다.) 저는 다음 코드를 사용하여 이를 숨겼습니다.
.custom-right-sidebar {
        display: none;
}

그리고 다음 플러그인을 설치했습니다.

  1. 그 후, 사이드바를 고정하고 스크롤할 수 있도록 하는 테마 컴포넌트를 만들었습니다. 레딧(Reddit)과 비슷한 방식입니다. 토픽 페이지에도 이 기능을 추가해 보았지만, 조금 산만하게 느껴져서 결국 제거했습니다.

  2. 토픽 목록에서 답변 옆에 좋아요(Likes)를 추가하고 스타일을 적용했습니다.

이 기능들의 예시는 데스크톱에서 https://www.carptalk-online.co.uk/ 사이트를 방문하면 확인할 수 있습니다.

2개의 좋아요

잘했어! :clap:

참고로, 그녀가 물고기를 들고 있는지 돼지를 들고 있는지 구분이 안 돼 ㅋㅋ

1개의 좋아요

아마도 FishPig일 수 있겠네요? :rofl:

1개의 좋아요

이 코드를 추가한 이유가 있나요?

.d-combo-button.topic-create-button__combo {
display: none;
}

좋았던 기능인데, 깔끔해 보이던데

1개의 좋아요

이 버튼은 원래 숨겨져 있어야 했으며, 여기에는 표시되지 않아야 했고, 제가 테스트했을 때는 작동하지 않았습니다 — 당신도 마찬가지였나요?

1개의 좋아요