# 用户隐藏的个人资料页面布局错乱

**URL:** https://meta.discourse.org/t/broken-layout-on-users-hidden-profile-page/282648
**Category:** Support
**Created:** [2023年十月18日 13:55 UTC](https://meta.discourse.org/t/broken-layout-on-users-hidden-profile-page/282648 "2023-10-18T13:55:10Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Goorman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/goorman/32/334104_2.png) [@Goorman](https://meta.discourse.org/u/Goorman)
#### Post date: [2023年十月18日 13:55 UTC](https://meta.discourse.org/t/broken-layout-on-users-hidden-profile-page/282648/1 "2023-10-18T13:55:11Z")

</div>

您好，我来自 [https://blenderartists.org/](https://blenderartists.org/)

我注意到，如果您尝试在新标签页中打开私人用户个人资料，它将显示损坏的布局，有时会重复显示相同的字段两次或更多次（似乎是重复的循环）。在 Discourse 最近更新之前，情况并非如此。

示例：

 ![Bug](https://global.discourse-cdn.com/meta/original/4X/1/6/6/16644dbeb11fdfdebb9d1dcd6dc139b2738f2259.png)

重现错误的步骤：

1. 在新标签页中打开某人的隐藏个人资料。不是用鼠标左键单击，而是用鼠标滚轮在新标签页中打开它。
2. 就是这样。

有时甚至可能显示页面已停止响应。

感谢您的关注。

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [2023年十月18日 14:27 UTC](https://meta.discourse.org/t/broken-layout-on-users-hidden-profile-page/282648/2 "2023-10-18T14:27:51Z")

</div>

Sergey，您好，欢迎！👋

看起来 [Clickable Social Icon Links on Profile](https://meta.discourse.org/t/clickable-social-icon-links-on-profile/158136) 组件在此情况下存在问题。

> **浏览器控制台**
>
> ![image](https://global.discourse-cdn.com/meta/original/4X/3/6/d/36d4bc75f68b39e13af2f922b80b1bb51c049caa.png)  
> ![image](https://global.discourse-cdn.com/meta/original/4X/5/9/1/591635991661c27c1cceebd815d9ccd0831b6ee0.png)

具体来说是这里：[https://github.com/weallwegot/discourse-social-links-clickable/blob/master/common/head\_tag.html#L146](https://github.com/weallwegot/discourse-social-links-clickable/blob/master/common/head_tag.html#L146)

作者似乎不活跃。  
我将 fork 该组件，看看是否能修复它。🙂

---

<div class="post-metadata">

### Author: ![Goorman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/goorman/32/334104_2.png) [@Goorman](https://meta.discourse.org/u/Goorman)
#### Post date: [2023年十月18日 14:31 UTC](https://meta.discourse.org/t/broken-layout-on-users-hidden-profile-page/282648/3 "2023-10-18T14:31:30Z")

</div>

您好，@Arkshine

感谢您的快速回复！

我是新来的，这可能听起来很愚蠢，但我只是在注册这个网站时没有找到我问题的答案，所以我想问一下您是否介意：在 [meta.discourse.org](http://meta.discourse.org) 上拥有一个账户是免费的吗？我知道 Discourse 本身是一个付费的 CMS，所以这就是我问的原因。

提前感谢。

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [2023年十月18日 14:40 UTC](https://meta.discourse.org/t/broken-layout-on-users-hidden-profile-page/282648/4 "2023-10-18T14:40:33Z")

</div>

您好 @Goorman 👋 欢迎来到 Meta 🙂

加入 Discourse Meta 完全免费 :discourse:

> [@Arkshine](#):
>
> 看起来 [个人资料上的可点击社交图标链接](https://meta.discourse.org/t/clickable-social-icon-links-on-profile/158136) 组件在此情况下存在问题。

抓得好！我刚才也在看那里，但还没发现这个问题。

---

<div class="post-metadata">

### Author: ![Goorman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/goorman/32/334104_2.png) [@Goorman](https://meta.discourse.org/u/Goorman)
#### Post date: [2023年十月18日 14:43 UTC](https://meta.discourse.org/t/broken-layout-on-users-hidden-profile-page/282648/5 "2023-10-18T14:43:09Z")

</div>

你好，@Lilly，谢谢你的回答！

你说“肯定”是指仍然有一些付费优惠，比如购买托管服务等等，对吗？

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [2023年十月18日 14:44 UTC](https://meta.discourse.org/t/broken-layout-on-users-hidden-profile-page/282648/6 "2023-10-18T14:44:02Z")

</div>

您根本不需要购买或支付任何费用。您甚至可以只是一个对 Discourse 感兴趣并有疑问或想了解更多信息的人。这里没有任何附加条件。

---

<div class="post-metadata">

### Author: ![Goorman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/goorman/32/334104_2.png) [@Goorman](https://meta.discourse.org/u/Goorman)
#### Post date: [2023年十月18日 14:44 UTC](https://meta.discourse.org/t/broken-layout-on-users-hidden-profile-page/282648/7 "2023-10-18T14:44:56Z")

</div>

哦，非常感谢。由于我不是母语者，有时很难理解某些句子的部分内容。

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [2023年十月18日 14:46 UTC](https://meta.discourse.org/t/broken-layout-on-users-hidden-profile-page/282648/8 "2023-10-18T14:46:38Z")

</div>

我们也提供托管服务，并且有合作伙伴组织提供支持和 Discourse 托管服务。例如，[Discourse 托管](https://www.discourse.org/pricing)、[Literate Computing](https://www.literatecomputing.com/) 或 [Communiteq](https://www.communiteq.com/)。但加入此论坛并非强制。 🙂

---

<div class="post-metadata">

### Author: ![Goorman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/goorman/32/334104_2.png) [@Goorman](https://meta.discourse.org/u/Goorman)
#### Post date: [2023年十月18日 14:49 UTC](https://meta.discourse.org/t/broken-layout-on-users-hidden-profile-page/282648/9 "2023-10-18T14:49:43Z")

</div>

是的，这正是我决定问这个问题的原因。我刚刚看到了一些付费服务，尽管我免费创建了一个账户，但我还是决定问一下。如果我的问题很愚蠢，我再次为此道歉。🙈

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [2023年十月18日 15:19 UTC](https://meta.discourse.org/t/broken-layout-on-users-hidden-profile-page/282648/10 "2023-10-18T15:19:56Z")

</div>

> [@Goorman](#):
>
> 我知道 Discourse 本身是一个付费 CMS，所以才问的。

值得一提的是，Discourse 并不是一个“付费 CMS”。

Discourse 是一个免费且开源的论坛软件。你可以免费下载该软件并在家中运行它，我们甚至为此编写了指南 [Discourse on a Raspberry Pi | Blog](https://meta.discourse.org/t/discourse-on-a-raspberry-pi-blog/211357)。同样，你也可以在学校或公司内部运行它，而且所有这些都是免费的。

我们确实提供付费托管服务，因为有许多人需要论坛，并且需要高可用性或其他使其有意义的外部专业服务要求。

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [2023年十月18日 16:03 UTC](https://meta.discourse.org/t/broken-layout-on-users-hidden-profile-page/282648/11 "2023-10-18T16:03:05Z")

</div>

我已在官方组件上提交了一个 PR。看看它是否会被合并。🙂

> <https://github.com/weallwegot/discourse-social-links-clickable/pull/13>
>
> Reported here: https://meta.discourse.org/t/broken-layout-on-users-hidden-profil…e-page/282648
> 
> If the user's public profile is hidden, there are no user fields provided.

如果出于某种原因，作者没有响应，请禁用该组件，然后您可以安装我的 fork：

 ![image](https://global.discourse-cdn.com/meta/original/4X/d/c/9/dc9e35314adb95fa3cae631d09a4c6e5d549e387.png)

- URL：`https://github.com/Arkshine/discourse-social-links-clickable.git`

注意：如果您进行了更改，则必须重新应用您的设置。

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [2023年十月18日 16:11 UTC](https://meta.discourse.org/t/broken-layout-on-users-hidden-profile-page/282648/12 "2023-10-18T16:11:06Z")

</div>

我做得很好，我的朋友！ 🙂 👏

---

<div class="post-metadata">

### Author: ![Goorman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/goorman/32/334104_2.png) [@Goorman](https://meta.discourse.org/u/Goorman)
#### Post date: [2023年十月18日 16:29 UTC](https://meta.discourse.org/t/broken-layout-on-users-hidden-profile-page/282648/13 "2023-10-18T16:29:04Z")

</div>

@Falco，谢谢！坦白说，我甚至都不知道。我以前一直以为 Discourse 是一个付费平台 🙂 我从 2012 年就开始使用 WordPress，已经习惯了开源平台，你可以随心所欲地更改一切。

> [@Arkshine](#):
>
> 注意：如果你进行了更改，将需要重新应用你的设置。

我已经将此帖的链接发送到 [blenderartists.org](http://blenderartists.org)，让其他人知道，因为我只是那里的普通用户 🙂

@Arkshine  
@Falco  
@Lilly

再次感谢大家！🙂

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [2023年十月18日 16:49 UTC](https://meta.discourse.org/t/broken-layout-on-users-hidden-profile-page/282648/14 "2023-10-18T16:49:44Z")

</div>

> [@Goorman](#):
>
> 坦白说，我甚至都不知道。我以前以为 Discourse 是一个付费平台 🙂

是的，我们现在经常遇到这种情况 😅

> [@Goorman](#):
>
> 我从 2012 年开始接触 WordPress，并且已经习惯了开源平台，在那里你可以改变任何你想要的东西。

Discourse 本身就是明确模仿 WordPress 的，而且在这里你也可以改变任何你想要的东西。

话虽如此，由于 Web 开发已经从每个页面都是单个脚本转向 Web 框架，并且高度定制化的 WordPress 实例变成了安全噩梦，因此对于 Discourse，我们采用了将更改作为插件和主题发布模型，所以虽然在更新时你可能仍然需要做一些工作，但你可以在我们现有的可扩展性接口之上构建一个插件，使其更加健壮，并且在更新时少一些麻烦。

---

<div class="post-metadata">

### Author: ![Goorman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/goorman/32/334104_2.png) [@Goorman](https://meta.discourse.org/u/Goorman)
#### Post date: [2023年十月18日 16:55 UTC](https://meta.discourse.org/t/broken-layout-on-users-hidden-profile-page/282648/15 "2023-10-18T16:55:12Z")

</div>

我记得以前人们用 Microsoft Word 创建网页的时候 😃 那真是美好的时光。

附注：仍然怀念那种“凸起”的设计，所有按钮都有阴影之类的 🙂

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [2023年十月18日 22:10 UTC](https://meta.discourse.org/t/broken-layout-on-users-hidden-profile-page/282648/16 "2023-10-18T22:10:52Z")

</div>

@weallwegot 感谢合并修复！👍

@Goorman 如果您仍在使用官方组件，现在可以更新了！

---

<div class="post-metadata">

### Author: ![Goorman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/goorman/32/334104_2.png) [@Goorman](https://meta.discourse.org/u/Goorman)
#### Post date: [2023年十月19日 17:22 UTC](https://meta.discourse.org/t/broken-layout-on-users-hidden-profile-page/282648/17 "2023-10-19T17:22:02Z")

</div>

您好，@Arkshine

感谢告知！由于我不是Blenderartists.org的所有者，我会将此事告知那里的版主。

再次感谢 🙂

---

<div class="post-metadata">

### Author: ![Goorman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/goorman/32/334104_2.png) [@Goorman](https://meta.discourse.org/u/Goorman)
#### Post date: [2023年十月19日 19:01 UTC](https://meta.discourse.org/t/broken-layout-on-users-hidden-profile-page/282648/18 "2023-10-19T19:01:40Z")

</div>

@bartv，嘿，哥们 🙂

我最近开了一个关于隐藏用户个人资料问题的帖子，现在已经修复了。@Arkshine 说你需要从你这边更新一个模块。

---

<div class="post-metadata">

### Author: ![Goorman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/goorman/32/334104_2.png) [@Goorman](https://meta.discourse.org/u/Goorman)
#### Post date: [2023年十月20日 14:24 UTC](https://meta.discourse.org/t/broken-layout-on-users-hidden-profile-page/282648/19 "2023-10-20T14:24:47Z")

</div>

下午好，@Arkshine！

首先，感谢您为解决此问题所付出的努力，但似乎问题仍未解决 ☹ 问题依然存在。我已请 Bart 从他的角度进行检查，但情况仍然相同。

附注：主题组件已更新。

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [2023年十月20日 14:35 UTC](https://meta.discourse.org/t/broken-layout-on-users-hidden-profile-page/282648/20 "2023-10-20T14:35:06Z")

</div>

Sergey，您好！

我查看了您的论坛；我看到了错误，但您的论坛上的组件尚未更新（听起来不像缓存问题，您也没有使用 CDN）。 🤔

 ![image](https://global.discourse-cdn.com/meta/original/4X/c/d/7/cd7860515617a32ce237ee15fedc7f972096fbf7.png)

[https://github.com/weallwegot/discourse-social-links-clickable/blob/master/common/head\_tag.html#L140-L147](https://github.com/weallwegot/discourse-social-links-clickable/blob/master/common/head_tag.html#L140-L147)

[下一頁](https://meta.discourse.org/t/broken-layout-on-users-hidden-profile-page/282648.md?page=2)
