Title: GPlus
Author: dpchiesa
Published: <strong>2012 年 5 月 20 日</strong>
Last modified: 2012 年 6 月 21 日

---

搜尋外掛

![](https://ps.w.org/gplus/assets/banner-772x250.png?rev=561454)

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

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

# GPlus

 由 [dpchiesa](https://profiles.wordpress.org/dpchiesa/) 開發

[下載](https://downloads.wordpress.org/plugin/gplus.2012.06.20.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/gplus/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/gplus/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/gplus/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/gplus/#developers)

 [技術支援](https://wordpress.org/support/plugin/gplus/)

## 外掛說明

gplus is a WordPress Plugin.

It provides a WordPress Widget that displays a list of your recent
 Google+ activities
in the sidebar. The plugin uses the Google+ API, and authenticates via an API key
that YOU (the installer) acquire via the Google API Console.

Because it uses the public REST API of Google+ that Google documents and
 supports,
this plugin is very reliable and simple. (Other WordPress widgets that say they 
show Google+ activity have relied on screen-scraping, which makes them brittle and
unreliable.)

### Dependencies

This plugin depends on and uses the published google-api-php-client,
 available 
at http://code.google.com/p/google-api-php-client/ .

Rather than requires the installer to download this code, it is packaged
 within
the plugin. The Google API php client library is licensed independently from the
gplus WordPress plugin; The former is licensed under the Apache 2.0 license.

### Thanks

Thanks for your interest!

You can make a donation at http://cheeso.members.winisp.net/GplusWidgetDonate.aspx

Check out all my plugins:
 https://wordpress.org/extend/plugins/search.php?q=dpchiesa

-Dino Chiesa

## 螢幕擷圖

 * [[
 * This shows the rendering of the Widget in the sidebar of a WP blog.
 * [[
 * This shows how to activate gplus in the Plugins menu in the WP Admin backend
 * [[
 * Configuring the settings for the gplus widget in the WP Admin backend.

## 安裝方式

 1. Download gplus-wp-plugin.zip and unzip into the
     /wp-content/plugins/ directory.
 2. From the WordPress admin backend, Activate the plugin through the
     ‘Plugins’ menu.
 3. From the WordPress admin backend, in the Widgets menu, drag-and-drop
     the widget
    to your sidebar. You can place it in any position you like.
 4. Specify the settings for the widget:
     Title, Google+ ID, API Key, the maximum number
    of items to show, and the cache lifetime.

That’s it !

## 常見問題集

  Why do I need an API Key?

You need an API key from Google so that the requests that your wordpress
 page sends
to Google, will be authorized and allowed. Every time the page loads, it sends out
a request to Google, and gets the list of activities. Google wants to know who’s
asking for this information, and the API key lets them track that.

  Where do I get an API Key?

To get an API Key, you need to visit.
 https://code.google.com/apis/console and 
click “API Access” on the right-hand-=side navigation menu.

Copy and paste the API Key to the appropriate place in the Widget
 configuration
menu.

  Will I be charged by Google for the requests?

No. The API key is free to get; you don’t even need to ask for it. In
 fact Google
will just display the API key when you login to the API Console. I don’t speak for
Google, but it seems to me they use the key only for tracking purposes.

Google may throttle the level of requests if you use this plugin on a
 heavily loaded
site. In that case you may need to use OAuth2.0, which I have not yet builtin to
the plugin. But I could be convinced, for the right price. 😉

  How do I get my Google+ ID?

You can get it by examining a particular URL when you login to Google+.

First, you need to be on Google+. Go to https://plus.google.com and
 login or sign
up. It’s free to signup. (But you already knew that, because you are on Google+,
otherwise why would you want a G+ widget?)

Then, click the link for your profile. It will go to a URL like this:

https://plus.google.com/u/0/77373737273737373737/posts

Your id is the long string of digits in the middle there.

  Can I set the visual style of the widget from the admin backend?

No, I haven’t built that capability into this simple plugin, just yet.
 Let me know
if you have strong requirements in this area.

You can “manually” apply css styling to the list. The css class name
 used for the
UL that holds the list of Google+ activities is ‘gplus’.

  Does the plugin cache the results of its queries?

Yes. You can set the cache lifetime in the widgets panel of the admin
 UI.

  What does it mean, “cache lifetime”?

The term “cache lifetime” refers to the time period that the widget will
 re-use
results from the Google+ Activity query. When rendering itself on a page, if the
Widget has requested and received a list of activities from Google within the cache
lifetime (say, within the past 10 minutes), then the widget will re-use those results.
If the Widget has no saved results, or the saved results are older than the configured
cache lifetime, then the widget will send a new request to Google to get the information.

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈GPlus〉的開發相關工作。

參與者

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

[將〈GPlus〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/gplus)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/gplus/)、查看 
[SVN 存放庫](https://plugins.svn.wordpress.org/gplus/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/gplus/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/gplus/)。

## 變更記錄

#### 2012.06.20

 * optionally display the google+ logo in the widget

#### 2012.06.19

 * refactored to render the form via a view php file.

#### 2012.06.14

 * more intelligent handling of whitespace in activity strings. This
    fixes an issue
   with ragged left margins when some activities were rendered in HTML.

#### 2012.06.05

 * add caching

#### 2012.6.4

 * fix some messages
 * add donation button

#### 2012.5.19

 * minor refactoring in php module
 * first checkin to svn

#### 2012.5.15

 * GPLv3 license.
 * Tighten up some documentation.

#### 2012.5.12

 * initial release

## 中繼資料

 *  版本 **2012.06.20**
 *  最後更新 **14 年前**
 *  啟用安裝數 **10+**
 *  WordPress 版本需求 ** 3.2 或更新版本 **
 *  已測試相容的 WordPress 版本 **3.2.1**
 *  語言
 * [English (US)](https://wordpress.org/plugins/gplus/)
 * 標籤:
 * [google](https://tw.wordpress.org/plugins/tags/google/)[social](https://tw.wordpress.org/plugins/tags/social/)
   [widget](https://tw.wordpress.org/plugins/tags/widget/)
 *  [進階檢視](https://tw.wordpress.org/plugins/gplus/advanced/)

## 評分

這個項目尚無任何評論記錄。

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

[查看全部使用者評論](https://wordpress.org/support/plugin/gplus/reviews/)

## 參與者

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

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/gplus/)

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](http://cheeso.members.winisp.net/GplusWidgetDonate.aspx)