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

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 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 or on the author’s site. 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

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 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 or on the author’s site.

常見問題集

None yet!

This plugin is actively maintained and will remain so until the universe implodes. Create a topic in the forum or on the author’s site if you have any problems, questions, or suggestions.

使用者評論

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

參與者及開發者

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

參與者

將〈Simple PW Ads〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

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