Open external links in a new window

外掛說明

Opens external links (starting with http:// or https://) in a separate browser tab (or window). You can also specify certain URLs that should either be forced to open in a new window or ignored.
The plugin produces XHTML Strict compliant code and is also search engine optimized (SEO).
This is done using JavaScript’s window.open()-function.

Most other plugins perform a hack by altering the target parameter (i.e. <a href="http://somewhere.example" target="_blank">). That method is not XHTML Strict compliant.
This plugin handles the links client-side, which lets search engines follow the links properly. Also, if a browser does not support JavaScript, the plugin is simply inactive, and does not result in any errors.

Credits
Inspired by the Zap_NewWindow-plugin by Tom Köhler.
The banner is a photo by Monja Da Riva.

Translations
Danish by Kristian Risager Larsen.
Dutch by Paul Staring
Lithuanian by Vincent G.
Other translations will be appreciated!

Known bugs
The plugin conflicts with other plugins that change the links’ `onClick´-attribute.

安裝方式

  1. Copy the plugin to /wp-content/plugins/
  2. Activate the plugin.
  3. Eventually, change the settings in Settings->External links.

常見問題集

Installation Instructions
  1. Copy the plugin to /wp-content/plugins/
  2. Activate the plugin.
  3. Eventually, change the settings in Settings->External links.

使用者評論

works

Great plugins, just installed and started working

Wow; the plugin is fantastic! Simplicity at its finest!

Hello Kristian and kezze,

Thank you for this useful plugin, I am very grateful to you for sharing it with everyone. It simplifies the hassle of adding code and structuring links to open in a new window.

“Open external links in a new window” is practical for the novice or expert user. I was delighted to experience posting an external link and know that it will be opened in a new window.

I wish you continued success with this plugin, other projects and all you do.

Best wishes

閱讀全部 41 則使用者評論

貢獻者及開發者

Open external links in a new window 外掛為開源軟體。以下人員對這個外掛做出了貢獻。

貢獻者

Open external links in a new window 外掛已本地化為 2 個語言。 感謝所有譯者為這個外掛做出的貢獻。

將 Open external links in a new window 外掛以你的母語進行本地化。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.3.2

Updated: Danish translation

1.3.1

Verified compatibility with WordPress 4.0
Added: Plugin logo for WordPress 4.0
Added: Dutch translation.

1.3

Added: Possibility to force and ignore user-defined strings in URLs. This feature has been requested.
Added: Lithuanian and Danish translation.

1.2

Added: Translation-ready.

1.1.1

Fixed: Deprecation warning (Thanks to boo1865)

1.1.0

Changed: Better practice for opening links. The plugin now uses the onClick-attribute instead of writing JavaScript directly into the href-attribute. This enables users to right-click the link and open in a new window/tab, save the target etc.

1.0.1

Fixed: Removes target attribute from links instead of setting the attribute to null. (Thanks to crashnet)

1.0

Fixed: Credits to Tom Köhler (Charset).
Fixed: Links.

0.9

Initial release.