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 « J'aime »

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 « J'aime »

This will be covered by the new Web API:

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

7 « J'aime »

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 « J'aime »

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 « J'aime »

Cela m’a énormément aidé.

Cela l’ouvre dans une nouvelle fenêtre et ajoute une catégorie de liens :

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

Maintenant, je peux très rapidement ajouter des liens à mon forum que je pourrai ensuite trier. Étant donné que j’utilise le forum comme une base de connaissances ou un jardin numérique, cela peut faciliter le dépôt de liens à y affiner plus tard.

3 « J'aime »

Au fait, au cas où quelqu’un se demanderait quoi en faire, enregistrez-le comme un favori, puis vous pourrez cliquer sur le favori pour effectuer l’action.

2 « J'aime »

c’est un sujet difficile… comment puis-je obtenir des liens utiles sur Discourse en appuyant sur un bouton.

Je suppose que la logique ne peut pas être très différente d’un bouton “Poster sur Discourse” dans la feuille de partage d’iOS.

Cela pourrait être programmé comme suit ;

  • Recevoir l’entrée de la feuille de partage, le bouton sur la feuille de partage sera le nom du raccourci
  • Obtenir texte de l’entrée du raccourci
  • Texte ook (partie du mot Look comme dans “Regarde ce que j’ai trouvé sur”)
  • Texte I (comme dans “J’ai trouvé”)
  • Texte Source : (comme pour dire d’où vient l’URL)
  • Texte heck (partie du mot Check comme dans “Regarde ce que j’ai trouvé”)
  • Si l’un des textes ci-dessus est le texte d’entrée
  • Remplacer Source : par juste je veux un lien
  • Obtenir les URL à partir de là
  • Obtenir l’hôte
  • Obtenir le chemin
  • Obtenir la requête
  • Encoder l’hôte, le chemin, ?, puis la requête, en tant qu’URL
  • Texte https://votredomaine.co.uk/new-topic?title=Partagé%20depuis%20iOS\u0026body=https://[URL encodée]
  • Ouvrir ce Texte dans Safari

Sinon

  • Si le texte d’entrée du raccourci contient g.co
  • Faire correspondre https?://(.*) dans le Texte
  • Obtenir le groupe à l’index 1 dans les correspondances
  • Texte https://votredomaine.co.uk/new-topic?title=Partagé%20depuis%20iOS\u0026body=https://[le texte]
  • Ouvrir ce Texte dans Safari

Sinon

  • Si le texte d’entrée du raccourci contient youtube
  • obtenir l’hôte
  • obtenir le chemin
  • obtenir la requête
  • encoder
  • texte de l’URL du forum
  • ouvrir dans safari

Sinon

  • le texte est juste du texte
  • laisser simplement le corps être le texte

:rofl:

1 « J'aime »