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

描述

If you’ve given up the low-paying and slightly obtrusive ad networks used by many new bloggers, in favor of selling ads directly, you may have been frustrated with the excessive time involved managing your ads. Not only do you have to find advertisers to sponsor your blog, you have to manually edit your template to put the ad in, and then head over to your favorite calendar app to set an alert to remind you when to take the ad down.

Time consuming practices like those are a thing of the past. The WP125 plugin can help you manage your ads more efficiently, leaving you with more time to write new posts. The plugin adds a new “Ads” menu to the WordPress admin, featuring submenus for tweaking display settings and adding and removing ads.

Features include:

  • One or two column ad display, and support through template tags to implement your own unconventional design.
  • Show as many ads as you want, and in either manual or random order
  • Keep track of how many times an ad is clicked
  • When creating a new ad, you don’t have to calculate the end date yourself. Just input how many days you wish the ad to run for, and the correct date will be applied. The ad will be automatically taken down when the time comes.
  • When an ad run is over, the record is archived on the Inactive ads screen, so you can check on the final click count, or revive the ad for another run.
  • When an ad slot is empty, a placeholder ad of your choice will be displayed. This could be a “Your Ad Here” image linking to a page with statistics and pricing, or an affiliate link.
  • Optionally recieve email notifications when an ad expires. Useful if you send follow-up messages to advertisers, or if you just want to stay in the know.

Upgrading

You may upgrade the plugin via the automated system in WordPress 2.5 or greater, or “old-style” by downloading the new one and then
1. Deactivating plugin
2. Uploading the updated files
3. Reactivating plugin

Known Issues

  • If you have WP Super Cache installed on your blog, it may conflict with WP125’s click tracking feature. To fix this, add “index.php” on a new line in the “Rejected URLs” field of the WP Super Cache options page. This will disable caching for yourblog.com/index.php. If someone goes to yourblog.com, they will still get the cached version, but since WP125’s click tracker URLs look like “/index.php?adclick=1,” they will avoid the cache.

Support

If you’re having a problem with the plugin, try posting on the official WordPress forum at https://wordpress.org/support/ (be sure to use the tag “WP125”!). I, or another user of the plugin, will hopefully be able to answer your questions. Or send me an email via the contact form on Webmaster-Source.com.

Translation Credits

  • Danish Translation: Georg S. Adamsen
  • French Translation: Alexandre Cloquet
  • Italian Translation: Gianni Diurno
  • Russian Translation: M. Comfi
  • Simplified Chinese Translation: Sam Zuo
  • Dutch Translation: Jackey van Melis
  • Brasilian Portuguese Translation: Jos� de Menezes Filho
  • German Translation: Simon Kraft
  • Romanian Translation: Web Hosting Geeks
  • Slovak Translation: Branco Radenovich, Web Hosting Geeks
  • Ukrainian Translation: Michael Yunat, GetVOIP.com

屏幕截图

  • A few 125×125 ads, in two-column format.
  • The Add/Edit ads screen.

安装

  1. Download and unzip the package.
  2. FTP the entire “wp125” directory to your /wp-content/plugins/ directory on your blog.
  3. Activate the plugin on the “Plugins” tab of the administartion panel.
  4. Either use the included “WP125: Ads” widget, or place the <?php wp125_write_ads(); ?> template tag where you wish your ads to appear.
  5. Go to the new “Ads” section of the WordPress admin, where you can tweak settings, such as the maximum number of ads to be shown at once (the default is 6), and how they should be displayed.

常见问题

What if I don’t want to arrange my ads in one OR two columns?

If you want to arrange your ads in an unconventional manner, you can use the <?php wp125_single_ad(num); ?> template tag (replace “num” with the number of an ad slot). The tag will return one ad with minimal formatting (simply ). You can use multiple instances of the tag in your template to set lay your ad slots out in whatever way you choose.

One of my ads hit it’s expiration date. Where did it go?

When an ad’s time duration is over, it disappears off your site, and is removed from the Active ads page in the WordPress admin. To access the record, just click the “Inactive” link on the Manage screen. The page should update to show all of your inactive ads.

What if I don’t want an ad to be taken down automatically?

Just select “I’ll remove it manually” for the expiration date when you go to create the ad.

How do I style my ads different than the default?

First, uncheck the Default Style box on the Settings page. This will remove the default styling. Next, make use of your mad CSS skills to re-style the ads. Here’s what the default CSS looks like:

`/* Styles for one-column display */

wp125adwrap_1c .wp125ad { margin-bottom:10px; }

/* Styles for two-column display */

wp125adwrap_2c .wp125ad { width:125px; float:left; padding:10px; }`

How do I make the ads open in a new window?

If you absolutely must have your ads open in a new window when clicked, open the wp125.php file and find the define(... line near the top and remove the first // from the beginning.

Why is the Slot dropdown missing when I try to add a new banner?

Turn off AdBlock. It indiscriminately zaps page elements containing the word “ad,” which means you’re going to have a bad time managing ads…

My ads don’t appear in two columns, even though I have the option set! How do I fix this?

The parent DIV that the ad code is inside probably isn’t wide enough. You really need a minimum of 250px of horizontal space to have two ad columns, more if you use the default CSS. You could try reducing the CSS padding around the ads from 10px to something lower.

#wp125adwrap_2c .wp125ad { padding:4px; }

评价

2017 年 2 月 7 日
Thank you for plugins The plug was Translation into Persian Download the file Link Translation : Please add files to translation plugin Thanks
阅读所有17条评价

贡献者及开发者

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

贡献者

「WP125」插件已被翻译至 12 种本地化语言。 感谢所有译者为本插件所做的贡献。

帮助将「WP125」翻译成简体中文。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

  • 1.0.0 – Initial release
  • 1.1.x – Some security and performance fixes, adds several new customization options and a few major features.
  • 1.2.x – Added new features: Recieve email notifications in advance of ads expiring, alternating CSS classes on ads, and open ads in new windows if you absolutely must.
  • 1.3.x – Localization support (with French and Spanish to start), iCalendar subscription of ad expirations, WP Dashboard widget. Fixed errant “ADLINK_EXTRA”s in Single ads, fixed “no ads, no placeholders” bug, etc..
  • 1.3.7 – Added Russian translation.
  • 1.3.8 – Added zh_CN translation
  • 1.3.9 – Changed SQL query on 131 of adminmenus.php to fix bug where ads are not inserted in some situations. Added Dutch and Brasilian Portuguese translation files.
  • 1.4.0 – Now with WordPress 3.0 support!
  • 1.4.1 – Added German translation and fixed a stylesheet enqueue bug for WP 3.3.
  • 1.4.2 – Now with support for multiple widgets!
  • 1.4.3 – Added Romanian translation.
  • 1.4.4 – Fixed a race condition that could cause many duplicate expiration emails to be sent on high-traffic sites.
  • 1.4.5 – Added uploader, plus fixed some potential vulnerabilities. (Thanks to Charlie Eriksen via Secunia SVCRP.)
  • 1.4.6 – Fix for duplicate ad expiration emails, part II: The Bug Strikes Back.
  • 1.4.7 – Added uninstaller to properly remove WP125’s database tables when removing the plugin.
  • 1.4.8 – Translation update.
  • 1.4.9 – Some changes to the default CSS. Added a clearfix to the ads in two-column mode (finally!). Also, updated some buttons to match changes in WordPress.
  • 1.5.0 – Fixed a potential CSRF vulnerability. (Minor security fix.)
  • 1.5.1 – Added Czech translation.
  • 1.5.3 – Added Ukrainian translation
  • 1.5.4 – Updated to support WordPress 4.3
  • 1.5.5 – Fixed potential CSRF vulnerability, security hardening, minor bug fixes