Title: Buy This Book
Author: Claire Ryan
Published: <strong>2012 年 10 月 7 日</strong>
Last modified: 2016 年 7 月 5 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/buy-this-book.svg)

# Buy This Book

 作者：[Claire Ryan](https://profiles.wordpress.org/raynfall/)

[下载](https://downloads.wordpress.org/plugin/buy-this-book.1.4.zip)

 * [详情](https://cn.wordpress.org/plugins/buy-this-book/#description)
 * [评价](https://cn.wordpress.org/plugins/buy-this-book/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/buy-this-book/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/buy-this-book/#developers)

 [支持](https://wordpress.org/support/plugin/buy-this-book/)

## 描述

**
 Buy This Book is no longer under active development. A new plugin called the
[Author Showcase](https://wordpress.org/plugins/author-showcase/) is available with
extended and upgraded functionality. This plugin should still work on the latest
version of WordPress, and support is still available, but it won’t have any new 
features added.

Buy This Book is a WordPress plugin designed for authors. It was created to combat
three problems:

 * Many authors use things like the Amazon Affiliate widget to display their books,
   which is stripped out of webpages by adblockers. This results in their books 
   never being seen by a significant chunk of users, as adblockers are the most 
   popular plugins for Chrome and Firefox.
 * If authors want to just add their books and a link to Amazon, etc, they’re obliged
   to know some HTML and it’s something of a pain in the ass.
 * Neither option is ideal when books can be available on multiple websites.

Buy This Book takes cover images and up to seven websites, and displays them on 
the sidebar with a slideout menu.

It supports:

 * Amazon
 * Kobo
 * Barnes & Noble
 * Smashwords
 * Lulu
 * iBooks
 * One custom option

This version of the plugin can also be modified to use other services.

Suggestions for new functionality welcome! Please contact me here:

[Facebook](https://www.facebook.com/claireryanauthor)
 [Twitter](http://www.twitter.com/@aetherlev)
[Website](http://www.raynfall.com)

## 屏幕截图

[⌊Screenshot Buy This Book - Widget⌉⌊Screenshot Buy This Book - Widget⌉[

Screenshot Buy This Book – Widget

[⌊Screenshot Buy This Book - Front end⌉⌊Screenshot Buy This Book - Front end⌉[

Screenshot Buy This Book – Front end

## 安装

 1. Upload `buy-this-book.php` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Go to the Appearance -> Widgets screen. You should now see a new widget called 
    Buy This Book. Click and drag it over to your chosen sidebar, and it’ll open up
    automatically.
 4. Fill in the header. This is the widget title, and it’ll display above your books.
 5. Paste the cover image link into the appropriate box. Here’s where the size of the
    image becomes important – if you want to add just one book to your sidebar, make
    the image as wide as the sidebar and only use the first column. If you’re only 
    adding two and you want them to sit side by side, you have to make sure the images
    are narrow enough to fit comfortably. If you find that your images are below each
    other instead of being side by side, and you don’t want this to happen, then reduce
    their size. Include an alt tag to describe your cover.
 6. Paste a link to your book’s page for each website into the appropriate boxes. Any
    you don’t use won’t show up.
 7. Save the widget. You’re done! Check your site and click on the cover images to 
    see the menu slide out from the bottom.

## 常见问题

  My covers are jumping around when I click on them and the menu slides out!

You’re probably using cover images smaller than 100px wide. The menu is set in a
box that’s 105px across, because the icons are stacked into two rows of three, and
having it slide out makes everything jump around as the images try to accomodate
the extra space.

Add this line to your CSS:

.buybook .box { width: XXpx !important; }

where XX = width of your image + 5.

This should fix it.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Buy This Book」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Claire Ryan ](https://profiles.wordpress.org/raynfall/)

[帮助将「Buy This Book」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/buy-this-book)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/buy-this-book/)，查看
[SVN仓库](https://plugins.svn.wordpress.org/buy-this-book/)，或通过[RSS](https://plugins.trac.wordpress.org/log/buy-this-book/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/buy-this-book/)。

## 更新日志

#### 1.4

 * Added the end-of-development notice
 * Feature – Added conditional CSS to allow for the number of books per row
 * Feature – Added instruction list to each widget instance
 * Made some small improvements to the CSS on the widget admin display

#### 1.3

 * Feature – Added alt tag option to main cover images
 * Feature – Added a custom icon + link pair

#### 1.2

 * Bugfix – Barnes & Noble icon should now appear correctly.

#### 1.1

 * Code improvements to allow easy customization of the plugin
 * Security fix

## 额外信息

 *  版本 **1.4**
 *  最后更新：**10 年前**
 *  活跃安装数量 **90+**
 *  WordPress 版本 ** 3.0 或更高版本 **
 *  已测试的最高版本为 **4.1.42**
 *  语言
 * [English (US)](https://wordpress.org/plugins/buy-this-book/)
 * 标签
 * [amazon](https://cn.wordpress.org/plugins/tags/amazon/)[author](https://cn.wordpress.org/plugins/tags/author/)
   [book](https://cn.wordpress.org/plugins/tags/book/)[covers](https://cn.wordpress.org/plugins/tags/covers/)
   [display](https://cn.wordpress.org/plugins/tags/display/)
 *  [高级视图](https://cn.wordpress.org/plugins/buy-this-book/advanced/)

## 评级

 4.5 星（最高 5 星）。

 *  [  1 条 5 星评价     ](https://wordpress.org/support/plugin/buy-this-book/reviews/?filter=5)
 *  [  1 条 4 星评价     ](https://wordpress.org/support/plugin/buy-this-book/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/buy-this-book/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/buy-this-book/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/buy-this-book/reviews/?filter=1)

[您的评价](https://wordpress.org/support/plugin/buy-this-book/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/buy-this-book/reviews/)

## 贡献者

 *   [ Claire Ryan ](https://profiles.wordpress.org/raynfall/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/buy-this-book/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://www.raynfall.com)