Title: External Linker
Author: jstar198
Published: <strong>2009 年 7 月 27 日</strong>
Last modified: 2009 年 8 月 9 日

---

搜尋外掛

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](https://s.w.org/plugins/geopattern-icon/external-linker.svg)

# External Linker

 由 [jstar198](https://profiles.wordpress.org/jstar198/) 開發

[下載](https://downloads.wordpress.org/plugin/external-linker.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/external-linker/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/external-linker/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/external-linker/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/external-linker/#developers)

 [技術支援](https://wordpress.org/support/plugin/external-linker/)

## 外掛說明

You know how `target="_blank"` is invalid in XHTML strict? Well, this plugin uses
a Javascript hack to get around this. The code was originally taken from this thread
I came across: http://www.webmasterworld.com/forum21/11165.htm

For posts/pages, the plugin will automatically captures any `target="_blank"`‘s 
inserted by the WP editor and modifies them to keep the page XHTML Strict valid.
Then some small Javascript is inserted into each page which re-inserts `target="
_blank"` so that the functionality is restored _after_ your page has been validated!

For non-post/page content (eg templates/widgets), simply give your outbound links
a class name of `external`, and the rest will be done automatically while keeping
your page XHTML valid.

### To Do

Future things I plan to add:

 * Integration into WP edit page to allow use of plugin without manually editing
   HTML.

## 安裝方式

 1. Upload/Copy plugin to your blog.
 2. Activate it.
 3. In posts & pages, links containing `target="_blank"` will be handled automatically.(
    This can be turned off by setting `EXTERNAL_LINKER_USE_FILTER` to `false` in the
    plugin file.)
 4. For templates & widgets, instead of using `target="_blank"` simply give your links
    a class name of `external`. (This name can be changed by editing `EXTERNAL_LINKER_CLASS_NAME`
    in the plugin file.)

## 常見問題集

  How does this affect my styles/CSS?

Not at all. The external class name is not used for any styling purposes, and you
can just combine it with whatever class names you’re already using, eg: `class="
external my-other-class"`

  Does this work on admin pages?

No, it only modifies links on non-admin pages (this is by design).

  Can I change the required class name from `external`?

Yes, simply open `external-linker.php` and change the `EXTERNAL_LINKER_CLASS_NAME`
constant.

  Can I turn off the automatic post filter?

Yes, simply open `external-linker.php` and change the `EXTERNAL_LINKER_USE_FILTER`
constant to `false`.

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈External Linker〉的開發相關工作。

參與者

 *   [ jstar198 ](https://profiles.wordpress.org/jstar198/)

[將〈External Linker〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/external-linker)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/external-linker/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/external-linker/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/external-linker/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/external-linker/)。

## 變更記錄

#### 0.2

 * Added automatic post filter.

#### 0.1

 * Creation of plugin!

## 中繼資料

 *  版本 **0.2**
 *  最後更新 **17 年前**
 *  啟用安裝數 **10+**
 *  已測試相容的 WordPress 版本 **2.8.3**
 *  語言
 * [English (US)](https://wordpress.org/plugins/external-linker/)
 * 標籤:
 * [blank](https://tw.wordpress.org/plugins/tags/blank/)[external](https://tw.wordpress.org/plugins/tags/external/)
   [link](https://tw.wordpress.org/plugins/tags/link/)[target](https://tw.wordpress.org/plugins/tags/target/)
   [validation](https://tw.wordpress.org/plugins/tags/validation/)
 *  [進階檢視](https://tw.wordpress.org/plugins/external-linker/advanced/)

## 評分

這個項目尚無任何評論記錄。

[Your review](https://wordpress.org/support/plugin/external-linker/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/external-linker/reviews/)

## 參與者

 *   [ jstar198 ](https://profiles.wordpress.org/jstar198/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/external-linker/)