# 更改“无效链接”消息

**URL:** https://meta.discourse.org/t/change-invalid-link-message/180622
**Category:** Support
**Created:** [2021年二月21日 18:58 UTC](https://meta.discourse.org/t/change-invalid-link-message/180622 "2021-02-21T18:58:47Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![AndyBr](https://avatars.discourse-cdn.com/v4/letter/a/ce73a5/32.png) [@AndyBr](https://meta.discourse.org/u/AndyBr)
#### Post date: [2021年二月21日 18:58 UTC](https://meta.discourse.org/t/change-invalid-link-message/180622/1 "2021-02-21T18:58:47Z")

</div>

我有一些主题需要更高的信任等级才能访问，但我在公开区域提供了这些主题的链接。当有人点击这些链接时，会显示“链接无效”或“无权限”错误。  
是否有办法自定义此类主题链接，使其显示为“您需要达到信任等级 X 才能访问此主题”或类似提示？

---

<div class="post-metadata">

### Author: ![omarfilip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/omarfilip/32/208019_2.png) [@omarfilip](https://meta.discourse.org/u/omarfilip)
#### Post date: [2021年二月21日 19:21 UTC](https://meta.discourse.org/t/change-invalid-link-message/180622/2 "2021-02-21T19:21:24Z")

</div>

任何 Discourse 文本都可以自定义：

> [@Customize text in Discourse](https://meta.discourse.org/t/customize-all-text-in-discourse/36092?u=omarfilip):
>
> bookmark This is a guide for customizing text in Discourse via the admin interface, enabling changes to various UI elements. person_raising_hand Required user level: Administrator In Discourse, you can customize all of the text via the admin interface. This can be useful for tailoring the user experience to better fit the particular tone or branding of your community. Summary This guide will cover: Accessing the text customization interface Editing text strings Identifying translatio…

---

<div class="post-metadata">

### Author: ![AndyBr](https://avatars.discourse-cdn.com/v4/letter/a/ce73a5/32.png) [@AndyBr](https://meta.discourse.org/u/AndyBr)
#### Post date: [2021年二月21日 19:23 UTC](https://meta.discourse.org/t/change-invalid-link-message/180622/3 "2021-02-21T19:23:04Z")

</div>

谢谢。现在只需弄清楚是哪段文字！🙂

---

<div class="post-metadata">

### Author: ![omarfilip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/omarfilip/32/208019_2.png) [@omarfilip](https://meta.discourse.org/u/omarfilip)
#### Post date: [2021年二月21日 19:24 UTC](https://meta.discourse.org/t/change-invalid-link-message/180622/4 "2021-02-21T19:24:30Z")

</div>

复制您想要更改的消息中的一小段，并将其粘贴到搜索框中。

---

<div class="post-metadata">

### Author: ![AndyBr](https://avatars.discourse-cdn.com/v4/letter/a/ce73a5/32.png) [@AndyBr](https://meta.discourse.org/u/AndyBr)
#### Post date: [2021年二月21日 19:31 UTC](https://meta.discourse.org/t/change-invalid-link-message/180622/5 "2021-02-21T19:31:15Z")

</div>

好的，我找到了那段文本，但我推测无效链接和私密主题显示的文本是一样的。有没有办法将这两者区分开来？  
真正的无效链接应该显示一条不同于“主题无法访问”的提示信息。

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [2021年三月23日 19:31 UTC](https://meta.discourse.org/t/change-invalid-link-message/180622/6 "2021-03-23T19:31:59Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
