# 为用户设置主组

**URL:** https://meta.discourse.org/t/setting-a-primary-group-for-users/25857
**Category:** Site Management
**Tags:** groups, explanation
**Created:** [2015年三月1日 16:22 UTC](https://meta.discourse.org/t/setting-a-primary-group-for-users/25857 "2015-03-01T16:22:58Z")
**Posts on this page:** 1
**Showing post:** 17

<div class="post-metadata">

### Author: ![Heliosurge](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/heliosurge/32/571810_2.png) [@Heliosurge](https://meta.discourse.org/u/Heliosurge)
#### Post date: [2025年一月25日 09:53 UTC](https://meta.discourse.org/t/setting-a-primary-group-for-users/25857/17 "2025-01-25T09:53:19Z")

</div>

你是否希望为自动组添加头像徽章？

如果是的话，这个 #Customization > Theme component 可以为信任等级添加额外的徽章，这与组徽章是分开的。

> [@信任等级头像边框](https://meta.discourse.org/t/trust-level-avatar-flair/82656):
>
> 此主题组件允许管理员根据用户的信任级别为用户头像添加装饰。信任级别装饰会显示在网站上任何通常显示群组装饰的位置。有一些主题设置可以调整装饰相对于头像的位置。 基本示例（已包含群组装饰） 此外，还有一个右下角位置，根据您如何设置 “群组装饰始终在最上层” 选项，该位置要么会替换群组装饰，要么被群组装饰替换。 主要设置 使用图片作为装饰 您需要将自定义的装饰图片添加到主题组件中。推荐尺寸约为 100×100 像素。我在上述示例中使用的尺寸为 88×88 像素。如果您需要，可以在此处下载透明模板图片以开始操作：[此处](https://github.com/tshenry/discourse-trust-level-avatar-flair/blob/master/assets/template.png)： 上传图片最简单的方法是创建一个单独的本地组件 “信任级别头像装饰资源”（不熟悉者可参考 [此处](https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966#heading--2-3) 的说明）。查看资源组件时，在主题组件的 上传 部分下选择 + 添加 按钮，然后选择您的装饰图片文件。对每个要包含的装饰图片重复此操作。上传图片后，右键点击图片链接并复制图片的 URL。最后，将 URL 粘贴到您选择的信任级别字段中。

---

_[View the full topic](https://meta.discourse.org/t/setting-a-primary-group-for-users/25857)._
