Title: Code School Badges
Author: mcnitt
Published: <strong>2014 年 9 月 12 日</strong>
Last modified: 2014 年 9 月 23 日

---

搜索插件

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

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

# Code School Badges

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

[下载](https://downloads.wordpress.org/plugin/code-school-badges.1.0.2.zip)

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

 [支持](https://wordpress.org/support/plugin/code-school-badges/)

## 描述

Learn By Doing. Code School teaches web technologies in the comfort of your browser
with video lessons, coding challenges, and screencasts. Use this plugin to proudly
display completed Code School course badges on your WordPress blog, website or CV.

You can use a widget to display your badges in a header, sidebar or footer or use
a shortcode to display badges in the main content area of a post or page. The plugin
offers two customization options:

 1. How many of your most recent completed course badges to display
 2. How large should each badge be (in pixels, ems, or other valid units)

Project code is hosted at GitHub. Contributors welcome.

## 屏幕截图

 * [[
 * Once you have installed the plugin, navigate to Settings > Code School Badges
   in the admin area
 * [[
 * Type in your Code School username (see FAQ for how to find your username)
 * [[
 * View your latest badges and profile information
 * [[
 * Add a widget to your site go to Appearance > Widgets. Look for the ‘Code School
   Badges’ widget and drag to the appropraite widget area. Enter in a title to appear
   above the badges, enter in the number of badges you would like to appear, and
   enter how large each badge should be (examples: 60px, 5ems, 12pts, etc.).
 * [[
 * To add badges using a shortcode use [wpcodeschool_badges]. You can also use the
   following optional parameters [wpcodeschool_badges num_badges=’4′ badge_size=’
   100px’]. If num_badges is not specified, all of your badges will be displayed.
 * [[
 * A previews of badges displaying as a shortcode and as a widget

## 安装

There are a few options for installing and setting up this plugin.

#### Upload Manually

 1. Download and unzip the plugin
 2. Upload the ‘wpcodeschool-badges’ folder into the ‘/wp-content/plugins/’ directory
 3. Go to the Plugins admin page and activate the plugin

#### Install Via Admin Area

 1. In the admin area go to Plugins > Add New and search for “Code School Badges”
 2. Click install and then click activate

#### To Setup The Plugin

 1. Find your Code School username (see instructions under FAQ)
 2. In the WordPress admin area go to Settings > Code School Badges and then enter 
    in your username

#### How to Use the Badges Widget

 1. Setup the Plugin (refer to above)
 2. Go to Appearance > Widgets and drag the ‘Code School Badges’ widget to your sidebar.
 3. Enter in a Title to appear above the badges. For example “My Code School Badges”
 4. Choose how many badges you would like to display
 5. Enter how large each badge should be. Examples: 60px, 5ems, 12pts, etc.

#### How to Use the Shortcode

 1. Navigate to the post or page you would like to add the badges to appear.
 2. Enter in the shortcode [wpcodeschool_badges]
 3. Customize the number of badges displayed by adding the parameter ‘num_badges’ with
    the number of badges you want to display. [wpcodeschool_badges num_badges=’4′].
    If a number is not specified, all of your badges will be displayed.
 4. Customize how large each badge should be. Examples: 60px, 5ems, 12pts, etc. [wpcodeschool_badges
    badge_size=’100px’]. If no size is specified, the default badge size is 60px.
 5. You can use any of the parameters in combination [wpcodeschool_badges num_badges
    =’4′ badge_size=’100px’]

## 常见问题

  How do I find my Code School username?

 1. Login to your Code School account
 2. Go to [https://www.codeschool.com/account](https://www.codeschool.com/account)
 3. Your username appears on the page

  A recent badge is not appearing

The plugin caches queries for 12 hours. This keeps your site running fast and prevents
too many calls to the Code School API. You can clear the cache by going to the admin
area, Settings > Code School Badges, and hitting the ‘Update’ button.

  How Often Does the Profile Information Get Updated?

Whenever someone visits a page, the plugin checks to see if the profile information
was updated in the last 12 hours. If it has been longer than 12 hours, then the 
plugin will update the profile information. The next time someone visits the site
or clicks on a page, the latest badges show.

  Can I Choose What Specific Badges I Want to Display?

Unfortunately, not yet. For future releases, we are considering more customized 
ways to choose what badges you want to display, instead of just showing the most
recent badges.

  Can I contribute code and bug fixes?

Contributors are welcome. Please visit the [Code School Badges GitHub project.](https://github.com/mcnitt/code-school-badges-wordpress-plugin)

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

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

[帮助将「Code School Badges」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/code-school-badges)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.0.2

 * Fix broken CSS and JS links on most servers

#### 1.0.1

 * Fix broken CSS and JS links on some servers

#### 1.0

 * Initial version of the plugin
 * Includes basic widget and shortcode display options

## 额外信息

 *  版本 **1.0.2**
 *  最后更新：**12 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 3.0.1 或更高版本 **
 *  已测试的最高版本为 **4.0.38**
 *  语言
 * [English (US)](https://wordpress.org/plugins/code-school-badges/)
 * 标签
 * [badges](https://cn.wordpress.org/plugins/tags/badges/)[profile](https://cn.wordpress.org/plugins/tags/profile/)
   [shortcode](https://cn.wordpress.org/plugins/tags/shortcode/)
 *  [高级视图](https://cn.wordpress.org/plugins/code-school-badges/advanced/)

## 评级

尚未提交反馈。

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

[查看全部评论](https://wordpress.org/support/plugin/code-school-badges/reviews/)

## 贡献者

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

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/code-school-badges/)

## 捐助

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

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