من هو المتصل الآن في Discourse

:discourse2: ملخص يعرض “Discourse Who’s Online” قائمة بالمستخدمين النشطين حاليًا على الموقع
:hammer_and_wrench: رابط المستودع https://github.com/discourse/discourse-whos-online
:open_book: دليل التثبيت كيفية تثبيت الإضافات في Discourse

الميزات

:information_source: فكر بعناية قبل تثبيت هذه الإضافة. تم تصميم Discourse للمناقشات غير المتزامنة، وقد تكون قائمة المستخدمين المتصلين ضارة ببعض المجتمعات.

:information_source: تم بناء هذه الإضافة للمجتمعات التي تضم أقل من 100 مستخدم مسجل متصل في نفس الوقت. يمكن تثبيتها على مواقع أكبر، لكن ذلك قد يؤثر سلبًا على أداء المنتدى بأكمله.

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

تستخدم الإضافة MessageBus للبقاء محدثة، لذا يتم عكس حالة المستخدم في الوقت الفعلي. لن يتم عرض المستخدمين الذين فعلوا إعداد “إخفاء الملف الشخصي والحالة”. يمكنك تخصيص العديد من الأشياء باستخدام إعدادات الموقع وسلاسل اللغة المتاحة:

الإعدادات

تتوفر هذه الإعدادات في قسم “الإضافات” من لوحة إعدادات المسؤول.

  • whos_online_active_timeago: الحد الأقصى لوقت “آخر ظهور” الذي يُعتبر فيه المستخدمون متصلين (بالدقائق)
  • whos_online_collapse_threshold: عدد المستخدمين قبل أن تتداخل صورهم الرمزية مع بعضها البعض (انظر الصورة المتحركة أعلاه). اضبطه على قيمة عالية جدًا لتعطيل هذه الميزة.
  • whos_online_maximum_display: الحد الأقصى لعدد الصور الرمزية المعروضة. سيظل العداد الرقمي يعرض أرقامًا أعلى من هذا الحد. اختيار من يتم عرضه حاليًا غير متسق.
  • whos_online_minimum_display: الحد الأدنى لعدد الصور الرمزية المعروضة. إذا كان العدد أقل من هذا، يتم عرض رسالة “لا يوجد مستخدمون متصلون”.
  • whos_online_hide_below_minimum_display: إذا تم تفعيله، سيتم إخفاء الأداة بالكامل عندما يكون عدد المستخدمين أقل من whos_online_minimum_display.
  • whos_online_display_public: هل يجب عرض الإضافة للأشخاص الذين لم يسجلوا دخولهم؟ الافتراضي هو “نعم”.
  • whos_online_display_min_trust_level: مستوى الثقة الأدنى الذي تُعرض له هذه الإضافة. الافتراضي هو 0.
  • whos_online_avatar_indicator: اختر كيفية عرض حالة الاتصال على صور المستخدمين الرمزية. الافتراضي هو “حلقة”.
  • whos_online_avatar_indicator_topic_lists: عرض مؤشرات الصور الرمزية في قوائم المواضيع على الجوال، وفي عرض “التصنيفات والأحدث”. الافتراضي هو “معطل”.
  • whos_online_count_only: عند تفعيله، سيتم عرض العدد فقط. لن يتم الكشف عن هويات المستخدمين المتصلين.

:speech_balloon: سلاسل اللغة للواجهة الأمامية

تتوفر هذه السلاسل في لوحة الإدارة تحت تخصيصمحتوى النص (ابحث عن whos_online). تشمل:

  • js.whos_online.no_users | “لا يوجد مستخدمون متصلون حاليًا”: الرسالة المعروضة عندما يكون عدد المستخدمين أقل من إعداد whos_online_minimum_display.
  • js.whos_online.title | “متصلون ({{count}})”: النص المعروض قبل قائمة الصور الرمزية. {{count}} هو عدد المستخدمين المتصلين.
  • js.whos_online.tooltip | “مستخدمون شوهدوا في آخر 5 دقائق”: النص المعروض عند تمرير الماوس فوق النص.
151 إعجابًا
[Paid] "What's Going On?" plugin. [COMPLETE]
How do I bring back my community that was very active 10 years ago?
Quick Messages Plugin
Babble Chat
Do you display the list of live forum users on your counterpart website?
Split profile hiding and presence
Who's online "action"
Contributor Interviews – David Taylor
Advice for getting my little game dev community "out there?"
Need cool plugin feedback suggestions?
No online status in Topic List
Community Network Visualisation
Change Online (x) text to pulsing green dot
MKJ's Opinionated Discourse Deployment Configuration
Can I activate my plugin only for those registered on the site?
Who's online crazy load
How does group messaging work in Discourse?
Group PM “pick up where you left off”
What happens next?
How to show a user’s online status?
How minimal is your forum?
Who's Online doesn't work for me
TavoWEB theme for Discourse
Correct way to build components
[Paid] "What's Going On?" plugin. [COMPLETE]
Topic Author
How serious is "site is under extreme load, search is disabled, try again later"
User reporting unable to hide presence
List of all the pages that users are in
My discourse speed is very slow
Any way to show live stats to users?
Original Poster Avatars not working well with Who's Online
Where are topics related to WordPress integrations where Discourse is a paid subscription?
User card huge avatar outline appears on plugins and components
How does the online presence work?
Why is the green tick a red exclamation?
Must have plugins and components for Discourse?
Bundling more popular plugins with Discourse core
Loading slider issues
Homepage plugin for displaying recent topics, latest members, popular threads, and similar elements
Possible to show number of visitors in real time?
Failed to construct 'Notification': Illegal constructor
Why you should use Discourse internally for your company/team instead of Slack (4 years use case)
Babble Chat
Forum with user diary/blog/profile
Category Banners