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 Mi Piace

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 Mi Piace

This will be covered by the new Web API:

https://github.com/WICG/web-share-target/blob/master/docs/explainer.md

7 Mi Piace

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 Mi Piace

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 Mi Piace

Questo mi ha aiutato enormemente.

Questo lo apre in una nuova finestra e aggiunge una categoria di link:

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

Ora posso aggiungere molto rapidamente link al mio forum che potrò poi ordinare. Considerando che sto usando il forum come una knowledge base o un giardino digitale, questo può rendere super facile inserire link da raffinare in seguito.

3 Mi Piace

A proposito, nel caso in cui qualcuno si chieda cosa farne, salvalo come segnalibro, quindi puoi fare clic sul segnalibro per eseguire l’azione

2 Mi Piace

questo è un argomento impegnativo… come posso inserire link utili su discourse premendo un pulsante.

Suppongo che la logica non possa essere molto diversa da un pulsante “Invia a Discourse” nel foglio di condivisione di iOS.

Questo potrebbe essere programmato come segue;

  • Ricevi l’input dal foglio di condivisione, il pulsante sul foglio di condivisione sarà il nome del collegamento rapido
  • Ottieni testo dall’input del collegamento rapido
  • Testo ook (parte della parola Look come in “Guarda cosa ho trovato su”)
  • Testo I (come in “Ho trovato”)
  • Testo Sorgente: (come dire da dove proviene l’URL)
  • Testo heck (parte della parola Check come in “Dai un’occhiata a cosa ho trovato”)
  • Se uno qualsiasi dei testi sopra è il testo di input
  • Sostituisci Sorgente: con voglio solo un link
  • Ottieni URL da questo
  • Ottieni host
  • Ottieni percorso
  • Ottieni query
  • Codifica host, percorso, ?, quindi query, come URL
  • Testo https://yourdomain.co.uk/new-topic?title=Shared%20from%20iOS&body=https://[URL codificato]
  • Apri quel testo in Safari

Altrimenti

  • Se il testo di input del collegamento rapido contiene g.co
  • Abbina https?://(.*) nel testo
  • Ottieni il gruppo all’indice 1 nelle corrispondenze
  • Testo https://yourdomain.co.uk/new-topic?title=Shared%20from%20iOS&body=https://[il testo]
  • Apri quel testo in Safari

Altrimenti

  • Se il testo di input del collegamento rapido contiene youtube
  • ottieni host
  • ottieni percorso
  • ottieni query
  • codifica
  • testo dell’URL del forum
  • apri in safari

Altrimenti

  • il testo è solo testo
  • lascia che il corpo sia il testo

:rofl:

1 Mi Piace