DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:adultcontent

AdultContent Plugin

Compatible with DokuWiki

  • 2017-02-19 "Frusterick Manners" unknown
  • 2016-06-26 "Elenor Of Tsort" yes
  • 2015-08-10 "Detritus" yes
  • 2014-09-29 "Hrun" yes

plugin This simple plugin will check your dokuwiki page before being saved whether it contains given keywords like "sex", "porn", "orgy", etc and puts the "adult" flag in metadata.

Last updated on
2014-10-27
Provides
Action
Repository
Source

Tagged with adsense, adult, content

I just have a few pages which has medical information about sexually transmitted disease, but Google AdSense does not like them. so I made this plugin.

:!: External requirement: This plugin does nothing except tagging a internal metadata. To have an effect, your template or other plugin must utilize it.

Installation

Install the plugin using the Plugin Manager and the download URL above, which points to latest version of the plugin. Refer to Plugins on how to install plugins manually.

Examples/Usage

This simple plugin will check your dokuwiki page before being saved whether it contains given keywords like “sex”, “porn”, “orgy”, etc and puts the “adult” flag in metadata.

You can retrieve this flag in your template and might control your contents like Google AdSense.

<?php if (!p_get_metadata($ID,"adult")) {?>
 
...
 
Your Google AdSense code...
 
...
 
<?php } ?>

See the plugin in action here (Korean).

Configuration and Settings

You can set your keywords in configuration (regex style).

Change Log

Discussion

plugin/adultcontent.txt · Last modified: 2016-07-06 03:33 by 115.93.88.196