Quick Quote 테마 컴포넌트

:information_source: 요약 간단히 말해, 게시물 답변 버튼(토픽 답변이 아님)의 동작을 변경하여 한 번의 클릭으로 게시물을 자동으로 인용하도록 합니다.
:hammer_and_wrench: 저장소 링크 GitHub - merefield/discourse-quick-quote: A Theme component to change the behaviour of the Post Reply buttons to quote a Post automatically in a single click. · GitHub
:open_book: 설치 가이드 Installing a theme or theme component
:heart: 후원 이 컴포넌트가 마땅히 받아야 할 유지보수를 받고 향후에도 여러분의 사이트에서 계속 작동할 수 있도록, 여러분 또는 여러분의 조직의 자원과 필요에 맞는 수준으로 저의 오픈소스 작업을 정기적으로 후원해 주시면 감사하겠습니다.

이 테마 컴포넌트를 즐기고 계신가요? GitHub에서 :star: 를 눌러 주세요.

작동 방식

간단히 말해, 게시물 답변 버튼(토픽 답변이 아님)의 동작을 변경하여 한 번의 클릭으로 게시물을 자동으로 인용하도록 합니다.

인용할 내용과 시점을 세밀하게 조정할 수 있는 여러 가지 설정이 있습니다. ‘오래된 학교(old skool)’ 느낌을 위해 인용의 중첩(nesting)도 지정할 수 있습니다.

