內容簡介
重要提示:如果您考慮將此外掛程式加入 WP-MU(WordPress多用戶)安裝中:
如果您不確定自己是否使用 WP-MU 博客,那麼您就不是,相信我。如果此警告適用於您,您將知道。
對於 WP-MU 管理員:您不應該使用此外掛程式。您的使用者可以使用它將(可能是惡意的)JavaScript 放在其博客中。
對於非 WP-MU 博客,此外掛程式是完全安全的,因此如果您使用常規 WordPress(您很可能是這樣),則忽略此消息。
考慮事項
URL 必須有效(即以 http:// 開始)
同一個 URL 可以出現在多個行上(即帶有多個關鍵字)。
由於一個單詞只能連結到一個網站,因此關鍵字不應出現在多個行中。如果出現,則只有關鍵字的最後一個實例會與其 URL 匹配。
如果其中一個關鍵字是另一個子字符串,例如“下載WordPress”和“WordPress”,那麼您應將較短的那個放在更靠後的位置。
關鍵字不區分大小寫(例如,“WordPress”與“WoRdPrEsS”相同)。
空格有計算,因此“WordPress”與“ WordPress”不同。
僅當關鍵字作為單詞(或短語)出現時,它們才會被連結,而不是作為部分單詞。因此,如果您的關鍵字之一是“a”(出於某種奇怪的原因),則只有在字母“a”作為單詞出現時才會對其進行連結。
您可以使用任何有效的目標屬性,而不僅僅是“_blank”,請參閱 W3C 以獲取有效目標的列表。
數據庫結構
選項->alink_tap_linker_remote 頁面將創建一組匹配的術語和 URL,並存儲為列表。
“alink_tap_linker_remote”是序列化的值,如下所示:
array(
‘keyword1’ => array(
‘name’ => 關鍵字
‘url’ => 原始 URL
‘urles’ => 提供西班牙語內容的 URL
‘licencia’ => 1、0,如果為1,我們會檢查客戶的 IP 是否來自西班牙,並使用 urles 作為連結
),
‘keyword2’ => array(
‘name’ => 關鍵字
‘url’ => 原始 URL
‘urles’ => 提供西班牙語內容的 URL
‘licencia’ => 1、0,如果為1,我們會檢查客戶的 IP 是否來自西班牙,並使用 urles 作為連結
),
)
任意部分
暫無內容
更新
此外掛程式的基本結構是從 WordPress-Plugin-Boilerplate 項目複製而來。
此外掛程式支援 GitHub Updater 外掛程式,因此如果您安裝它,則該外掛程式可以直接從 GitHub 更新。任何提交到 WP.org 存儲庫都會使此功能失效。
外掛標籤
開發者團隊
原文外掛簡介
IMPORTANT NOTE TO ANYBODY CONSIDERING ADDING THIS PLUGIN TO A WP-MU INSTALLATION:
If you aren’t sure whether you are using a WP-MU blog, then you aren’t. Trust me. If this warning applies to you, then you will know it.
For WP-MU administrators: You should not use this plugin. Your users could use it to place (potentially malicious) javascript into their blogs.
This plugin is PERFECTLY SAFE for non-WP-MU blogs, so ignore this message if you’re using regular wordpress (you probably are).
Considerations
URLs should be valid (i.e. begin with http://)
The same URL can appear on more than one line (i.e. with more than one keyword).
Because a word can only link to one site, a keyword should not appear on more than one line. If it does, only the last instance of the keyword will be matched to its URL.
If one of your keywords is a substring of the other–e.g. “download wordpress” and “wordpress”–then you should list the shorter one later than the first one.
Keywords are case-insensitive (e.g. “wordpress” is the same as “WoRdPrEsS”).
Spaces count, so “wordpress” is not the same as “wordpress “.
Keywords will be linked only if they occur in your post as a word (or phrase), not as a partial word. So if one of your keywords is “a” (for some strange reason), it will be linked only when it occurs as the word “a”–when the letter “a” occurs within a word, it will not be linked.
You can use any valid target attribute, not just “_blank”–see W3C for a list of valid targets.
DATABASE STRUCTURE
The options->alink_tap_linker_remote page will create a set of matching terms and URLs that gets stored as a list.
“alink_tap_linker_remote” is a serialized value as follows:
array(
‘keyword1’ => array(
‘name’ => the keyword
‘url’ => the original url
‘urles’ => the url that serve the content in spanish
‘licencia’ => 1, 0 if 1, we check if client’s ip is from Spain and use the urles as link
),
‘keyword2’ => array(
‘name’ => the keyword
‘url’ => the original url
‘urles’ => the url that serve the content in spanish
‘licencia’ => 1, 0 if 1, we check if client’s ip is from Spain and use the urles as link
),
)
Arbitrary section
Nothing for now
Updates
The basic structure of this plugin was cloned from the WordPress-Plugin-Boilerplate project.
This plugin supports the GitHub Updater plugin, so if you install that, this plugin becomes automatically updateable direct from GitHub. Any submission to WP.org repo will make this redundant.
