This is an old revision of the document!
Table of Contents
adultcontent Plugin
Compatible with DokuWiki
hrun
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.
This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.
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 } ?>
Configuration and Settings
You can set your keywords in configuration (regex style).