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

Farticles

描述

Farticles makes your WordPress site fart when a page is scrolled.

Now with added backend and login farts

Important

After installing, you will need to visit your general options page to set where you would like to fart.

  • Frontend Farts
  • Backend Farts
  • Login Farts

Use with care as websites playing any kind of audio without a warning or permission from the user are generally obnoxious and annoying.

This plugin uses the fartscroll.js script from the onion

屏幕截图

  • Options are set in Settings -> General

安装

  1. Upload the ‘Farticles’ folder to the ‘/wp-content/plugins/’ directory
  2. 通过WordPress的“插件”菜单激活插件
  3. Visit settings -> general and set where your would like your farts to appear

常见问题

Why doesn’t it work?

It does. You probably didn’t notice the instruction that you need to visit your general options page to set where you would like your farts.

What is fartscroll.js?

The fartscroll.js script came from the the onion
More info

Whats with the base 64 stuff in the js file?

That is the MP3 & ogg audio

It doesn’t work on my iPad / iPhone

The fartscroll.js script could possibly be modified to replace the .scroll() function with a touchend event listener when an iPad is used. I probably won’t be looking at doing this anytime soon, so the plugin will not have any effect on apple iDevices unless someone really needs this and is able to sponsor the development of a new version.

The github page shows how to configure the number of pixels scrolled before a fart, so where are the settings?

The value is set to 400px by default. I might add a config page for selecting a value for the interval, but the default setting seems okay to me

I want my admin area and/or login page to fart as well

This has been added in version 1.1.0+

评价

此插件暂无评价。

贡献者及开发者

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

贡献者

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

对开发感兴趣吗?

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

更新日志

1.2.1

  • bugfix – fatal error on activation!

1.2.0

  • fixed idevice detection

1.1.0

  • Section added to general settings to enable frontend, backend and login farts

1.0.1

  • Prevent the plugin scripts being added on iPad/iPhone/iPod. As the .scroll() function is used, iDevices will not trigger the farts, but in some themes the plugin caused an white div to appear under the footer.

1.0.0

  • Initial Version