# Wiki

**URL:** https://meta.discourse.org/c/wiki/177.md?page=7

[最新版本](https://meta.discourse.org/latest.md) · [分類](https://meta.discourse.org/categories.md) · [標簽](https://meta.discourse.org/tags.md)

**Page:** 8

---

## [在Wordpress中链接到Discourse主题而不显示评论](https://meta.discourse.org/t/link-to-discourse-topics-in-wordpress-without-displaying-comments/88486)

<div class="topic-metadata">

**Author:** [@simon](https://meta.discourse.org/u/simon)\
**回覆:** 0\
**Last updated:** [2018年五月25日 22:56 UTC](https://meta.discourse.org/t/link-to-discourse-topics-in-wordpress-without-displaying-comments/88486 "2018-05-25T22:56:24Z")

</div>

The WP Discourse plugin now has an option to link to Discourse topics without displaying comments underneath the post. This is enabled by selecting the Link to Comments Without Displaying Them option from the plugin’s Co…

---

## [将现有主题链接到WordPress帖子](https://meta.discourse.org/t/link-an-existing-topic-to-a-wordpress-post/88482)

<div class="topic-metadata">

**Author:** [@simon](https://meta.discourse.org/u/simon)\
**回覆:** 0\
**Last updated:** [2018年五月25日 22:00 UTC](https://meta.discourse.org/t/link-an-existing-topic-to-a-wordpress-post/88482 "2018-05-25T22:00:21Z")

</div>

The WP Discourse plugin lets you link an existing Discourse topic to a WordPress post. To do this, go to the post’s edit page on WordPress and select Link to Existing Topic from the Discourse meta box. In the Topic URL f…

---

## [新用户的技巧与窍门](https://meta.discourse.org/t/trucs-et-astuces-pour-nouveaux-utilisateurs/84100)

<div class="topic-metadata">

**Author:** [@Benjol](https://meta.discourse.org/u/Benjol)\
**回覆:** 0\
**Last updated:** [2018年三月29日 05:27 UTC](https://meta.discourse.org/t/trucs-et-astuces-pour-nouveaux-utilisateurs/84100 "2018-03-29T05:27:19Z")

</div>

Voici quelques astuces pour vous aider à démarrer avec Discourse : Lire Sélectionner le titre d’un sujet vous dirigera toujours vers la nouvelle réponse non lue dans celui-ci. Pour aller au début ↑ ou à la fin ↓, sélect…

---

## [使用 KeyCDN 设置 Discourse](https://meta.discourse.org/t/setup-discourse-with-keycdn/35807)

<div class="topic-metadata">

**Author:** [@CodyArsenault](https://meta.discourse.org/u/CodyArsenault)\
**回覆:** 11\
**Last updated:** [2018年三月13日 15:05 UTC](https://meta.discourse.org/t/setup-discourse-with-keycdn/35807 "2018-03-13T15:05:00Z")

</div>

For those who are using Discourse and are looking to integrate with KeyCDN, here is a quick step-by-step set up guide. Login or sign up for a 30 day free trial if you don’t already have a KeyCDN account. Create a Pu…

---

## [将 UseResponse 论坛迁移到 Discourse](https://meta.discourse.org/t/migrate-a-useresponse-forum-to-discourse/75956)

<div class="topic-metadata">

**Author:** [@Ivan\_Rapekas](https://meta.discourse.org/u/Ivan_Rapekas)\
**回覆:** 0\
**Last updated:** [2017年十二月13日 12:40 UTC](https://meta.discourse.org/t/migrate-a-useresponse-forum-to-discourse/75956 "2017-12-13T12:40:27Z")

</div>

Hello, I am glad to share files with a guide how to migrate from UseResponse forum engine to Discourse. My case looks very custom, in two words: Old schema: Drupal host www.example.com stores users in local mysql da…

---

## [在 WordPress (使用 TwigAnything) 中显示 Data Explorer 查询结果](https://meta.discourse.org/t/display-data-explorer-query-results-in-wordpress-with-twiganything/40956)

<div class="topic-metadata">

**Author:** [@meglio](https://meta.discourse.org/u/meglio)\
**回覆:** 3\
**Last updated:** [2017年十二月5日 04:08 UTC](https://meta.discourse.org/t/display-data-explorer-query-results-in-wordpress-with-twiganything/40956 "2017-12-05T04:08:50Z")

</div>

Data Explorer plugin lets us extract and explore about any data from Discourse. In this tutorial I’ll show you how to display it in WordPress, like this: The data can be displayed in posts/pages, widgets or in Visu…

---

## [在Vultr上安装Discourse并从Kunena3导入](https://meta.discourse.org/t/install-discourse-on-vultr-and-import-from-kunena3/74269)

<div class="topic-metadata">

**Author:** [@frold](https://meta.discourse.org/u/frold)\
**回覆:** 0\
**Last updated:** [2017年十一月17日 14:59 UTC](https://meta.discourse.org/t/install-discourse-on-vultr-and-import-from-kunena3/74269 "2017-11-17T14:59:07Z")

</div>

This guide shows how I was able to setup discourse and import 10.000+ users and 38.000+ posts from kunena. I was running an outdated Joomla! 2.5.28 version with kunena 3.0.8 on top and it was hacked. Therefore I was loo…

---

## [Ansible Playbook 用于安装 Docker、Discourse 和 Postfix](https://meta.discourse.org/t/ansible-playbook-to-install-docker-discourse-and-postfix/62496)

<div class="topic-metadata">

**Author:** [@chrisc](https://meta.discourse.org/u/chrisc)\
**回覆:** 1\
**Last updated:** [2017年十一月8日 11:11 UTC](https://meta.discourse.org/t/ansible-playbook-to-install-docker-discourse-and-postfix/62496 "2017-11-08T11:11:16Z")

</div>

Though I’d post this here since I found a lot of useful help on this forum and perhaps if I leave a note regarding what I learnt and then implemented then it might help someone else in the future. I have helped setup a …

---

## [自定义404页面（"哎呀！该页面不存在或是私有的"）](https://meta.discourse.org/t/customize-the-404-page-oops-that-page-doesnt-exist-or-is-private/68017)

<div class="topic-metadata">

**Author:** [@dax](https://meta.discourse.org/u/dax)\
**回覆:** 0\
**Last updated:** [2017年八月14日 14:31 UTC](https://meta.discourse.org/t/customize-the-404-page-oops-that-page-doesnt-exist-or-is-private/68017 "2017-08-14T14:31:52Z")

</div>

Before: After (categories on the right): Or categories on the left: page width increased buttons and google search are always visible categories aligned on the right (or left) topics title cut if too long adde…

---

## [使用Discourse SSO与Mantis Bug Tracker](https://meta.discourse.org/t/use-discourse-sso-with-mantis-bug-tracker/69236)

<div class="topic-metadata">

**Author:** [@SXX](https://meta.discourse.org/u/SXX)\
**回覆:** 0\
**Last updated:** [2017年九月2日 00:08 UTC](https://meta.discourse.org/t/use-discourse-sso-with-mantis-bug-tracker/69236 "2017-09-02T00:08:00Z")

</div>

Here is the my basic integration for Mantis bug tracker 1.2. It’s might work with newer versions, but someone has to test it. Read the instruction and activate SSO provider in Discourse Install Discourse SSO client s…

---

## [强制Discourse通过CloudFlare使用SSL/HTTPS](https://meta.discourse.org/t/force-discourse-to-use-ssl-https-through-cloudflare/49212)

<div class="topic-metadata">

**Author:** [@kuyashi](https://meta.discourse.org/u/kuyashi)\
**回覆:** 7\
**Last updated:** [2017年七月21日 20:15 UTC](https://meta.discourse.org/t/force-discourse-to-use-ssl-https-through-cloudflare/49212 "2017-07-21T20:15:05Z")

</div>

How to use CloudFlare’s platform to force all traffic over HTTPS connection using page rules. This is an up to date and user-friendly (fool-proof) way that I use each time and it works perfectly. Sign up to CloudFlare h…

---

## [摧毁所有永久链接](https://meta.discourse.org/t/destroy-all-permalinks/65532)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**回覆:** 3\
**Last updated:** [2017年七月3日 17:48 UTC](https://meta.discourse.org/t/destroy-all-permalinks/65532 "2017-07-03T17:48:26Z")

</div>

If you think that only search engines have links to your old URLs, the search engine databases have been updated, and you want to save as much as 20ms on every 404, you can do this: cd /var/disourse/ ./launcher enter ap…

---

## [使用 Zapier 添加自动化指标收集](https://meta.discourse.org/t/add-automated-metrics-collection-with-zapier/52519)

<div class="topic-metadata">

**Author:** [@slagle](https://meta.discourse.org/u/slagle)\
**回覆:** 2\
**Last updated:** [2017年六月23日 13:35 UTC](https://meta.discourse.org/t/add-automated-metrics-collection-with-zapier/52519 "2017-06-23T13:35:57Z")

</div>

Hey guys and gals! I wanted to share with you all a way that I have been using to automate our metrics collection. I am using Zapier to do all of it and it has greatly simplified my life. :slight\_smile: Anyways, since …

---

## [提取最顶部可见帖子内容的书签工具](https://meta.discourse.org/t/bookmarklet-to-extract-the-contents-of-the-topmost-visible-post/64393)

<div class="topic-metadata">

**Author:** [@jmsachs](https://meta.discourse.org/u/jmsachs)\
**回覆:** 3\
**Last updated:** [2017年六月13日 02:23 UTC](https://meta.discourse.org/t/bookmarklet-to-extract-the-contents-of-the-topmost-visible-post/64393 "2017-06-13T02:23:48Z")

</div>

Just wanted to share my solution to major frustration in copying a Discourse post into an Outlook 2007 message (cue numerous sad trombone noises). Perhaps it has other applications. This essentially does the following: …

---

## [在不暴露端口的情况下使用多个Docker容器](https://meta.discourse.org/t/use-multiple-docker-containers-without-exposing-ports/22283)

<div class="topic-metadata">

**Author:** [@jspdng](https://meta.discourse.org/u/jspdng)\
**回覆:** 10\
**Last updated:** [2017年六月2日 09:24 UTC](https://meta.discourse.org/t/use-multiple-docker-containers-without-exposing-ports/22283 "2017-06-02T09:24:03Z")

</div>

:warning: This is an advanced setup. Don’t follow this unless you are experienced with Linux server administration and Docker. Hello everyone! If you don’t want to mess with the firewall rules and security of your se…

---

## [多主机中的样式嵌入](https://meta.discourse.org/t/style-embeds-in-multiple-hosts/62742)

<div class="topic-metadata">

**Author:** [@Patrick\_David](https://meta.discourse.org/u/Patrick_David)\
**回覆:** 0\
**Last updated:** [2017年五月15日 19:57 UTC](https://meta.discourse.org/t/style-embeds-in-multiple-hosts/62742 "2017-05-15T19:57:42Z")

</div>

A while back styling for embedded discourse was added, where we could specify CSS for the embeds. The only problem was when we got the ability to embed in multiple allowed hosts - there was still only the single styling…

---

## [在 Discourse 和提供者之间同步 SSO 登录状态](https://meta.discourse.org/t/synchronize-sso-login-state-between-discourse-and-provider/60464)

<div class="topic-metadata">

**Author:** [@kraml](https://meta.discourse.org/u/kraml)\
**回覆:** 0\
**Last updated:** [2017年四月5日 07:49 UTC](https://meta.discourse.org/t/synchronize-sso-login-state-between-discourse-and-provider/60464 "2017-04-05T07:49:12Z")

</div>

I’m currently working on a website + Discourse SSO integration, the website is SSO provider. I’ve noticed a few tricky things and would like to document it down. Many of the information are from meta itself but are scatt…

---

## [在 Linode 上安装带有 AUFS 的 Docker](https://meta.discourse.org/t/install-docker-with-aufs-on-linode/39831)

<div class="topic-metadata">

**Author:** [@dandv](https://meta.discourse.org/u/dandv)\
**回覆:** 3\
**Last updated:** [2017年二月13日 05:17 UTC](https://meta.discourse.org/t/install-docker-with-aufs-on-linode/39831 "2017-02-13T05:17:31Z")

</div>

The 30-minute Discourse installation guide assumes you’ll be using Digital Ocean and makes no mention of an important requirement for Docker: If you use another hosting provider, you should really make sure that a Linu…

---

## [添加插件的翻译](https://meta.discourse.org/t/add-translation-to-a-plugin/54748)

<div class="topic-metadata">

**Author:** [@Pad\_Pors](https://meta.discourse.org/u/Pad_Pors)\
**回覆:** 0\
**Last updated:** [2016年十二月24日 16:14 UTC](https://meta.discourse.org/t/add-translation-to-a-plugin/54748 "2016-12-24T16:14:13Z")

</div>

go to the github repository of the plugin, e. g. discourse-canned-replies. go to /config/locales folder of the plugin. you should see some yml files, like client.en.yml and server.en.yml. the client file is for th…

---

## [将帖子内容整理成 Telegram 群组的主题](https://meta.discourse.org/t/create-topics-from-a-posts-to-telegram-group/54319)

<div class="topic-metadata">

**Author:** [@nukeador](https://meta.discourse.org/u/nukeador)\
**回覆:** 7\
**Last updated:** [2016年十二月19日 23:01 UTC](https://meta.discourse.org/t/create-topics-from-a-posts-to-telegram-group/54319 "2016-12-19T23:01:31Z")

</div>

With the new IFTTT Telegram channel I’ve managed to set up an applet so everyone in a Telegram group can create new topics in a discourse category just by texting on the Telegram group. Why? Because real time communicat…

---

## [从MVCforum迁移到Discourse](https://meta.discourse.org/t/migrate-from-mvcforum-to-discourse/53746)

<div class="topic-metadata">

**Author:** [@Viir](https://meta.discourse.org/u/Viir)\
**回覆:** 3\
**Last updated:** [2016年十二月11日 16:23 UTC](https://meta.discourse.org/t/migrate-from-mvcforum-to-discourse/53746 "2016-12-11T16:23:48Z")

</div>

I recently wrote some code to import from MVCforum: The import logic can be found at https://github.com/Viir/import-to-discourse, packaged as an easy to use commandline tool. It builds the SQL code needed to add the co…

---

## [WP Discourse 插件的技巧与窍门](https://meta.discourse.org/t/wp-discourse-plugin-tips-and-tricks/50757)

<div class="topic-metadata">

**Author:** [@simon](https://meta.discourse.org/u/simon)\
**回覆:** 0\
**Last updated:** [2016年九月27日 21:06 UTC](https://meta.discourse.org/t/wp-discourse-plugin-tips-and-tricks/50757 "2016-09-27T21:06:22Z")

</div>

This topic has a number of tips and tricks for users of the WP Discourse WordPress plugin. Adjust the comments\_number sync period for WordPress archive pages To get the correct number of Discourse comments for a post, t…

---

## [自定义电子邮件通知页脚，包括私密回复和查看用户资料的链接](https://meta.discourse.org/t/customize-email-notification-footer-with-links-to-reply-privately-and-see-user-profiles/50305)

<div class="topic-metadata">

**Author:** [@scombs](https://meta.discourse.org/u/scombs)\
**回覆:** 0\
**Last updated:** [2016年九月18日 20:20 UTC](https://meta.discourse.org/t/customize-email-notification-footer-with-links-to-reply-privately-and-see-user-profiles/50305 "2016-09-18T20:20:09Z")

</div>

To help transition listserv and email users to the online forum, I added the following footer to the reply-by-email notification. I thought I would share. The email footer View Thread or reply to this email. Your respo…

---

## [向对您的 Discourse 发出的请求添加自定义 HTTP 头](https://meta.discourse.org/t/add-a-custom-http-header-to-requests-made-to-your-discourse/26439)

<div class="topic-metadata">

**Author:** [@riking](https://meta.discourse.org/u/riking)\
**回覆:** 5\
**Last updated:** [2016年九月12日 04:12 UTC](https://meta.discourse.org/t/add-a-custom-http-header-to-requests-made-to-your-discourse/26439 "2016-09-12T04:12:35Z")

</div>

Add this to your app.yml: ## Remember, this is YAML syntax - you can only have one block with a name run: - exec: echo "Beginning of custom commands" # A man's not dead while his name is still spoken. - replace: …

---

## [使用 Let's Encrypt 配置 Apache 代理](https://meta.discourse.org/t/configure-apache-proxy-with-lets-encrypt/46139)

<div class="topic-metadata">

**Author:** [@tarek](https://meta.discourse.org/u/tarek)\
**回覆:** 0\
**Last updated:** [2016年六月21日 18:06 UTC](https://meta.discourse.org/t/configure-apache-proxy-with-lets-encrypt/46139 "2016-06-21T18:06:35Z")

</div>

:warning: Using Apache as a proxy is not recommended as Apache Httpd uses thread-per-connection model, and will likely run out of threads very fast as Discourse uses long polling. (related). The goal of this post is t…

---

## [度假自动回复的筛选规则](https://meta.discourse.org/t/sieve-rules-for-vacation-email-replies/43987)

<div class="topic-metadata">

**Author:** [@carlokok](https://meta.discourse.org/u/carlokok)\
**回覆:** 0\
**Last updated:** [2016年五月10日 11:59 UTC](https://meta.discourse.org/t/sieve-rules-for-vacation-email-replies/43987 "2016-05-10T11:59:37Z")

</div>

I’ve started collecting custom sieve rules for imap for all the vacation email replies we get, here’s my script if anyone is interested: require \["copy","fileinto"\]; # rule:\[sa\] if header :contains "x-spam-level" "\*\*\*\*\*…

---

## [使插件模板本地化友好](https://meta.discourse.org/t/making-plugin-templates-localization-friendly/40952)

<div class="topic-metadata">

**Author:** [@Mittineague](https://meta.discourse.org/u/Mittineague)\
**回覆:** 0\
**Last updated:** [2016年三月13日 03:04 UTC](https://meta.discourse.org/t/making-plugin-templates-localization-friendly/40952 "2016-03-13T03:04:20Z")

</div>

If you are familiar with WordPress plugins, you may have noticed that the more popular ones take advantage of gettext so that their text can be translated. It takes a little bit of effort to wrap text inside of function…

---

## [通过 API 暂停用户](https://meta.discourse.org/t/suspend-a-user-via-the-api/36810)

<div class="topic-metadata">

**Author:** [@SylvainKalache](https://meta.discourse.org/u/SylvainKalache)\
**回覆:** 0\
**Last updated:** [2015年十二月16日 23:38 UTC](https://meta.discourse.org/t/suspend-a-user-via-the-api/36810 "2015-12-16T23:38:23Z")

</div>

If you use Discourse web interface, you can go to the route /admin/users/:username and then use the suspend button. You can find the suspend method in UsersController. To suspend a user via the API, use /admin/users/:us…

---

## [将Jive Clearspace论坛迁移到Discourse](https://meta.discourse.org/t/migrate-a-jive-clearspace-forum-to-discourse/36761)

<div class="topic-metadata">

**Author:** [@MikhailVink](https://meta.discourse.org/u/MikhailVink)\
**回覆:** 0\
**Last updated:** [2015年十二月15日 22:44 UTC](https://meta.discourse.org/t/migrate-a-jive-clearspace-forum-to-discourse/36761 "2015-12-15T22:44:38Z")

</div>

Recently we’ve successfully migrated from Jive Clearspace platform to the Discourse for Kotlin community forums by JetBrains, so I’d like to share experience on such migration which some of you might find useful in the f…

---

## [为你的网页上的嵌入式Discourse框架添加样式](https://meta.discourse.org/t/style-the-embedded-discourse-frame-on-your-web-page/35861)

<div class="topic-metadata">

**Author:** [@DoubleMalt](https://meta.discourse.org/u/DoubleMalt)\
**回覆:** 0\
**Last updated:** [2015年十一月20日 22:35 UTC](https://meta.discourse.org/t/style-the-embedded-discourse-frame-on-your-web-page/35861 "2015-11-20T22:35:57Z")

</div>

How to style the embedded Discourse frame on your web page Getting Started To get started you have to create a new CSS stylesheet under admin -\> customize -\> css/html, even if you don’t want to change the normal styling …

[上一頁](https://meta.discourse.org/c/wiki/177.md?page=6)

[下一頁](https://meta.discourse.org/c/wiki/177.md?page=8)
