DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:adultcontent

AdultContent Plugin

Compatible with DokuWiki

Hrun, Detritus, Elenor of Tsort

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

This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.

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

Search and install the plugin using the Extension Manager. 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: 2023-10-31 00:11 by Klap-in

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki