# كيفية إضافة رمز بجوار اسم شخص ما

**URL:** https://meta.discourse.org/t/how-to-add-a-symbol-next-to-someone-s-name/206014
**Category:** Support
**Created:** [14 أكتوبر 2021، 12:49ص UTC](https://meta.discourse.org/t/how-to-add-a-symbol-next-to-someone-s-name/206014 "2021-10-14T00:49:38Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![BodieBlox](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bodieblox/32/236343_2.png) [@BodieBlox](https://meta.discourse.org/u/BodieBlox)
#### Post date: [14 أكتوبر 2021، 12:49ص UTC](https://meta.discourse.org/t/how-to-add-a-symbol-next-to-someone-s-name/206014/1 "2021-10-14T00:49:38Z")

</div>

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

---

<div class="post-metadata">

### Author: ![HAWK](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hawk/32/86627_2.png) [@HAWK](https://meta.discourse.org/u/HAWK)
#### Post date: [14 أكتوبر 2021، 1:22ص UTC](https://meta.discourse.org/t/how-to-add-a-symbol-next-to-someone-s-name/206014/2 "2021-10-14T01:22:23Z")

</div>

ألقِ نظرة على أوسمة الصور الرمزية، فأنا أعتقد أن هذا قد يكون ما تبحث عنه.

> [@Add group flair on member avatars](https://meta.discourse.org/t/automatically-add-group-flair-to-members-avatars/82700):
>
> bookmark This is a guide for configuring automatic group flair on user avatars in Discourse. person_raising_hand Required user level: Administrator Automatically add group flair to members’ avatars Group avatar flair displays to the bottom-right of a user’s avatar, providing a stylish way to highlight a user’s group membership. When creating or configuring a group, an admin can choose an image or [Font Awesome](https://fontawesome.com) icon to use as group flair. Summary This guide cover…

---

<div class="post-metadata">

### Author: ![BodieBlox](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bodieblox/32/236343_2.png) [@BodieBlox](https://meta.discourse.org/u/BodieBlox)
#### Post date: [14 أكتوبر 2021، 1:54ص UTC](https://meta.discourse.org/t/how-to-add-a-symbol-next-to-someone-s-name/206014/3 "2021-10-14T01:54:16Z")

</div>

شكرًا لك! (20 حرفًا)

---

<div class="post-metadata">

### Author: ![BodieBlox](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bodieblox/32/236343_2.png) [@BodieBlox](https://meta.discourse.org/u/BodieBlox)
#### Post date: [14 أكتوبر 2021، 7:16م UTC](https://meta.discourse.org/t/how-to-add-a-symbol-next-to-someone-s-name/206014/4 "2021-10-14T19:16:57Z")

</div>

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

 ![image](https://global.discourse-cdn.com/meta/original/3X/4/f/4f0727e54a78fb1514b46277e86a4adcaf93cbc9.jpeg)

---

<div class="post-metadata">

### Author: ![ondrej](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ondrej/32/198804_2.png) [@ondrej](https://meta.discourse.org/u/ondrej)
#### Post date: [14 أكتوبر 2021، 8:05م UTC](https://meta.discourse.org/t/how-to-add-a-symbol-next-to-someone-s-name/206014/5 "2021-10-14T20:05:55Z")

</div>

هل سيساعد هذا؟

> [@Post Badges](https://meta.discourse.org/t/post-badges-component/114722):
>
> discourse2Summary Post Badges will add earned badges next to a post author’s username. Specific badges to display can be adjusted through a theme setting.eyeglassesPreview [Preview on theme-creator.discourse.org](https://theme-creator.discourse.org/theme/tshenry/post-badges)hammer_and_wrenchRepository Link [https://github.com/discourse/discourse-post-badges](https://github.com/discourse/discourse-post-badges)open_bookNew to Discourse Themes? [Beginner’s guide to using Discourse Themes](https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966) Install this theme component Key features Support for both default and custom …

---

<div class="post-metadata">

### Author: ![BodieBlox](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bodieblox/32/236343_2.png) [@BodieBlox](https://meta.discourse.org/u/BodieBlox)
#### Post date: [14 أكتوبر 2021، 8:51م UTC](https://meta.discourse.org/t/how-to-add-a-symbol-next-to-someone-s-name/206014/6 "2021-10-14T20:51:21Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [14 أكتوبر 2021، 9:20م UTC](https://meta.discourse.org/t/how-to-add-a-symbol-next-to-someone-s-name/206014/7 "2021-10-14T21:20:26Z")

</div>

> [@Make staff users more recognizable with customized avatars, posts, and mentions](https://meta.discourse.org/t/how-to-make-a-staff-user-more-recognizable/142794):
>
> There are various methods that can be used to make a staff user immediately recognizable to other users. Show moderator shield Any staff user who is moderator, or admin and moderator, will have the moderator shield next to the username. left_speech_bubble Tips: the shield will not appear if the staff user has the role of admin but not moderator. CSS to change color of the shield play_button Change color for all Staff usersplay_button Change color differentiating ADMIN users from MOD users CSS to h…

---

<div class="post-metadata">

### Author: ![BodieBlox](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bodieblox/32/236343_2.png) [@BodieBlox](https://meta.discourse.org/u/BodieBlox)
#### Post date: [14 أكتوبر 2021، 9:25م UTC](https://meta.discourse.org/t/how-to-add-a-symbol-next-to-someone-s-name/206014/8 "2021-10-14T21:25:25Z")

</div>

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

---

<div class="post-metadata">

### Author: ![tshenry](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tshenry/32/119495_2.png) [@tshenry](https://meta.discourse.org/u/tshenry)
#### Post date: [15 أكتوبر 2021، 11:26م UTC](https://meta.discourse.org/t/how-to-add-a-symbol-next-to-someone-s-name/206014/12 "2021-10-15T23:26:04Z")

</div>

لدينا شيء في واجهة البرنامج الإضافي (plugin-api) يمكن أن يساعد: [discourse/app/assets/javascripts/discourse/app/lib/plugin-api.js at 7c7dd2335bb8590935ca6f7c19cec1f07a61412f · discourse/discourse · GitHub](https://github.com/discourse/discourse/blob/7c7dd2335bb8590935ca6f7c19cec1f07a61412f/app/assets/javascripts/discourse/app/lib/plugin-api.js#L327-L351)

إليك مثال يمكنك وضعه في قسم `<head>` من سِماتك:

```xml
<script type="text/discourse-plugin" version="0.11">
  api.addPosterIcon((cfs, attrs) => {
    if (attrs.primary_group_name === "MY_GROUP_NAME") {
      return { icon: 'shield-alt', className: 'staff', title: 'staff' };
    }
  });
</script>

```

ستحتاج إلى استبدال `MY_GROUP_NAME` في الكود أعلاه باسم مجموعتك الفعلي.

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