자동 인용은 Composer로 전달되므로, 원하시는 경우 거기서 수동으로 다듬을 수 있습니다(하지만 그렇게 하면 '빠르게’라는 부분이 무의미해지죠 :snail:).

하단의 토픽 답변 버튼이나 인용 도구의 동작은 변경하지 않습니다.

이유

  • 기본 설치 환경에서 인용하는 데 클릭이 너무 많다고 느끼는 분들이 있습니다. 이는 터치 디바이스에서 더 큰 문제입니다.

  • "자동 인용"은 꽤 오래된 게시물에 답변할 때 특히 유용합니다. 이 플러그인은 참조된 게시물이 얼마나 이전의 것인지 계산하고, 충분히 이전이면 자동으로 인용을 삽입합니다. 이는 사람들이 맥락을 조금 더 빠르게 이해하는 데 도움이 됩니다.

  • '중첩 인용(Nested Quotes)'을 다시 가져옵니다! (기본값: 꺼짐) 이 컴포넌트는 일부 ‘오래된 학교’ 포럼 플랫폼에 익숙한 분들에게 특히 매력적일 수 있으며 :space_invader: 취향의 문제입니다 - 중첩 인용을 좋아하시면 이제 볼 수 있지만, 공간에 대한 영향을 인지하시기 바랍니다!

필요하지 않은 경우

기본 제공된 토픽 게시물 답변 동작에 100% 만족하신다면 이 컴포넌트가 필요하지 않습니다. 저 역시 만족하지만, 선택지가 있는 것이 좋은 것 아니겠습니까?

설정

quick_quote_post_location_threshold: “빠른 인용이 활성화되기 전의 게시물 수.”

자동 인용이 실행되기 전에 게시물이 얼마나 이전의 것일 필요가 있는지 제어합니다. 최근 게시물의 불필요한 인용을 방지합니다.

quick_quote_remove_links: “인용에서 모든 링크(이미지 포함) 제거”

정리를 깔끔하게 하고 공간 활용도를 높입니다.

quick_quote_remove_prior_quotes: “모든 이전(중첩) 인용 제거”

기본적으로 활성화되어 있습니다. 궁극적인 중첩된 오래된 학교 경험을 위해 이 설정을 해제하십시오. (죄송합니다, Jeff! :wink: )

quick_quote_remove_contiguous_new_lines: “불필요한 줄바꿈 제거”

줄바꿈은 과대평가되었습니다.

quick_quote_character_limit: “인용 문자 제한 (총 길이가 더 크면 마지막 x자 사용)”

발췌는 꽤 기본적입니다 :slight_smile: 더 정밀한 인용이 필요하면 인용 도구로 돌아가십시오 (플러그인에 의해 재정의되지 않음)

알려진 한계

이 테마 컴포넌트는 인용 준비를 처리하는 방식이 비교적 단순합니다. 일부 설정은 다른 설정과 함께 작동할 때 더 효과적이며, 어떤 것이 적합한지는 관리자가 결정해야 합니다. 단어의 중간을截단할 수 있는 발췌 문자 제한이 있는 것처럼 일부 복잡성은 피하고 있습니다. 태그가 제거되어 태그가 잘려서 손상될 위험을 피하기 위해 포맷이 단순화되었습니다 - 다시 말하지만, 이는 단순함을 달성하기 위한 것입니다. 인용 처리는 정규 표현식에 크게 의존하며, 모두 완전히 완벽하지는 않지만 ‘충분히 잘’ 작동합니다. 이들은 테마 컴포넌트의 수명 동안 개선될 수 있습니다.

이것은 최근에 저의 동일한 플러그인에서 이식되었지만, 그 과정에서 버그를 포함했을 수 있습니다. 발견하시면 알려주세요.

제 후원자와 이 컴포넌트의 영감

이 작업을 후원해 주신 @Merlls_Rizzini 에게 감사해 주세요. 이 기능은 우리 둘 모두의 아이디어를 바탕으로 하며, @eesty이 게시물에서 부분적으로 영감을 받았습니다.

참고: 이것은 제 Fast Quote 플러그인을 기반으로 했지만, 제3자에게 호스팅된 사이트 관리자들도 더 쉽게 접근할 수 있도록 테마 컴포넌트 형식으로 이동했습니다. 백엔드 컴포넌트가 없었기 때문에 @sam 이 테마 컴포넌트로 전환할 것을 제안했고, @sully 는 자신의 테마 버전을 만든 후 이 작업을 마무리하도록 최종적으로 격려해 주었습니다.

모든 피드백을 환영합니다.

38개의 좋아요

If I’d of not skip read that I’d of spent less time trying to figure out the value,

I like it :+1:

3개의 좋아요

Would be cool if you could use this by category, would love to have it in our AMA category, but otherwise it would be kinda messy.

3개의 좋아요

A recent Git commit to topic.js seems to have broken this theme component:

Quote.build() no longer exists; they seem to be importing and using the buildQuote() function instead. A quick substitution didn’t do the trick; will have to ponder this a bit more.

2개의 좋아요

My bad! The quick quote plugin wasn’t on the all-the-plugins list so I missed it when looking for regressions. I’ll add it and I’ve opened a PR with a fix to the plugin:

https://github.com/merefield/discourse-quick-quote/pull/1

(plus a small fix to settings: FIX: Setting descriptions were swapped by cvx · Pull Request #2 · merefield/discourse-quick-quote · GitHub)

5개의 좋아요

Awesome, thanks Jarek (and thanks for reporting @sully!) , merged! (and thanks for the bug fix!)

1개의 좋아요

I am running this theme, did the update yesterday and getting complaints today

upon creating a post to reply and explain I found if I’m replying to a post and I go up to another and
want to reply in whole I can not, the reply remains on the post I started with,

previously it would toggle, the quick quote still works though

For my full comprehension, would you mind breaking that down a bit more … can you explain it in finer steps and where you believe it goes wrong?

1개의 좋아요

Yeah its being discussed now and the inability to hit reply any further up than 3 posts is likely going to be one of those haunting, need to explain over and over problems

Quick quote is great, but can the reply function be restored?

I’m still not following you. Can you please go into greater detail and more steps?

I’ve retested the Component locally and it seems to be behaving fine?

1개의 좋아요

No problem, and maybe I’m misinterpreting function or some other oversight

but right now as it stands if I go up in a thread 4 posts in a thread the reply button is disabled,

this was only mentioned today and yesterday I did the update

So I believe its related, maybe there’s a setting involved?

Can you show me your Theme settings?

Can you also confirm you are on the latest discourse version and latest version of the Theme Component?

Also, can you please let me know if you see any Javascript errors on the console?

1개의 좋아요

in a random thread

image

this site doesn’t show version like my self hosted

1개의 좋아요

Thanks.

OK so I’ve set my settings the same and cannot replicate. The Reply button 4 posts back is working fine.

That’s highly suspicious though given your settings. (The ‘3’ jumps out!)

I’m on the latest version of Discourse and the TC. Make sure you are fully updated on both.

1개의 좋아요

view source says Discourse 2.5.0.beta2

and TC is theme component?

changing 3 to 5 allows me to reply up to the 5th post

so do I do a 9999 and does that short any other function?

OK so I’ve replicated your issue on a Production site …

v2.5.0.beta2 +459

Those changes that Jarek submitted were very specfically targetting the latest version of Discourse.

Is it possible you are on a Discourse commit prior to his changes? If so, it will not work with the latest TC. You need to upgrade both or neither.

Moreover, I’ve just upgraded that site (to latest-release +495) and all is well again.

So yeah, you need to upgrade your Discourse past his commit.

1개의 좋아요

Can you provide any css I can use to roll back?

then I’ll remove it after my site is updated?

Thank you :slightly_smiling_face:

or

@team is my site do for an update soon?

Ah, good idea, except I don’t think you can access the javascript folder contents from the UI (someone please correct me if I’m wrong!).

Unfortunately I don’t believe you can install a specific commit of a Theme Component either (ditto!).

So my suggestion is, yeah, change that 3 to 9999 and wait until your Discourse is more up-to-date.

1개의 좋아요

Can do, no worries and thanks for the cooperation, its greatly appreciated :+1:

1개의 좋아요

Hey all you Quick Quoting hip-shooting Discoursers … I’ve released a fix to make Quick Quote work again with latest Discourse.

I’m tracking tests-passed so do not update if you are not on that branch.

https://github.com/merefield/discourse-quick-quote/commit/c353d33bd0752d6de1cbd0ddc1d91fdb1413ea59

3개의 좋아요