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

Ads Benedict

外掛說明

I run ads for long periods of time so I don’t care about accurate display statistics or anything of that nature.
I needed to show banner ads on my site, but double click for publishers was messing up my template and other plugins were too heavy for what I needed.
So, I made a super-basic banner plugin and named it after my favorite breakfast.

Create a banner, paste the link it should point to, name the zone you want it in, and make a note of the advertiser.
Then put the shortcode into your template or directly in a post.

If you put multiple banners into one zone then 1 will randomly be selected when the page loads.

螢幕擷圖

  • If you choose to use an install of YOURLS as a means of keeping track of clicks, this the setup page.
  • Ah…where the magic happens. This is a view of the live ads. Editing/Adding is just like editing/adding a post in WordPress. Lovely.
  • And…a shortcode. If you were using ads within a post you’d do it this way. Change the zone to whatever zone your ads are in. Were you to want to use this inside a theme something like: would be a better choice.

安裝方式

  1. Install from repository
  2. Update your template <?php do_shortcode('[adsbenedict zone=zonename]') ?> (change the zone name to whatever ads you want displayed here)
  3. In posts/pages just use shortcode: [adsbenedict zone=zonename] (change the zone name to whatever ads you want displayed here)
  4. Go to the adsbenedict menu page and add some ads.

常見問題集

Aren’t there enough bad banner ad plugins?

Yep. And this one makes no claims to superiority other than that it is insanely simple and fixes some problems I was having with other ad plugins.

What about click tracking? weighting? alternate networks?

If you use YOURLS link shortener you can have some rudimentary tracking. Set your YOURLS address and secret token and a column will be added that keeps track of statistics.
There is no protection against fraudulent clicks.
I use this on ads that are sold and run for a period of time as opposed to ads that have a certain number of impressions or clicks associated with them.

Will it ever…

The only “features” I think I’m going to add are a start date.
Subject to change as I need to add features for myself.

Can I request a feature?

Of course. If it’s interesting or seems helpful to the rest of the world I might add it.

Does it handle billing?

Nope.

If I put the same zone in my template twice could it possibly display the same ad twice?

Yes.

使用者評論

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

參與者及開發者

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

參與者

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

對開發相關資訊感興趣?

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

變更記錄

0.3.0

  • Fixed a slow query related to the expiration post_meta.

0.2.8

  • Increased quantity of ads to include in array.

0.2.7

  • Fixed formula for ad conversion calculations.

0.2.6

  • Forgot to make the ajax run for non-logged in users in previous release.

0.2.5

  • Ads can be loaded via ajax which defeats full page caching.

0.2.4

  • Speed and logic improvements in ad performance generation

0.2.3

  • Fixed main shortcode return so PHP notice is not raised

0.2.2

  • Fixed enqueued script with harcoded protocol
  • Fixed error where YOURLS was passed an empty string

0.2.1

  • Added short term caching to prevent slow loading due to long running query on sites with lots of posts

0.2.0

  • Added expiration date.
  • For already existing ads, this will not impact display.
  • New ads will default to an expiration one year from date of creation.
  • Added column to show expiration date.
  • Use yourls API to display statistics.
  • Check to see if yourls shortener is in use before adding display column of stats.

0.1.3

  • Fixed YOURLS error is trying to use an already shortened link (please don’t do that)
  • Styled a shortened link so it’s responsive. Hardcoded for now.

0.1.2

  • Added YOURLS integration
  • With YOURLS integration clicks and impressions are captures

= 0.1
* This is the version I’m using on my sites.
* Removed most (all?) self-deprecating comments.