من هو متصل على Discourse

:discourse2: Summary Discourse Who’s Online displays a list of users currently active on the site
:hammer_and_wrench: Repository Link https://github.com/discourse/discourse-whos-online
:open_book: Install Guide How to install plugins in Discourse

Features

:information_source: Think carefully before installing this plugin. Discourse is designed for asynchronous discussion, and a list of online users can be harmful for some communities

:information_source: This plugin is built for communities with <100 concurrent logged-in users. Installing on larger sites is possible, but is likely to negatively affect the performance of the whole forum.

It can also optionally display a user’s online status on their avatar. Either with a “ring”, “glow”, or with a “flair” icon in the top left.
45 39 10

The plugin uses the MessageBus to keep up-to-date, so user status is reflected in real-time. Users which have enabled the “hide profile and presence” setting will not be displayed. You can customize a number of things using the available site settings and language strings:

Configuration

These are available in the “plugins” section of the admin settings panel.

  • whos_online_active_timeago: maximum “last seen” for which users are considered online (minutes)
  • whos_online_collapse_threshold: number of users before the avatars overlap each other (see gif above). Set very high to disable this feature
  • whos_online_maximum_display: the maximum number of avatars to display. The numeric counter will still count higher than this. The choice of who gets displayed is currently inconsistent
  • whos_online minimum_display: the minimum number of avatars to display. Below this, a “no users online” message is displayed
  • whos_online_hide_below_minimum_display: if enabled, the widget will be entirely hidden when the number of users is less than minimum_display
  • whos_online_display_public: should the plugin be displayed to people who aren’t logged in? Defaults to true.
  • whos_online_display_min_trust_level: the minimum trust level that this plugin is displayed to. Defaults to 0
  • whos_online_avatar_indicator: choose how to display online status on user avatars. Defaults to “ring”
  • whos_online_avatar_indicator_topic_lists: display avatar indicators in mobile topic lists, and the “Categories & Latest” view. Defaults to off.
  • whos_online_count_only: when enabled, only the count will be displayed. Online user identities will not be revealed

:speech_balloon: Frontend Language Strings

These are available in the admin panel under CustomizeText Content (search for whos_online). These include:

  • js.whos_online.no_users | “No users currently online”:The message displayed when the number of users < whos online minimum display setting.
  • js.whos_online.title | “Online ({{count}})”: The text displayed before the list of avatars. {{count}} is the number of users online.
  • js.whos_online.tooltip | “Users seen in the last 5 minutes”: the text displayed on mouseover of the text.

Last edited by @dax 2024-08-22T14:22:33Z

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

تم تقسيم 3 مشاركات إلى موضوع جديد: مزيد من المعلومات التفصيلية حول من متصل

لاحظ أن هذه الإضافة (على الأقل في منتدانا) تعرض الرسالة التالية. عندما نقوم بتعطيل الإضافة، تختفي. هل يواجه أي شخص آخر هذه المشكلة؟ لدينا خادم كافٍ للتعامل مع عدد المستخدمين النشطين. نستخدم Lightsail 8 جيجابايت رام، 2 vCPUs، 160 جيجابايت SSD Ubuntu


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

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

5 إعجابات

هل هذا ما تقصده؟

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

لطالما وجدت هذا الخيار مبالغًا فيه. إن “الاختفاء” ميزة قياسية جدًا عندما يتعلق الأمر بالمؤشرات عبر الإنترنت ولا ينبغي أن يتطلب تعطيل ملفك الشخصي بالكامل. هذا أحد الأسباب التي دفعتني إلى عدم تسليم هذه الإضافة للمستخدمين غير الإداريين.

3 إعجابات

لم أرَ هذه الخاصية، لكن بحثًا سريعًا على جوجل أظهر لي أنها موجودة في الواجهة.
قد أقوم بإنشاء موضوع أقترح فيه على مطوري Discourse وضع إخفاء الملف الشخصي في قسم الملف الشخصي. يبدو ذلك منطقيًا أكثر هناك. الواجهة تتعلق أكثر بالتخطيط والإعدادات.

نعم، إنها تعمل كما قلت.

أنا حقًا أحب المكون الإضافي الخاص بك وأقدر عملك وكذلك استجابتك السريعة. نحن مجتمع Discourse صغير به أكثر من 100 مستخدم ونادرًا ما يصل عدد المسجلين إلى 4 في نفس الوقت، لكن من الممتع الحصول على ذلك جنبًا إلى جنب مع الدردشة.

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

تم تقسيم منشورين إلى موضوع جديد: السماح للمستخدمين بإخفاء من متصل

ببساطة، أولئك الذين لديهم ملفهم الشخصي مضبوط على خاص لن يظهروا في “من متصل الآن” بسبب إعداد الخصوصية.

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

تم دمج 3 مشاركات في موضوع موجود: الآن، أنا في المستوى 1. هل يمكن لأي شخص أن يخبرني شيئًا عن مستوى ثقة المستخدم؟

أتساءل عما إذا كان من الممكن جعل هذا مكونًا للموضوع لعرض معلومات أساسية، وليس كل هذه التفاصيل،
قل فقط عدد الزوار خلال آخر 5 أو 10 دقائق.

شكرا

قم بتعيين whos_online_active_timeago و whos_online_count_only فقط.

يا @david
شكراً لك على هذه الإضافة الرائعة.
لدي بعض الاقتراحات:

  • هل من الممكن عرض عدد جميع المستخدمين المسجلين دخولهم، وليس فقط المستخدمين النشطين؟ الآن، إذا قام شخص ما بتسجيل الدخول ولكنه لم يقم بالنشر/التفاعل، فلن يتم احتسابه.
  • هل من الممكن إضافة عدد الزوار (الذين لم يسجلوا دخولهم).

شكراً لك على هذا العمل الرائع! آمل أن تتمكن من النظر في هذه التحسينات، ولست متأكداً مما إذا كان ذلك ممكناً/سهلاً للتنفيذ.

5 إعجابات

هل يمكن استخدام هذا على Discourse المستضاف بواسطة Discourse؟

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

هذه إضافة، وليست سمة/مكونًا لـ discourse. ستحتاج إلى التحقق مما إذا كانت الخطة التي اشتركت فيها تتضمنها.

3 إعجابات

هذه #إضافة وليست #سمة أو #مكون_سمة.
الإضافات المسموح لك باستخدامها تعتمد على خطة الاستضافة الخاصة بك

تحتاج إلى استضافة Enterprise لهذه الإضافة

4 إعجابات

هل هناك مكون يعرض من هم متصلون بالإنترنت؟ إنها ميزة قديمة وأساسية جدًا في المنتديات؟ ألا يبدو أنه يجب حمايتها لمستويات اشتراك أعلى؟

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

لا تتردد في تصحيحي

أقرب شيء يمكنني التفكير فيه وهو Theme component هو هذا:

إعجابَين (2)

هل يوجد مكان تُدرج فيه جميع المكونات مثل المكونات الإضافية؟ شكرًا للمساعدة!

جميع مكونات الثيمات موجودة في فئة #theme-component، يمكنك تصفيتها أكثر عبر الوسوم، على سبيل المثال official

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