Full name @mentions

I am not against experimenting with adding a tiny avatar, but I would like to see the experiment in a plugin first. It is pretty straightforward to add.

9 إعجابات

I agree that option (perhaps as global setting) to display mention as @sam OR as Sam Saffron would be really great.
With the same formatting as mentions now have, but displaying full name instead of @handle

@codinghorror @sam

So, you guys allow for SSO logins, presumably to allow for companies, anong other entities who maintain master employee/user lists to login with ease.

The issue I’m running into here is this. We have 4500 employees. Most don’t know each other. While tagging by typing name in works perfectly fine, the username displayed is a 5 digit employee #. So now all people see is comeone tagging a 5 digit #

Can you guys write/enable a user option that simply displays the Full Name field in lieu of @username please!

You allow a user option to select the Full Name displayed first in a thread reply with username to the right. A simple visual switch.

I totally get the purpose of using a “twitter” tagging model, but it is severely aggravating for large professional/educational institutions to use. Please, please make an option available. In any means.

It’s not even in a paid hosted/supported version, so you’re missing out there on revenue for large organizations who might otherwise use this.

In my case, I’m trying to “sell” it to my board to adopt discourse. I’m sure they won’t like this missing capibility

6 إعجابات

Who decided the username had to be a 5 digit number? That’s a bad decision.

3 إعجابات

It’s quite common from what I have seen in larger organisations to have their AD logon use their payroll or ID number in order to logon rather than names. Not necessarily 5 numbers however. For example my last organisation my login was B3293016 - would be difficult to distinguish who that is if they then used SSO to check against that login and use it for discourse username and mentions.

9 إعجابات

What @mikechristopher said. The 5 did fit # is our employee I’d. Technically it’s 6, but the zero at the beginning is left off as we haven’t reached numbers greater than 100,000.

Bottom line, again having the feature I described will give corporate/enterprise clients a lot better usability.

Had you not integrated SSO, I’d understand being reluctant to allow full name tags vs username. But you made SSO available, this is a logical next step enhancement

5 إعجابات

I am not against adding this kind of option, but at the moment none of our paying customers need it so I cannot prioritize it.

I would probably recommend building this as a plugin first, this is something I would consider building if an enterprise customer funded it.

9 إعجابات

@mcwumbly have you had any luck with the CSS route?

Haven’t tried it, sorry. Just threw out the idea, but this isn’t something I’ve felt the need to explore too deeply personally.

إعجابَين (2)

Just to beat this dead horse a bit more, one of the barriers we’re having in our group is that people get super easily confused by the usernames. So right now, they have no problems making mentions, but when reading, they often don’t know who the mentioned person is. As such, in our use case, @cpradio (Jim Smith) would be ideal. The user would type in the @mention (let’s say @cpradio) and it automatically turns into @cpradio (Jim Smith) for others to read.

This would be just like the username mentions by each of our posts.

3 إعجابات

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

4 إعجابات

لقد قمت بإنشاء سكريبت سريع يقوم بذلك. وضعته في مكون، داخل قسم </head>، وهو يعمل. يمكن بالتأكيد تحسينه، لكن ها هو.

&lt;script type="text/discourse-plugin" version="0.1"&gt;
    var decorateAtMentions = function($post) {
        $post.find("a.mention").each(function() {
            var $elem = $(this);
            var username = $elem.text().substr(1);
            
            var data = Discourse.User.findByUsername(username).then(function(user) {
                var avatarurl = user.avatar_template.replace("{size}", 18);
                var realname = user.name;
                $elem.before("&lt;img src='"+avatarurl+"' title='"+realname+"'&gt;");
                $elem.attr("title", realname);
                $elem.after("["+realname+"]");
            });
        })
    }
    api.decorateCooked(decorateAtMentions, {id: 'decorate-at-mentions'});
&lt;/script&gt;

العنوان في وسم img يمثل مشكلة محتملة إذا احتوى الاسم على علامة اقتباس مفردة، لذا يجب القيام بذلك “بالطريقة الصحيحة” (أنا شخصياً، سأحذفه على الأرجح لأنني لا أحبه كثيراً).

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

5 إعجابات

يبدو ذلك رائعًا. بالنسبة للمبتدئ، هل تملك دليلًا خطوة بخطوة حول كيفية إضافة ذلك فعليًا إلى مثيل Discourse الخاص بي؟ :slight_smile:

هناك دليل متاح بالفعل، يرجى قراءته

ثم قم بإنشاء مكون السمة الأول الخاص بك.

إعجابَين (2)

@nachof لقد وجدت طريقة لجعلها تعمل: Use fullnames for mentions · GitHub عن طريق تجاوز _show() في component:user-card-contents. أعتقد أن وجود شرطة سفلية في البداية يعني أننا ربما لا ينبغي علينا تجاوزه؟ لكن يبدو أن هذا يعمل:

ربما نحتاج إلى نقطة دخول لاختيار اسم المستخدم من $target؟ على أي حال، كان هذا عائقًا رئيسيًا من وجهة نظري قبل النشر لمجتمعي الأوسع. حان الوقت للمضي قدمًا :smiley:

8 إعجابات

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

ستقوم بإنشاء مكون سمة جديد من واجهة المستخدم وتجربة المستخدم (UX) ثم لصق تلك العناصر في جزء وسم الرأس من السمة.

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

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

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

أنا بصراحة لا تزالُ أشعر بالضياع تمامًا تجاه هذه التعليمات. مساعدتك على What makes a successful volunteer Discourse sysadmin? مفيدة للغاية، لكنني لم أجد ذلك المتطوع بعد.

وفي الوقت نفسه، @jessicah، هل ما زلت متاحةً ربما لتحويل هذا إلى مكون سمة يُنشر في #theme-component؟ أم أن هناك شخصًا آخر قادرًا على إنشاء مكون سمة يعمل؟

إعجابَين (2)

مرحباً @debryc و @OverseersMight،
إذا كنتم لا تزالون مهتمين :slightly_smiling_face:

6 إعجابات