مشاركة اجتماعية

:discourse2: Summary Social Share allows you to easily add extra social providers to the share button on posts..
:eyeglasses: Preview Preview on Discourse Theme Creator
:hammer_and_wrench: Repository Link https://github.com/discourse/discourse-social-share
:open_book: New to Discourse Themes? Beginner’s guide to using Discourse Themes

Install this theme component

Features

:information_source: This component only works on public sites.
Share icons will be automatically disabled on private sites when site setting login required is active.


:exclamation: Manipulating settings related to crawler user agents could potentially interfere with the proper functioning of the component.

Settings:

Name Descriptions
social share links Comma delimited in this order: name, icon, title, link.
svg icons List of FontAwesome 5 icons used in this theme component. Use prefix fa- for solid icons, far- for regular icons and fab- for brand icons.

Some providers & Links:

English Social Media

Provider Sharing URL
Tumblr https://www.tumblr.com/widgets/share/tool?canonicalUrl=
Pinterest https://pinterest.com/pin/create/button/?url=
LinkedIn https://www.linkedin.com/shareArticle?mini=true&url=
Reddit https://www.reddit.com/submit?url=
Pocket https://getpocket.com/edit?url=
Evernote https://www.evernote.com/clip.action?url=
HackerNews https://news.ycombinator.com/submitlink?u=
Digg https://digg.com/submit?url=
Flipboard https://share.flipboard.com/bookmarklet/popout?v=2&title=
Instapaper https://www.instapaper.com/edit?url=
Diaspora https://share.diasporafoundation.org/?title={title}&url=
Viber viber://forward?text=
Mastodon https://mastodonshare.com/?url=
Threads https://www.threads.net/share?url=
Bluesky https://bsky.app/intent/compose?text=
Mix.com https://mix.com/add?url=
MeWe https://mewe.com/share?link=

International (non-english) Social Media

Provider Sharing URL
QZone (China) http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=
Weibo (China) http://service.weibo.com/share/share.php?url=
Douban (China) https://www.douban.com/recommend/?url=
RenRen (China) http://widget.renren.com/dialog/share?resourceUrl=
VK (Russia) https://vk.com/share.php?url=
OK.ru (Russia) https://connect.ok.ru/dk?st.cmd=WidgetSharePreview&st.shareUrl=
Xing (Germany) https://www.xing.com/app/user?op=share&url=
SurfingBird (Russia) http://surfingbird.ru/share?url=

Phone/Audio-Based Social Media

Provider Sharing URL
SMS sms:{phone_number}?body=
Telegram https://telegram.me/share/url?url=
Line https://lineit.line.me/share/ui?url=
Skype https://web.skype.com/share?url=
WhatsApp https://wa.me/?text=
WhatsApp Web https://web.whatsapp.com/send?text= (read also here)

This guide is a wiki, if you have other providers, maybe specific for your country, just add them to the list.

You will find the share URL in the documentation for the developers.


:discourse2: Hosted by us? Theme components are available to use on our Standard, Business, and Enterprise plans.

Last edited by @dax 2025-05-09T19:43:20Z

Check documentPerform check on document:
75 إعجابًا

Premise: I do not use, nor have I ever used Instagram but, I do not believe that Instagram have a share button at all, for sure there is a “follow” button that you can add if you want it.

Something like this should work (maybe)

instagram,instagram,follow me on instagram,https://www.instagram.com/your-instagram-username/?ref=

3 إعجابات

In the Component Settings:

social share links: LinkedIn, fab-linkedin, Share to LinkedIn, https://www.linkedin.com/shareArticle?mini=true&url=

svg-icons: fab-linkedin

I think I had to do force-refresh in the browser to nudge it.

4 إعجابات

مرحباً! رأيت في منشورك أنك أضفت مشاركة weixin. أود إضافة هذا أيضاً. هل يمكنك مشاركة الرابط معي؟ شكراً مقدماً!

weixin://dl/moment??

إنه

weixin://dl/moments

ولكن يرجى ملاحظة أنه رابط ربط عميق غير رسمي وقد يتوقف عن العمل إذا قامت Wechat بتغييره/إزالته.

مزيد من المعلومات في
https://stackoverflow.com/questions/45005036/is-there-any-method-to-share-text-from-mobile-web-to-wechat-by-sharing-button#:~:text=Wechat%20doesn't%20have%20any%20official%20deep%20linking%20URL,Send%20to%20chat%20documentation%20on%20Wechat%20JS%20SDK

