• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..05-Feb-2023-

conf/H03-May-2018-114

README.mdH A D27-Jun-2016644 2814

action.phpH A D27-Jun-2016990 4327

plugin.info.txtH A D27-Jun-2016181 87

README.md

1
2Dokuwiki plugin adultcontent
3============================
4
5This 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.
6
7
8
9You can retrieve this flag in your template and might control your contents like Google AdSense.
10
11```php
12
13<?php  if (!p_get_metadata($ID,"adult")) {?>
14
15...
16
17Your Google AdSense code...
18
19...
20
21<?php } ?>
22```
23
24https://www.dokuwiki.org/plugin:adultcontent
25
26I just have a few pages which has medical information about sexually transmitted disease, but Google AdSense does not like them.
27so I made this plugin.
28