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

Ad Manager

外掛說明

Light, and at the same time advanced advertisment manager. Provides you the ability to select context conditions for displaying ads, like page location / location index / page or user class.

Note that although the current release is stable, there are features that are not yet implemented, and existing functionality that is very likely to change.

Thanks

Thanks goes to Mystique theme users, which encouraged me to improve
the original “Ads” module for that theme, and develop this plugin.

螢幕擷圖

  • Plugin options

安裝方式

Activate the plugin, and set it up as you wish from the Options dashboard menu

常見問題集

(you can skip this section if you’re not into programming at all)

What are “theme ad locations” and how do I add support for them in my theme?

Essentially they are just action tags that you can add trough your template files, where ads could be displayed.
For example, you could add one after the theme header, logo or whatever:

<?php do_action('after_header'); ?>

Then register the ad location in your theme functions.php, so the plugin becomes aware of it:

if(class_exists('AdManager'))
  AdManager()->registerAdLocation('after_header', __('After theme header'));

If you’re not the theme developer you may want to make these changes inside a child theme.

What’s up with the “index” field?

Locations don’t need to be unique. You can have multiple locations on the same page with the same name, like after_post.
Here the index field becomes handy, because it allows you to set the ad to be displayed after the Nth location.
To add index support to your location simply append the :index keyword to the first argument you pass to registerAdLocation():

if(class_exists('AdManager'))
  AdManager()->registerAdLocation('after_post:index', __('After post'));
Where does this plugin store my ads?

The options table. I didn’t think it was worth it to create a custom table, since most sites won’t have more than 10-20 ads on them.

How do I manually display an ad?

You can use the [ad n] shortcode, where n is the ID of the ad

I can’t create / edit / manage any ads from my dashboard!

This is most likely because a naughty plugin throws javascript errors, and since Ad Manager interface is currently entirely ajax-based,
any subsequent javascript will break.

使用者評論

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

參與者及開發者

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

參與者

將〈Ad Manager〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

0.9.4

  • Fixed re-escaping quotes issue when magic_quotes_gpc is on

0.9.3

  • Code inside the textarea is now escaped for display

0.9.2

  • Fixed an issue where the HTML code would get escaped
  • Implemented Quick-Enable/Disable/Clone controls

0.9.1

  • CSS fix for Firefox for ad editor controls
  • Fixed an ad queue issue with theme locations

0.9

  • First public release (forked from the “Ads” module 1.4 from Atom).