[WordPress] 外掛分享: Amazon Search

前言介紹

  • 這款 WordPress 外掛「Amazon Search」是 2008-03-14 上架。
  • 目前有 10 個安裝啟用數。
  • 上一次更新是 2009-03-26,距離現在已有 5883 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 2.2 以上版本才可以安裝。
  • 有 1 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

asmaloney |

外掛標籤

books | amazon | Amazon Links | Amazon Associate | Amazon shortcode |

內容簡介

此外掛允許您使用特殊標籤直接在文章中連結到項目,形式如下:

[amazon ASIN = 0123456789] Fancy Title [/ amazon]

該插件允許您為每個國際亞馬遜服務器設置聯盟 ID,並將一個服務器設置為您站點的默認服務器。

它還包括一個 Amazon 搜索小工具,可以搜索任何亞馬遜服務器,並生成帶有指向產品的直接連結的搜索結果。

此外,它還提供了一個 XSLT 文件,以便 Amazon 服務器與搜索的 XML 結果一起使用,然後返回 HTML。這樣可以避免您的服務器自己處理 XML。

它使用 CSS 格式化搜索小工具和搜索結果。它會在其 css 目錄中查找特定主題的 css 文件,因此如果您在其中有一個名為 your-theme-name.css 的文件,它會在 default.css 之後包含它。因此,您可以通過放入新的 css 文件來自訂給定主題的搜索結果。因此,如果允許用戶切換主題,您可以為每個主題包含一個 css 文件,當切換時,搜索將看起來正確。

版本歷史

v1.2.0 [2009年3月23日]

[修正]修復 WordPress 2.7 可能出現的安裝問題
[新增]添加 TinyMCE 和 QuickTag 編輯器的按鈕,使 Amazon 標記更容易 [來自 Stephanie Leary – 感謝 Stephanie!]
[新增]新的編輯器按鈕是可選的 [它們默認為開啟,但在首選項中可以關閉。]
[新增]使插件的搜索部分可選 [如果您只想使用文本鏈接,可以完全在首選項中禁用搜索。]
[其他]代碼重組和清理

v1.1.3 [2008年7月20日]

[修正]修正 1.1.2 犯的錯誤

v1.1.2 [2008年7月20日]

[新增]為一些未來工作的 ipNation 事項進行了代碼重構
[新增]在顯示管理頁面上的選項時檢查是否安裝了 ip2Nation 數據庫

v1.1.1 [2008年5月23日]

[修正]針對 PHP 4.x 的修復
[修正]更好地與 Silver Light 主題集成

v1.1.0 [2008年4月26日]

[新增]通過使用特殊標記 [amazon asin = 0123456789] 鏈接文本 [/ amazon],添加指定的文本鏈接
[新增]新的文本鏈接將使用 ip2Nation 數據庫 進行簡單的地理定位

v1.0.2 [2008年4月2日]

[修正]修正默認 XSL 路徑

v1.0.1 [2008年3月22日]

[新增]為 Silver Light 主題添加 CSS
[修正]由於臨時更改名稱引起的不正確路徑問題

v1.0.0 [2008年1月8日]

初始版本

配置插件

在管理區域中,轉到「設置」-> 「Amazon 搜索」,您可以進行以下配置:

聯盟 ID

在此部分中,填寫您的聯盟 ID。您還可以選擇其中一個服務器作為您的用戶的默認值。例如,如果您居住在法國,則可以選擇 amazon.fr 服務器。
留空的 ID 將由我的填充。

開發貢獻

噢,這是關鍵!我設置了每搜索「N」次 [或頁面顯示...]

原文外掛簡介

This plugin allows you to link directly to items in your
posts using a special tag of the form:
[amazon ASIN=0123456789]Fancy Title[/amazon]
The plugin lets you set associate IDs for each international amazon server and set one server
as the default for your site.
It also includes an Amazon Search widget which will search any of the amazon servers
and produce search results with direct links to products.
It also provides an XSLT file for the amazon server to access, which processes it together with the XML results of
the search, and then returns HTML. This saves your server from having to process the XML itself.
It uses css to format the search widget and the search results. It will look in its css dir for theme-specific css files
too, so if you have one in there called your-theme-name.css, it will include it after default.css. This way you may
customize search results for a given theme by dropping in a new css file. So if you allow your users to switch themes, you can include
a css file for each one and the search will look correct when it is switched.
Version History

