Chrome/Firefox extension "Share to discourse"

I’m not interested in making a browser extension, but I’d like to try making a share to Discourse plugin for WordPress. A specific logo could be used to link to a specific forum, or clicking a general logo could open a modal window with a list of forums that had registered with the plugin. Once a forum was selected, it would be possible to offer a list of categories/groups/individuals to share the post with.

The end result would be to open a new browser tab with a link similar to the one @david posted. Doing it this way would let Discourse handle the most of the work.

I’ll try making a prototype of it and see if it makes any sense. Thanks for the idea.

4개의 좋아요

I’m willing to support that idea Simon but I’m sure there is a audience for that.

Elsewhere on meta.discourse, I’ve posted my interest in a high-level, onebox integration of Diaspora* a privacy-aware, distributed, open source social network that can bring synergistic enhancement to Discourse such as a more feature rich User Profile but without adding complexity and dreaded Feature Fatigue.

Adding standard, and it is unquestionably a web standard, contempory social media share tools caters to web denizens whose lives online are entirely on the surface:

  • Instagram,
  • Snapchat,
  • YouTube,
  • Facebook
  • Oxford English Dictionary

The SUBVS.US proposal for the Diaspora of Discourse plugin with Diasora sidebars open and Discourse selected instead of the stock Diaspora Activity Stream


Instead of static sidebars these have Sliders ie Baby Hamburgers on each side that can be set to open and close automagically or manually. In this mockup we see the Discourse forum is “In Focus”, the Activity Stream is always a toggle away from use.

A social media button would be accessible at all times within the editor.

The iconic share buttons look and work the same on every website. All of them are connected, and I simply propose making acess to that ecosystem possible from within a Discourse paradigm.

Another long term project you probably will claim you don’t get, is Discourse for Google Docs, a version of WordPress for Google Docs it is one of my all time favorite chunks of code from Automatic.

1개의 좋아요

This will be covered by the new Web API:

7개의 좋아요

https://twitter.com/mgiuca/status/935695942438678528

This is live in Chrome Canary/Dev. However Firefox and Chrome devs are discussing the string format of the URL and this will not land in stable browsers until it gets settled.

Here is how it will work when this lands:

7개의 좋아요

This is what I have been looking for! A lot of people like to just click and share, I have a few web site owns will to place something like this on there website so our users can post on to our forums with ease

2개의 좋아요

이 기능이 정말 큰 도움이 되었습니다.

새 창에서 열리고 링크 카테고리를 추가합니다:

javascript:window.open("https://www.example-forum.com/new-topic?category=links&title="+encodeURIComponent(window.location.href), "_blank");

이제 나중에 정렬할 수 있는 링크를 제 포럼에 매우 빠르게 추가할 수 있습니다. 포럼을 지식 베이스나 디지털 가든처럼 사용하고 있으므로, 링크를 대량으로 넣고 나중에 다듬는 작업을 훨씬 쉽게 만들어 줍니다.

4개의 좋아요

참고로, 이것을 어떻게 해야 할지 궁금해하는 분들을 위해, 북마크로 저장해 두면 북마크를 클릭하여 해당 작업을 수행할 수 있습니다.

2개의 좋아요

이 주제는 좀 까다롭네요… 버튼 한 번만 누르면 유용한 링크를 Discourse에 올리는 방법은 무엇일까요?

iOS 공유 시트의 “Discourse에 게시” 버튼과 로직이 크게 다르지 않을 것 같습니다.

다음과 같이 프로그래밍할 수 있습니다;

  • 공유 시트에서 입력을 받습니다. 공유 시트의 버튼 이름은 단축语的 이름입니다.
  • 단축语的 입력에서 text를 가져옵니다.
  • 텍스트 ook (“Look what i found on”의 Look 단어 일부)
  • 텍스트 I (“I found”의 I)
  • 텍스트 Source: (URL이 어디에서 왔는지를 나타내는)
  • 텍스트 heck (“Check out what i found”의 Check 단어 일부)
  • 위의 텍스트 중 하나가 입력 텍스트인 경우
  • Source:를 그냥 링크로만 대체합니다.
  • 해당 링크에서 URL을 가져옵니다.
  • 호스트를 가져옵니다.
  • 경로를 가져옵니다.
  • 쿼리를 가져옵니다.
  • 호스트, 경로, ?, 그리고 쿼리를 URL로 인코딩합니다.
  • 텍스트 https://yourdomain.co.uk/new-topic?title=Shared%20from%20iOS&body=https://[인코딩된 URL]
  • 해당 텍스트를 Safari에서 엽니다.

아니면

  • 단축语的 입력 텍스트에 g.co가 포함된 경우
  • 텍스트에서 https?://(.*)를 일치시킵니다.
  • 일치 항목에서 인덱스 1의 그룹을 가져옵니다.
  • 텍스트 https://yourdomain.co.uk/new-topic?title=Shared%20from%20iOS&body=https://[해당 텍스트]
  • 해당 텍스트를 Safari에서 엽니다.

아니면

  • 단축语的 입력 텍스트에 youtube가 포함된 경우
  • 호스트를 가져옵니다.
  • 경로를 가져옵니다.
  • 쿼리를 가져옵니다.
  • 인코딩합니다.
  • 포럼 URL 텍스트
  • Safari에서 엽니다.

아니면

  • 텍스트가 그냥 텍스트인 경우
  • 본문이 그냥 텍스트가 되도록 합니다.

:rofl:

1개의 좋아요

제가 만든 이 Chrome 확장 기능이 여기서 요청된 기능 중 일부를 제공할 수 있을 것 같습니다. 피드백을 환영하며, 모든 내용을 한곳에 모으기 위해 아래 주제에서 남겨주시면 좋습니다.

6개의 좋아요

직접 실행되는 모습을 보고 싶으신 분들을 위한 영상 예시:

2개의 좋아요