Title: Simple PW Ads
Author: Big Bagel
Published: <strong>2011 年 7 月 21 日</strong>
Last modified: 2014 年 7 月 19 日

---

搜索插件

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

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

# Simple PW Ads

 作者：[Big Bagel](https://profiles.wordpress.org/big-bagel/)

[下载](https://downloads.wordpress.org/plugin/simple-pw-ads.3.0.3.zip)

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

 [支持](https://wordpress.org/support/plugin/simple-pw-ads/)

## 描述

Provides three (widget, shortcode, and template tag) easy ways to add Project Wonderful
ads to your WordPress site along with a simple management page to handle them.

This plugin was intentionally kept simple. Insert your Project Wonderful publisher
ID/member number on the management page, click “Synchronize Ad Data”, and watch 
as all your ad information is displayed. You can then use the added widget, shortcode,
or template tag to display any of the ads connected to your PW account.

See the [Other Notes](https://wordpress.org/extend/plugins/simple-pw-ads/other_notes/)
page for the shortcode and template tag as well as usage notes.

**Before marking this plugin as broken**, ask for some help in [the forum](https://wordpress.org/tags/simple-pw-ads?forum_id=10#postform)
or on the [author’s site](http://interruptedreality.com/plugins/simple-pw-ads/).
It could be a minor bug with a simple fix specific to your configuration.

#### New in version 3

**Important**:
 Before version 3.0.0 there was a very serious bug. The Project Wonderful
asynchronous code was added to the footer in such a way that it could confuse the
Project Wonderful robot in charge of checking ads. As a result, ads could have difficulty
activating or be automatically deactivated. Do not use any version of this plugin
prior to 3.0.0.

Simple PW Ads now includes a management page to keep track of your ads. Any ads 
added in versions prior to 3.0.0 will need to be checked/re-added once you input
your publisher ID/member number.

Plugin Website: [Simple PW Ads](http://interruptedreality.com/plugins/simple-pw-ads/)

### Notes

This plugin relies on PHP’s SimpleXML extension. SimpleXML is enabled by default
since PHP 5.1.2 (WordPress 3.2 and greater requires PHP 5.2.4). Simple PW Ads will
check for SimpleXML and display a helpful error if not found.

### Usage

Simple PW Ads no longer requires you to mess with ad codes. Simply go to Project
Wonderful and find your publisher ID/member number under “My account > My profile”.
Type your ID on the management page, and click “Synchronize Ad Data”. The information
for all of your ads will be downloaded and shown. You can now use the widget, shortcode,
or template tag to insert your ads.

The added shortcode is: `[spw_ad managed_ad="X"]`
 The added template tag is: `spw_insert_ad('
X' )`

X corresponds to “Ad Number” on the management page.

If you edit your ads within Project Wonderful, you should click “Synchronize Ad 
Data” again to grab the changes. If you delete an ad in Project Wonderful, all your
ad numbers will remain the same; you will not have to check/edit any currently used
ads.

## 屏幕截图

[⌊The added widget.⌉⌊The added widget.⌉[

The added widget.

[⌊The management page.⌉⌊The management page.⌉[

The management page.

## 安装

You can use the “Install Plugins” page in your dashboard to search for and automatically
install the plugin.

If you need or want to manually install the plugin:

 1. Download and extract Simple PW Ads
 2. Upload the `simple-pw-ads` folder to the `/wp-content/plugins/` directory
 3. Activate/Network activate the plugin through the ‘Plugins’ menu in WordPress

If you receive any errors, you can ask about them in [the forum](https://wordpress.org/tags/simple-pw-ads?forum_id=10#postform)
or on the [author’s site](http://interruptedreality.com/plugins/simple-pw-ads/).

## 常见问题

None yet!

This plugin is actively maintained and will remain so until the universe implodes.
Create a topic in [the forum](https://wordpress.org/tags/simple-pw-ads?forum_id=10#postform)
or on the [author’s site](http://interruptedreality.com/plugins/simple-pw-ads/) 
if you have any problems, questions, or suggestions.

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

 *   [ Big Bagel ](https://profiles.wordpress.org/big-bagel/)

[帮助将「Simple PW Ads」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/simple-pw-ads)

### 对开发感兴趣吗?

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

## 更新日志

#### 3.0.3

 * Testing with version WordPress 3.9.1

#### 3.0.2

 * Minor bug squashing; accidentally used “<?” instead of “<?php” in one spot.
 * Tested with latest 3.3 beta.

#### 3.0.1

 * Added several sanity checks and more detailed error reporting.
 * Switched to WordPress’ HTTP API to make fetching XML from Project Wonderful more
   robust.
 * Fixed a logic error: In 3.0.0 deleting an ad box in Project Wonderful would make
   every subsequent ad number decrease by one. Now, ad numbers are immutable and,
   once associated with an ad, will never change.

#### 3.0.0

 * Now uses Project Wonderful’s xmlpublisherdata.php to retrieve all ad information
   with only a publisher ID/member number.
 * Allows for the use of standard and advanced code in normal or asynchronous mode.
 * General bug squashing.
 * Fixes a major bug in the way the asynchronous Project Wonderful code was added
   to the footer which could prevent new ads from being activated and cause current
   ads to be deactivated. Do not use any version of Simple PW Ads prior to this 
   one.
 * Due to the previous bug, this version was developed and released extremely quickly.
   Please report any bugs.

#### 2.0.0

 * Added management page.
 * Updated widget, shortcode, and template tag to use ads added through management
   page.
 * Replaced any uses of `split()` with `explode()` since `split()` is now deprecated.

#### 1.1.1

 * Added internationalization support.

#### 1.1

 * Made the code nicer. Nothing else.

#### 1.0

 * Initial release

## 额外信息

 *  版本 **3.0.3**
 *  最后更新：**12 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 3.2 或更高版本 **
 *  已测试的最高版本为 **3.9.40**
 *  语言
 * [English (US)](https://wordpress.org/plugins/simple-pw-ads/)
 * 标签
 * [ad](https://cn.wordpress.org/plugins/tags/ad/)[ads](https://cn.wordpress.org/plugins/tags/ads/)
   [advertising](https://cn.wordpress.org/plugins/tags/advertising/)[widget](https://cn.wordpress.org/plugins/tags/widget/)
 *  [高级视图](https://cn.wordpress.org/plugins/simple-pw-ads/advanced/)

## 评级

尚未提交反馈。

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

[查看全部评论](https://wordpress.org/support/plugin/simple-pw-ads/reviews/)

## 贡献者

 *   [ Big Bagel ](https://profiles.wordpress.org/big-bagel/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/simple-pw-ads/)

## 捐助

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

 [ 捐助此插件 ](http://interruptedreality.com/plugins/simple-pw-ads/)