Title: StackOverflow Profile
Author: dpchiesa
Published: <strong>2012 年 6 月 19 日</strong>
Last modified: 2016 年 1 月 29 日

---

搜索插件

![](https://ps.w.org/stackoverflow-profile-widget/assets/banner-772x250.png?rev=
561455)

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

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

# StackOverflow Profile

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

[下载](https://downloads.wordpress.org/plugin/stackoverflow-profile-widget.2016.01.30.zip)

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

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

## 描述

The Stackoverflow Profile Widget is a WordPress widget that displays a
 summary 
of your profile on the Stackoverflow.com website. It shows your reputation, the 
number and kind of medals you’ve achieved, and a selected list of answers you have
posted in StackOverflow. For each answer, it displays the question’s title, the 
answer’s score, and the time the answer was last edited.

You can limit the number of answer entries to display. You can sort the
 list based
on score or date.

The widget uses the StackExchange API, version 2.0, in order to retrieve
 information.

It caches the content for a configurable period.

### 必需条件

 * json_decode / json_encode must be available.
 * PHP5.2 or higher
 * StackOverflow API Key is optional (http://stackapps.com/questions/2/api-hello-
   world-code)

### 鸣谢

This plugin was initially based on and inspired by the Stackoverflow
 Answers Widget
from Mohammed Alsharaf. That code is licensed under the New BSD license.

Under the terms of that license, I am acknowledging the origins of this
 code. See
the License-Alsharaf.txt file for full details.

This plugin differs from that one in that:

 * it uses the official Stackexchange API
 * it caches results properly
 * it displays medal counts
 * it uses a nicer skin
 * can display upvoted answers, or any answers.

### 谢谢

Thanks for your interest!

You can make a donation at http://dinochiesa.github.io/SOProfile-Donate.html

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 the widget in the Plugins menu in the WP Admin backend
 * [[
 * Configuring the settings for the stackoverflow widget in the WP Admin backend.

## 安装

 1. Upload plugin folder to the wp-content/plugins/ directory.
 2. Go to plugin page in WordPress, and click “Activate”
 3. Go to widgets page in WordPress and drag StackOverflow Answers Widget to a widget
    area.
 4. Set configuration
     a. Set widget title. b. User number can be found in profile 
    URL (http://stackoverflow.com/users/[Your User Number]/[Your Username]) c. Consumer
    Key can be found by registering your widget (http://stackapps.com/apps/register).
    This is optional. d. Set number of questions to show. e. Set how you want to sort
    the list.

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

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

[帮助将「StackOverflow Profile」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/stackoverflow-profile-widget)

### 对开发感兴趣吗?

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

## 更新日志

#### 2016.01.30

 * attempt to be more ssl aware, don’t force http:// scheme
 * updated “tested up to” to 4.4.1

#### 2014.07.03

 * corrected usage of register_widget() and wp_register_style()
 * included a safe-redirect to prevent direct access to the widget

#### 2012.06.22

 * Fixed 2 bugs in soClient.php – wasnt properly filling cache files.

#### 2012.06.18

 * Now adds a “Latest” sort option, which grabs the most recently edited
    answers.
   This is in contrast to the “newest” sort option, which selects the answers with
   the most recent creation date. Also I removed the “oldest” sort option, because
   it was dumb.
 * Refactored all interaction with Stackoverflow into a reusable SOEntity
    class
   and various other derived classes
 * Fixed the caching to do it properly, in the SOEntity class.

#### 2012.06.15

 * initial release – starting from satrun77’s widget
 * Get current with StackExchange API 2.0
 * Efficient CSS via conditional wp_enqueue_style
 * cache lifetimes are configurable now
 * now renders with a recognizable Stackoverflow-like skin
 * Screenshots are now included in the distribution
 * General Code cleanup

## 额外信息

 *  版本 **2014.07.03**
 *  最后更新：**10 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 3.3.2 或更高版本 **
 *  已测试的最高版本为 **4.4.34**
 *  语言
 * [English (US)](https://wordpress.org/plugins/stackoverflow-profile-widget/)
 * 标签
 * [stack overflow](https://cn.wordpress.org/plugins/tags/stack-overflow/)[stackoverflow](https://cn.wordpress.org/plugins/tags/stackoverflow/)
   [stackoverflow answers](https://cn.wordpress.org/plugins/tags/stackoverflow-answers/)
   [widget](https://cn.wordpress.org/plugins/tags/widget/)
 *  [高级视图](https://cn.wordpress.org/plugins/stackoverflow-profile-widget/advanced/)

## 评级

 1 星（最高 5 星）。

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

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

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

## 贡献者

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

## 支持

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

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

## 捐助

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

 [ 捐助此插件 ](http://dinochiesa.github.io/SOProfile-Donate.html)