على أي حال، إذا قمت بتكوينه بشكل صحيح وعمل، فأضفه إلى القائمة في المنشور الأول لهذا الموضوع.

شكرا لردك. للأسف، لم ينجح الأمر. :cry: عند النقر على زر المشاركة، تم استدعاء WeChat ولكن لم يكن هناك أي رد فعل آخر.

لقد بحثت عن “wechat url scheme” على الإنترنت الصيني، وتشير النتائج إلى أن WeChat لم يعد يدعم هذا النوع من الروابط العميقة منذ عامين أو ثلاثة أعوام.

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

أعتقد أن التغييرات التي تم إجراؤها على مربع حوار المشاركة قبل بضعة أشهر ربما تكون قد أدت إلى تعطل Theme component هذا. لا يبدو أنه يعمل.

لقد قمت بتثبيت هذه الإضافة ولكنها لا تظهر في قائمة الإضافات الخاصة بي.

  1. أضفت الإضافة إلى ملف app.yml الخاص بي (- git clone GitHub - discourse/discourse-social-share)
  2. ثم قمت بإعادة بناء الحاوية (cd /var/discourse, ./launcher rebuild app)

لست متأكدًا من سبب عدم ظهور الإضافة في القائمة.

هذا مكون سمة.
لذا تحتاج إلى اتباع Installing a theme or theme component

3 إعجابات

شكرا @Moin. سأجرب ذلك

لا يزال المكون يعمل، ولكن فقط على المواقع العامة. قبل فترة، قمنا بتعطيل القدرة على مشاركة المنشورات والمواضيع على موفري الشبكات الاجتماعية عندما تكون المواقع خاصة.

لقد قمت للتو بتحديث OP وفقًا لذلك.

5 إعجابات

شكراً جزيلاً! كان Plugin يسبب الكثير من المشاكل المتضاربة مع منتداي. الآن أعرف السبب! :sweat_smile:

إعجابَين (2)

حسنًا، أستخدمه على موقع عام ولا يزال لا يظهر بشكل صحيح…

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

يبدو هذا رائعًا، ولكن كيف نضيف أيقونات مخصصة غير موجودة في Font Awesome؟

أوه، ربما وجدت شيئًا:

ما هو الفرق بين هذه المكون وهذه وظيفة المشاركة المضمنة؟

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

تتيح هذه الوحدة النمطية إضافة أي رابط، حيث تدعم وظيفة المشاركة المضمنة عددًا محدودًا من الخيارات مثل تويتر/فيسبوك والبريد الإلكتروني.

3 إعجابات

بمعنى آخر، هذه الوحدة تكمل وظيفة المشاركة المضمنة، ولكنها لا تحل محلها.

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

هذا رائع، شكرًا جزيلاً! إنها إضافة رائعة وأحب التخصيص الذي يمكننا إضافته.

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

قفزت إلى share quote buttons ولكن لا يبدو أنه يمكنني إضافة أو إزالة أي شيء هناك.

:man_shrugging:t3:

نصيحة:

لكل من يرغب في تطبيق هذا، ولكن مع شبكات اجتماعية غير موجودة في القائمة. تأكد من قراءة Replace Discourse's default SVG icons with custom icons in a theme و How to overrule a color variable for one theme only? - #7 by smrtey والتي ستوجهك خلال تكوين about.json، هذا هو المفتاح حتى تتمكن من إضافة ملف icons-sprite.svg!

إذا كنت ترغب في استبدال أيقونات المشاركة، فهذا الموضوع هو صديقك، Use standard share icon for share post (instead of link icon) - #9 by bquast :+1:t3:

رائع! تمكنت من إضافة رابط مشاركة إلى Mastodon باستخدام
https://mastodonshare.com/?url= - يطلب النافذة المنبثقة المثيل، ثم ينشئ الإعداد المناسب للنشر.

إعجابَين (2)

أنا الآن معجب بخدمة جديدة لتوفير روابط المشاركة، ShareOpenly https://shareopenly.org/ لأنها لا توفر وسيلة لمشاركة الروابط مع Mastodon فحسب، بل أيضًا مع Threads و Blusky والمزيد.

لقد قمت بتعديل إعداداتي في Social Share لاستخدام

Share Openly, fab-mastodon, Share Openly, https://shareopenly.org/share/?url=

أنا أبحث عن أيقونة مختلفة، لكنها تعمل في مجتمعي:

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