Title: Social Counters
Author: mortay
Published: <strong>2010 年 10 月 8 日</strong>
Last modified: 2016 年 3 月 29 日

---

搜尋外掛

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

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

# Social Counters

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

[下載](https://downloads.wordpress.org/plugin/social-counters.2.2.9.zip)

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

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

## 外掛說明

It allows to place counters and social sharing links to the most popular social 
networks like Menéame, Twitter, Facebook, Google Buzz, Tuenti or Bitacoras.com.

It also has WordPress actions (add_action) and filters (add_filter) allowing to 
select the social sharing links we want to show.

The available functions are:

 * `the_social_counters( $counters = array() )`: Displays selected social counters.
    - `$counters`: Array with list of social counters to view, by default `bitacoras,
      tuenti,google-buzz,meneame,twitter,facebook`
 * `the_social_counters__get ( $counters = array() )`: Returns the selected social
   counters.
    - `$counters`: Array with list of social counters to view, by default `bitacoras,
      tuenti,google-buzz,meneame,twitter,facebook`
 * `social_counter( $social_counter = '', $postparam = false, $linked = true )`:
   Displays a particular social counter
    - `$social_counter`: Name of social counter, by default the options are `bitacoras,
      tuenti,google-buzz,meneame,twitter,facebook`
    - `$postparam`: $post object to get the counter, by default system use global
      $post;
    - `$linked`: Simple option to de-activate link.
 * `social_counter__get( $social_counter = '', $postparam = false, $linked = true)`:
   Returns a particular social counter
    - `$social_counter`: Name of social counter, by default the options are `bitacoras,
      tuenti,google-buzz,meneame,twitter,facebook`
    - `$postparam`: `$post` object to get the counter, by default system uses global`
      $post` var.
    - `$linked`: Simple option to de-activate link.

It’s also possible to define two constants in ‘wp-config.php’…

 * SOCIAL_COUNTER__LOAD_CSS: If we define this constant as `false`, the plugin will
   not load the default style.
 * SOCIAL_COUNTER__LOAD_CSS_SMALL: If we define this constanta as `true`, the plugin
   will load de small icons.
 * SOCIAL_COUNTER__TWITTER_USER: The twitter sharing link includes this username
   with the RT link.

## 螢幕擷圖

 * [[
 * Default view in a single post

## 安裝方式

 1. Upload directory `social-counter` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Place code `<?php the_social_counters() ?>` in Loop (home, single,…) in your theme

## 使用者評論

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

## 參與者及開發者

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

參與者

 *   [ mortay ](https://profiles.wordpress.org/mortay/)
 *   [ Blogestudio ](https://profiles.wordpress.org/blogestudio/)

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

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

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

## 變更記錄

#### 2.2.9

 * Reduced requests timeout to 1 second.
 * Various modifications.

#### 2.2.8

 * Changed cache system to increase page load speed.

#### 2.2.7

 * Re-Tagged last version.

#### 2.2.6

 * Repaired error in function called (plugin_dir_url)!! Sorry!!

#### 2.2.5

 * Changed plugin version in README!!

#### 2.2.4

 * Repaired error with URLs from plugin and Domain Mapping.
 * Repaired error with WPML and language load order.

#### 2.2.3

 * Google Buzz counter deleted.

#### 2.2.2

 * Repaired malfunction in Twitter counter

#### 2.2.1

 * Updated CSS Version

#### 2.2.0

 * Added counter from “Bitcoras”
 * Added counter from “LinkedIn”
 * Added SOCIAL_COUNTER__LOAD_CSS_SMALL constant to load only icons, not share text.

#### 2.1.1

 * Changed counter system on Twitter, now used Twitter itself, not Tweetmeme
 * Fixed Facebook counter, now uses the Graph API.

#### 2.1.0

 * Added param to send post object to functions “the_” (postparam).
 * Changed system of “share” in Twitter

#### 2.0.1

 * Solved error with CONSTANT `SOCIAL_COUNTER__LOAD_CSS`

#### 2.0.0

 * Reprogramming of the plugin to work with WordPress actions and filters.

#### 1.2.0

 * Counter system changed from Twitter to Tweetmeme.
 * Added function “social_counter__twitter__login_string” to change the user ReTweet.

#### 1.1.0

 * Fixed bug with cache counter.
 * Fixed connection error on Menéame.

#### 1.0

 * First Version

## 中繼資料

 *  版本 **2.2.9**
 *  最後更新 **10 年前**
 *  啟用安裝數 **20+**
 *  WordPress 版本需求 ** 2.9 或更新版本 **
 *  已測試相容的 WordPress 版本 **4.4.34**
 *  語言
 * [English (US)](https://wordpress.org/plugins/social-counters/)
 * 標籤
 * [Counter](https://tw.wordpress.org/plugins/tags/counter/)[facebook](https://tw.wordpress.org/plugins/tags/facebook/)
   [social](https://tw.wordpress.org/plugins/tags/social/)[social bookmarking](https://tw.wordpress.org/plugins/tags/social-bookmarking/)
   [twitter](https://tw.wordpress.org/plugins/tags/twitter/)
 *  [進階檢視](https://tw.wordpress.org/plugins/social-counters/advanced/)

## 評分

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

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

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

## 參與者

 *   [ mortay ](https://profiles.wordpress.org/mortay/)
 *   [ Blogestudio ](https://profiles.wordpress.org/blogestudio/)

## 技術支援

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

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