v1.2.0 [23 March 2009]

[fix] fixes for potential installation problems on WordPress 2.7
[new] add buttons to the TinyMCE and QuickTag editors to make the Amazon markup easier [code from Stephanie Leary – thanks Stephanie!]
[new] new editor buttons are optional [They are on by default but may be turned off in the preferences.]
[new] made the search part of the plugin optional [If you just want to use the text links, search may be completely disabled in the preferences.]
[other] code reorganization and cleanup

v1.1.3 [20 July 2008]

[fix] fix dumbness introduced in 1.1.2

v1.1.2 [20 July 2008]

[new] code refactoring of the ipNation stuff for some future work
[new] check if the ip2Nation database is installed when displaying options on the admin page

v1.1.1 [23 May 2008]

[fix] fix for PHP 4.x
[fix] better integration with Silver Light theme

v1.1.0 [26 Apr 2008]

[new] added ability to specify a text link in posts by using a special tag: [amazon asin=0123456789]link text[/amazon]
[new] new text links will use ip2Nation database to do simple geo-location

v1.0.2 [02 Apr 2008]

[fix] fix default XSL path

v1.0.1 [22 Mar 2008]

[new] add CSS for Silver Light theme
[fix] fix incorrect paths due to last-minute name change

v1.0.0 [08 Jan 2008]

initial version

Configuring The Plugin
In the Admin section, under Settings -> Amazon Search you may configure the following:
Associate IDs
In this section, fill in any associate IDs you have. You may also select one of the servers to be the
default for your users. If you live in France, you might choose the amazon.fr server, for example.
Any IDs left blank will be filled in with mine.
Development Contribution
Ah, here’s the hook! I’ve set it up so that every ‘N’ searches [or page displays if you are using the text links],
the links which are produced use my
associate IDs. You can choose a value for ‘N’ here. No need to go hacking if you don’t want to support
development – just set it to 0 and it won’t ever substitute my associate IDs.
Text Links
If Use Text Links is on, the plugin will process your posts looking for a special markup and convert them to links.
To add a text link to an Amazon product, simply use the following format:
[amazon ASIN=0743279794]Fancy Title[/amazon]
ISBN may be used in place of ASIN – they are effectively the same thing. It is a case-insensitive match, so ‘asin’ is the same as ‘ASIN’.
This tag will be converted to a link of the form:
Fancy Title
If you have Use ip2Nation checked and the ip2Nation database is installed, it may be used to locate the best Amazon site for the visitor. Any country not handled specially will
use your default Amazon server. If you have the Development Contribution set in your prefs, a page load will count as a ‘search’.
NOTE: The handling of which Amazon site is best per country is incomplete at best. I would appreciate any feedback or additions/corrections
to the list [which is found in the getAmazonServerFromIP() function in amz-search.php].
Add Editor Buttons allows you to turn off the additional buttons in the editors which provide a quick way to enter an amazon link.
Searching
Use Searching allows you to turn off the search capability completely in case you just want to use the text links.
Default Category is the one that will be used when the user searches from the widget. When they
get the results, they will be able to change the category on the search page.
Default Search Term is what is used if the user doesn’t enter a search term. Right now it defaults
to ‘WordPress’. You will probably want to change it to something appropriate to your site.
You may specify an XSLT file that will be sent to the amazon servers for processing. This file must be publicly
accessible because the amazon servers will be reading it to provide formatting.
If you don’t know what this means, you better leave it alone. The XSLT file may be edited if you want to
customise the results produced by the search. I am certainly not an XSLT expert, so if you have any suggestions,
please contact me.
You may also set the size of the images that are to be returned in the search or ‘None’ to turn them off.
Watch out if you set this to ‘Large’!

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Amazon Search」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.0 | 1.1 | 1.0.1 | 1.0.2 | 1.1.1 | 1.1.2 | 1.1.3 | 1.2.0 | trunk |

延伸相關外掛(你可能也想知道)

暫無相關外掛推薦。

文章
Filter
Mastodon