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:

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

7 إعجابات

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");

الآن يمكنني إضافة الروابط بسرعة كبيرة إلى المنتدى الخاص بي والتي يمكنني لاحقًا فرزها. بالنظر إلى أنني أستخدم المنتدى كقاعدة معرفية أو حديقة رقمية، يمكن أن يجعل هذا الأمر سهلاً للغاية لإيداع الروابط هناك لصقلها لاحقًا.

3 إعجابات

بالمناسبة، في حال كان أي شخص يتساءل عما يجب فعله بذلك، احفظه كإشارة مرجعية ثم يمكنك النقر على الإشارة المرجعية لتنفيذ الإجراء

إعجابَين (2)

هذا موضوع صعب… كيف يمكنني الحصول على روابط مفيدة على ديسكورس بضغطة زر.

أفترض أن المنطق لا يمكن أن يكون مختلفًا كثيرًا عن زر “نشر إلى ديسكورس” في ورقة المشاركة في نظام iOS.

يمكن برمجة هذا على النحو التالي:

  • استقبال المدخلات من ورقة المشاركة، سيكون الزر الموجود على ورقة المشاركة هو اسم الاختصار
  • الحصول على النص من مدخلات الاختصار
  • النص ook (جزء من كلمة Look كما في “Look what i found on”)
  • النص I (كما في “I found”)
  • النص Source: (كما في القول من أين جاء الرابط)
  • النص heck (جزء من كلمة Check كما في “Check out what i found”)
  • إذا كان أي من النص أعلاه هو النص المدخل
  • استبدال Source: بـ want a link فقط
  • الحصول على الروابط من ذلك
  • الحصول على المضيف
  • الحصول على المسار
  • الحصول على الاستعلام
  • ترميز المضيف، المسار، ؟، ثم الاستعلام، كرابط
  • النص https://yourdomain.co.uk/new-topic?title=Shared%20from%20iOS&body=https://[encoded URL]
  • فتح هذا النص في سفاري

غير ذلك

  • إذا كان نص مدخلات الاختصار يحتوي على g.co
  • مطابقة https?://(.*) في النص
  • الحصول على المجموعة في الفهرس 1 في التطابقات
  • النص https://yourdomain.co.uk/new-topic?title=Shared%20from%20iOS&body=https://[the text]
  • فتح هذا النص في سفاري

غير ذلك

  • إذا كان نص مدخلات الاختصار يحتوي على youtube
  • الحصول على المضيف
  • الحصول على المسار
  • الحصول على الاستعلام
  • الترميز
  • نص رابط المنتدى
  • الفتح في سفاري

غير ذلك

  • النص هو مجرد نص
  • دع الجسم يكون النص فقط

:rofl:

إعجاب واحد (1)