Plugin pour Piwigo : Adult Content

English FrançaisFrançais

Summary

‘Adult_content’ helps to protect children. Mature pictures are filtered according to age. Three user groups are provided by the plugin: nothing, 16-17, 18+, allowing management of viewing by each group. May be adapted for violent content.

The principle of the plugin is to help in the management of mature content (it can also be adapted for violent content). To do this, the plugin manages the visitors and/or the users as you wish according to your definition of parameters of the plugin.

1 – As administrator you must put your adult content in a private gallery or album (the plugin does not manage the rights to the level of images itself, at least not yet). Then assign the gallery or album to the two groups ’18’ and ‘ 16-17′ (created by the plugin) like this:

-allow the group ’18’ to see the adult content, reserved for users over the of age of 18 and normal content (but generally the normal content is often public)

-allow the group ‘ 16-17’ to see the adult content reserved for users over the age of 16 and normal content (generally the normal content is often public)

– the ‘nothing’ group will see the normal content (but generally the normal content is often public)

Demo

On the gallery, right there!

Functioning of the plugin

The management of the users

If the user is already recorded in the activation of the plugin, the plugin shows a small block pointing out that he must choose his age. Once he clicks, the page containing the message of ‘adult content’ will appear and the choice of choosing their age (Charte_user.php). Once a visitor chooses his age, it is re-aimed to the page of choice of age (Charte_user.php), directly after its recording. In practice, the plugin places the user in the 3 groups, ‘ 18’ ‘ 16-17’ and ‘nothing’, according to his choice of age. A user may at any time change his age via the block menu of adult_content except if it is disabled via the administration of piwigo (attention the direct link to charte_user.php continues to function all the same) : if you wish that a user cannot change his age then this plugin is useless and use directly the management of rights at the level of groups and/or images.

Visitor management

If the option ‘Allow visitors to non-registered to select their age ?’ is enabled, then the plugin will manage the visitors. * It displays a block menu, indicating the gallery is ‘filtered’ and that if he wishes to disable the filter, he must select his age. It is then redirected to the page of choice of the age for visitor (chartre.php). In practice, the visitor is then recorded under one of the 2 users created by the plugin: ‘ 18’ belonging to the group ‘ 18 ‘, and ‘ 16’ from the group ‘ 16-17 ‘. These 2 user accounts may not be modified by users, only by the administrator. You open and choose to change the theme according to the age of the vistor via these 2 user accounts.

Possible adaptations

You can adapt this plugin for the violent content, simply by changing the files languages of the plugin (use the plugin Local Files Editor for more ease). The age limits may also be changed in this way.

Problem/Question ?

Please use the Piwigo forum : my mail and the commentaries are not for support!