[WordPress] 外掛分享: Affiliatize Me

首頁外掛目錄 › Affiliatize Me
全新外掛
安裝啟用
尚無評分
692 天前
最後更新
問題解決
WordPress 4.0+ PHP 5.2+ v1.0 上架:2024-05-19

內容簡介

總結:這個外掛可以在網站上搜索指定設定中的域名來添加你的聯盟 ID,並在被點擊時將這些鏈接在新選項卡中打開。該外掛生成符合XHTML Strict標準的代碼,並且是經過搜索引擎優化(SEO)的。使用JavaScript中的window.open() 函数來實現,僅添加幾行純粹的JavaScript代碼到頁面上,不需要像jQuery這樣的外部庫。

1. 這個外掛的主要功能是什麼?
- 搜索網站上指定設定中的域名,添加聯盟 ID,讓這些連結在新選項卡中打開。

2. 這個外掛有哪些特點?
- 生成符合XHTML Strict標準的代碼。
- 經過搜索引擎優化(SEO)。
- 使用JavaScript的window.open() 函数實現,僅添加幾行純粹的JavaScript代碼到頁面上,無需外部庫。

3. 為什麼這個外掛與其他外掛不同?
- 大多數其他外掛通過改變目標參數來實現,這不符合XHTML Strict標準。

4. 外掛處理連結的主要方式是什麼?
- 外掛在客戶端處理連結,讓搜索引擎能夠正確地跟踪連結。如果瀏覽器不支持JavaScript,外掛會保持非活動狀態,不會出現錯誤。

5. 這個外掛受到了什麼啟發?
- 外掛靈感來自於"外部連結在新視窗/新選項卡中打開"外掛。

6. 這個外掛的已知問題是什麼?
- 該外掛與改變鏈接onClick屬性的其他外掛存在衝突。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Affiliatize Me」→ 直接安裝(推薦)

原文外掛簡介

This plugin searches links on your site for the domain that you specify in the settings, adds your affiliate ID, and makes those links open in a new tab when clicked.
The plugin produces XHTML Strict compliant code and is search engine optimized (SEO).
This is done using JavaScript’s window.open()-function. It adds only a few lines of vanilla JavaScript to the page, and does not require any external libraries like jQuery.
Most other plugins perform a hack by altering the target parameter (i.e. ). 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 External Links in New Window / New Tab plugin.
Known bugs
The plugin conflicts with other plugins that change the links’ `onClick´ attribute.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon