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

Anti-block

描述

I created this plugin initially because I noticed that some ad-blocking software was blocking more than just my ads, they were also blocking random elements on my site like my image sliders as well. But obviously this will serve the guys who want it just for the purpose of notifying visitors who block ads to stop doing so.

This plugin displays a nice notice to them explaining the situation.
The interface has two options, the okay button will reload the page upon clicking it (hopefully they would have disabled ad-block), the other button will simply close the message box. If the option to stop nagging visitors for the entire duration of their session on your website is set, then upon clicking the decline button, the message will only show again next time they visit your website.

屏幕截图

  • Example of settings screen where you edit plugin settings.
  • Example of how the message looks when showed to a visitor of your website.

安装

This plugin is easy to install, just do the following.

  1. Unzip the plugin to your wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Amend the plugin settings under Settings –> Anti-block

常见问题

Does this plugin add to my page load time?

No, this plugin only runs when the footer of the page is loaded, by then all your content would have been loaded already.

Can I make my the visitor’s screen explode when they block my ads?

Sadly, no 🙁

评价

2017 年 9 月 8 日
And finally an plugin for block adblocker run! but wait, it block always! haha Run in firefox, opera, explorer... but block always!!
阅读所有4条评价

贡献者及开发者

“Anti-block” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

将“Anti-block”翻译成您的语言。

对开发感兴趣吗?

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

更新日志

1.0.6

  • Adblock Plus is getting clever and worked around the method I used to detect them. Had to implement a fix.

1.0.5

  • CSS broke and showed “An Advertisment” in WP-admin.

1.0.4

  • Fixed a few bugs. Now works in WordPress 4.0

1.0.3

  • Bug fix for 1.0.2

1.0.2

  • Added the ability to allow your visitor to hide the pop-up message for the rest of their session if you enabled this in the admin settings.

1.0.1

  • Added hooks to remove data when plugin is uninstalled.

1.0.0

  • This is our first version of the plugin.