[wordpress插件] Amazon Search亚马逊搜索

wordpress 插件 文章 2020-02-17 10:50 569 0 全屏看文

AI助手支持GPT4.0

评分
100
描述

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]

[amazon ASIN = 0123456789]花式标题[/ amazon]

The plugin lets you set associate IDs for each international amazon server and set one server

该插件可让您为每台国际亚马逊服务器设置关联ID并设置一台服务器

as the default for your site.

作为您网站的默认设置。

It also includes an Amazon Search widget which will search any of the amazon servers

它还包括一个Amazon Search小部件,它将搜索任何亚马逊服务器

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

它还提供了一个XSLT文件供亚马逊服务器访问,该文件与XML结果一起处理

the search, and then returns HTML.

搜索,然后返回HTML。

This saves your server from having to process the XML itself.

这使您的服务器不必处理XML本身。

It uses css to format the search widget and the search results.

它使用CSS来格式化搜索小部件和搜索结果。

It will look in its css dir for theme-specific css files

它将在其css目录中查找特定于主题的css文件

too, so if you have one in there called your-theme-name.css, it will include it after default.css.

同样,因此,如果其中有一个名为 your-theme-name.css 的文件,它将包含在 default.css 之后。

This way you may

这样你可以

customize search results for a given theme by dropping in a new css file.

通过放入新的CSS文件,为给定主题自定义搜索结果。

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.

每个文件都有一个css文件,切换后搜索将看起来正确。

Version History

版本历史记录

    • v1.2.0 [23 March 2009]

      v1.2.0 [2009年3月23日]

        • [fix] fixes for potential installation problems on WordPress 2.7
        • [修复]修复了WordPress 2.7上的潜在安装问题

        • [new] add buttons to the TinyMCE and QuickTag editors to make the Amazon markup easier [code from Stephanie Leary – thanks

        • [new]向TinyMCE和QuickTag编辑器添加按钮,以简化Amazon标记[来自 Stephanie Leary 的代码–谢谢

          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.]
        • [new]将插件的搜索部分设为可选[如果您只想使用文本链接,则可能会在首选项中完全禁用搜索。]

        • [other] code reorganization and cleanup
        • [other]代码重组和清理

      • v1.1.3 [20 July 2008]

        v1.1.3 [2008年7月20日]

          • [fix] fix dumbness introduced in 1.1.2
          • [修复]修复了1.1.2中引入的哑巴

        • v1.1.2 [20 July 2008]

          v1.1.2 [2008年7月20日]

            • [new] code refactoring of the ipNation stuff for some future work
            • [新] ipNation东西的代码重构,以供将来使用

            • [new] check if the ip2Nation database is installed when displaying options on the admin page
            • [new]在管理页面上显示选项时检查ip2Nation数据库是否已安装

          • v1.1.1 [23 May 2008]

            v1.1.1 [2008年5月23日]

              • [fix] fix for PHP 4.x
              • [修复]已修复PHP 4.x

              • [fix] better integration with Silver Light theme
              • [修复]与Silver Light主题更好的集成

            • v1.1.0 [26 Apr 2008]

              v1.1.0 [2008年4月26日]

                • [new] added ability to specify a text link in posts by using a special tag: [amazon asin=0123456789]link text[/amazon]
                • [li]增加了使用特殊标签在帖子中指定文本链接的功能:[amazon asin = 0123456789]链接文本[/ amazon]

                • [new] new text links will use ip2Nation database to do simple geo-location
                • [新]新文本链接将使用 ip2Nation数据库进行简单的地理位置

              • v1.0.2 [02 Apr 2008]

                v1.0.2 [2008年4月2日]

                  • [fix] fix default XSL path
                  • [修复]修复默认的XSL路径

                • v1.0.1 [22 Mar 2008]

                  v1.0.1 [2008年3月22日]

                    • [new] add CSS for Silver Light theme
                    • [新]为Silver Light主题添加CSS

                    • [fix] fix incorrect paths due to last-minute name change
                    • [修复]修复由于最近更改名称而导致的错误路径

                  • v1.0.0 [08 Jan 2008]

                    v1.0.0 [2008年1月8日]

                      • initial version
                      • 初始版本

                    Configuring The Plugin

                    配置插件

                    In the Admin section, under Settings -> Amazon Search you may configure the following:

                    在管理部分的设置-> Amazon Search 下,您可以配置以下内容:

                    Associate IDs

                    关联ID

                    In this section, fill in any associate IDs you have.

                    在此部分中,填写您拥有的所有关联ID。

                    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.

                    例如,如果您住在法国,则可以选择amazon.fr服务器。

                    Any IDs left blank will be filled in with mine.

                    所有空白的ID都将用我的ID填充。

                    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],

                    我已经对其进行了设置,以便每次“ N”次搜索(如果您使用文本链接,则显示页面),

                    the links which are produced use my

                    产生的链接使用my

                    associate IDs.

                    关联ID。

                    You can choose a value for ‘N’ here.

                    您可以在此处为“ N”选择一个值。

                    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.

                    开发-只需将其设置为0,就永远不会替换我的关联ID。

                    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产品,只需使用以下格式:

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

                    [amazon ASIN = 0743279794]奇特的称号[/ amazon]

                    ISBN may be used in place of ASIN – they are effectively the same thing.

                    ISBN可以代替ASIN使用-实际上,它们是同一件事。

                    It is a case-insensitive match, so ‘asin’ is the same as ‘ASIN’.

                    这是不区分大小写的匹配,因此“ asin”与“ 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,

                    如果您已选中使用ip2Nation ,并且已安装 ip2Nation数据库

                    it may be used to locate the best Amazon site for the visitor.

                    它可能被用来为访客找到最佳的亚马逊网站。

                    Any country not handled specially will

                    任何未经特别处理的国家都会

                    use your default Amazon server.

                    使用您的默认Amazon服务器。

                    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].

                    列表[可以在amz-search.php的getAmazonServerFromIP()函数中找到]。

                    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’.

                    到“ 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.

                    您可以指定一个XSLT文件,该文件将发送到亚马逊服务器进行处理。

                    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

                    如果需要,可以编辑XSLT文件

                    customise the results produced by the search.

                    自定义搜索产生的结果。

                    I am certainly not an XSLT expert, so if you have any suggestions,

                    我当然不是XSLT专家,所以如果您有任何建议,

                    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’!

                    请注意,如果将其设置为“大”!

安装步骤

    1. Upload the whole amazon-search directory to your /wp-content/plugins/ directory [it must be called amazon-search]
    2. 将整个amazon-search目录上传到您的/ wp-content / plugins /目录[必须称为amazon-search]

    3. Activate the plugin through the ‘Plugins’ menu in WordPress
    4. 通过WordPress中的“插件”菜单激活插件

    5. Configure it using the Settings -> Amazon Search page in WordPress
    6. 使用WordPress中的设置-> Amazon搜索页面进行配置

    7. Go to the Appearance -> Widgets page and drag the Amazon Search widget into a sidebar.
    8. 转到外观->小部件页面,并将 Amazon搜索小部件拖动到侧边栏中。

下载地址
https://downloads.wordpress.org/plugin/amazon-search.1.2.0.zip
-EOF-

AI助手支持GPT4.0