Title: Google Reader Widget
Author: sk33t
Published: <strong>2008 年 3 月 18 日</strong>
Last modified: 2009 年 3 月 4 日

---

搜索插件

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

![](https://s.w.org/plugins/geopattern-icon/google-reader-widget.svg)

# Google Reader Widget

 作者：[sk33t](https://profiles.wordpress.org/sk33t/)

[下载](https://downloads.wordpress.org/plugin/google-reader-widget.zip)

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

 [支持](https://wordpress.org/support/plugin/google-reader-widget/)

## 描述

#### Requirements

 * WordPress 2.2+ or 2.0.x/2.1.x with WordPress Widgets
 * PHP 4.3.0 or greater (needed for function file_get_contents)
 * Your Google Reader User ID

#### Features

 * Displays your latest shared items from Google Reader
 * Completely customizable display
 * Caching for large traffic sites

#### User ID

In order to get your shares, you need to know your user id according to Google Reader.
This can be found by going to the ‘Shared Items’ link, and copying the 20 digit 
number at the end of your shared items link.

So something like:
 http://www.google.com/reader/shared/02774557510273097991 Where
02774557510273097991 would be my user id.

### Formatting

There are 3 parts needed to format the output.

The first part, called items start in the admin panel, is the first part of the 
widget after the title. For the default formatting, this is just <ul>.

The second part, called items end, is the ending of the widget. By default, this
is:
 </ul> <a href=”%googlereader%” style=”float:right;”>Shared Items</a>

The third part is what is called for each item. By default, this is:
 <li style=”
list-style-type: none;”><a href=”%link%”>%title%</a></li>

The premise of calling each value is this:

 1. start
 2. item
 3. item
 4. …
 5. item
 6. end

The formatting for items is:

 * %link% – Link to the item
 * %title% – Title of the item
 * %site% – The title of the site the item is from
 * %sitelink% – The link to the site the item is from
 * %number% – The number of the current item
 * %comment% – The comment (note) made when sharing an item

The formatting for start and end is:

 * %googlereader% – Link to your Google Reader shared page
 * %count% – Number of items shown

## 屏幕截图

 * [[
 * Default Display
 * [[
 * Admin Panel

## 安装

 1. Download googlereader.zip
 2. Extract and upload googlereader.php to the plugins/ directory
 3. Enable Google Reader in the Plugin admin panel
 4. In widget admin panel, place Google Reader in the sidebar, and edit it to enter
    your user id

## 常见问题

  What does cache time mean?

It’s the number of seconds before the content will be requested again. You can set
this to be 0 or -1 to not use the caching system. If you edit any of the widgets
in the widget admin panel, the cache is cleared.

  My widget doesn’t display any stories

This could be for many reasons. First possibilty, you incorrectly entered your [Google Reader ID](http://ja.meswilson.com/blog/2007/05/26/wordpress-google-reader-widget/#user-id).
Next, your host might not support file_get_contents or curl. Try changing the use
option to curl in the widget admin panel. You could try using some sort of fsockopen
if neither curl nor file_get_contents work. If your host doesn’t support outside
requests, this widget will not work for you.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Google Reader Widget」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ sk33t ](https://profiles.wordpress.org/sk33t/)

[帮助将「Google Reader Widget」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/google-reader-widget)

### 对开发感兴趣吗?

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

## 额外信息

 *  版本 **1.9.1**
 *  最后更新：**17 年前**
 *  活跃安装数量 **20+**
 *  WordPress 版本 ** 2.0.2 或更高版本 **
 *  已测试的最高版本为 **2.7.1**
 *  语言
 * [English (US)](https://wordpress.org/plugins/google-reader-widget/)
 * 标签
 * [google](https://cn.wordpress.org/plugins/tags/google/)[Google Reader](https://cn.wordpress.org/plugins/tags/google-reader/)
   [reader](https://cn.wordpress.org/plugins/tags/reader/)[widget](https://cn.wordpress.org/plugins/tags/widget/)
 *  [高级视图](https://cn.wordpress.org/plugins/google-reader-widget/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/google-reader-widget/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/google-reader-widget/reviews/)

## 贡献者

 *   [ sk33t ](https://profiles.wordpress.org/sk33t/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/google-reader-widget/)

## 捐助

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

 [ 捐助此插件 ](http://ja.meswilson.com/donate)