Announcement

#1 2011-11-09 17:14:00

NWS
Member
Seattle, WA
2011-04-02
175

Adult Content Plugin

Greetings.

I'm using the Adult Content Plugin on my gallery but I'm curious if I can use it differently than having it as a menu item across the top of the page.

Here's what I'd like to do. I'd like make a new "entry" page to my gallery ( I have Additonal Pages plugin installed) and I would like to have the "enable" or "disable" options from the Adult Content Plugin (buttons) on that page along with a copyright notice.

Then if they click on enabling the adult content they would see all the albums including the adult content albums. If they click that they aren't over 18 then the those albums would not be available.

Is this possible without a lot of editing?

I could make my own page with buttons, if I knew which page to link to for the two options:
"Enable adult content" or "Disable adult content".

Thanks!

Tom

Last edited by NWS (2011-11-09 18:23:03)

Offline

 

#2 2011-11-09 18:44:14

NWS
Member
Seattle, WA
2011-04-02
175

Re: Adult Content Plugin

After some work I got a page made using the adult content plugin. But it doesn't work right. The links don't go where they should.

Here's the page I created:

http://www.northwestscenescapes.net/gal … hp?/page/6

When I'm configuring the page inside Piwigo and choose to "make this your homepage" the links are really screwed up.

Can someone help me fix this?

Thanks!!

Offline

 

#3 2011-11-09 19:27:58

flop25
Piwigo Team
2006-07-06
7037

Re: Adult Content Plugin

Hello,
I'm the developer of that extension
If I do understand you, you just don't want the sub level 16 old. I could add this in option, not so hard.
The "link" you were asking for, in fact, a form :
<form action="../../identification.php" method="post">
<input type="hidden" value="18" size="15" name="username">
<input type="hidden" value="adult_content" size="15" name="password">
<input class="submit" type="submit" value="Activer le contenu pornographique" name="login">
....
But what you're trying is creating again the plugin : I'm currently checking how to alloy more easily customizations


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#4 2011-11-09 19:37:09

NWS
Member
Seattle, WA
2011-04-02
175

Re: Adult Content Plugin

Thanks for the quick reply.

The link I posted is basically how I'd like it to look. I just can't figure out what to edit to get the links to go where they should.

I made the page by cutting/pasting the page source code into a new page using the additonal pages plugin, but obviously there's something in there that shouldn't be?

It really becomes a mess if I select "set as homepage" in the additonal pages configuration.

I wouldn't even worry about it but the laws in the US are pretty strict about nude content in websites.

Hope this makes some sense to you.

Last edited by NWS (2011-11-09 19:40:02)

Offline

 

#5 2011-11-09 19:47:41

flop25
Piwigo Team
2006-07-06
7037

Re: Adult Content Plugin

NWS wrote:

Thanks for the quick reply.

you're welcome

NWS wrote:

I just can't figure out what to edit to get the links to go where they should.

just a wrong path for the identification page :
<form method="post" action="../../identification.php"> -> <form method="post" action="identification.php">
It will work and I suppose you will hide all menu from the plugin. if you don't need to automatically put users in a "+18" group, you can disable all the plugin and create your own user 18.
The problem is that your page will be accessible whatever the user is (registred or not, in the +18 group or not). That's why I have made this plugin : to correctly manage every details.

If you can explain what is disturding you with the plugin, I could make the plugin fits your need

flop25 wrote:

If I do understand you, you just don't want the sub level 16 old. I could add this in option, not so hard.

and

the laws in the US are pretty strict about nude content in websites.

what's the specificities ?


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#6 2011-11-09 20:00:58

NWS
Member
Seattle, WA
2011-04-02
175

Re: Adult Content Plugin

My understanding of the laws here is I just have to put a disclaimer that the site has nude content and all the models are over 18. We don't need a 16-17. It's my understanding if a site has nude images they have to be over 18.

I don't really have a problem with the plugin itself.

I would just like to remove it from the menu bar across the top and put it on a new entry (index page) to enter the website like in the link I posted. I'm just having trouble editing that page to get the links to work right.

I suppose if worst comes to worst I'll just create an entry page with a copyright notice and a statement that the site contains nude content. Then just direct that to the gallery and let the plugin do what it was designed to do.

I don't want to create a bunch of extra work for you just to make it do what I want.

I appreciate everyone's work on Piwigo and all the plugins.

Last edited by NWS (2011-11-09 20:03:50)

Offline

 

#7 2011-11-09 21:56:42

flop25
Piwigo Team
2006-07-06
7037

Re: Adult Content Plugin

NWS wrote:

I don't want to create a bunch of extra work for you just to make it do what I want.

you're too kind ^^
I will add an option for 16 old

NWS wrote:

I appreciate everyone's work on Piwigo and all the plugins.

thx!

You can config as this
$conf['gallery_url'] = 'http://localhost/www/SITE/sandbox/pwg_test/pwg_last_stable/plugins/adult_content/charte.php';
and create a perso plugin with Local File editor, in order to redirect to the disclaimer page :

Code:

add_event_handler('loc_end_page_header', 'skip_index');
function skip_index()
{
  global $page;
  if (is_a_guest() and isset($page['section']) )
  {
    redirect(make_index_url()."/plugins/adult_content/charte.php");
  }
}

But I've seen a problem for customizing the text : adding custom language key from local file editor seems not working with plugins. I will check that


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#8 2011-11-10 17:42:56

NWS
Member
Seattle, WA
2011-04-02
175

Re: Adult Content Plugin

Thank you for your help. It's very appreciated.

I asked a few of my friends to look through my gallery and give me their impressions of how the Adult Content plugin worked, and if I should have it on an entry page rather than the way you have it set up.

It was unanimous that the plugin is fine the way it works.

Only one comment that it might be hiding some images that don't contain nudity.


I noticed in your configuration this statement:

View a flyer on the homepage? (Requires plugin PWG_Stuffs) Not available for now

Are you planning on implementing that in the future and exactly what will it do?


I was also looking to see if Piwigo can set permissions (ie: +18) on individual photos. I see I can with albums but it doesn't look like it can be done on individual photos.

Is this something that could be added in a future release?

Offline

 

#9 2011-11-10 17:53:41

flop25
Piwigo Team
2006-07-06
7037

Re: Adult Content Plugin

NWS wrote:

Only one comment that it might be hiding some images that don't contain nudity.

yes that's related with :

NWS wrote:

I was also looking to see if Piwigo can set permissions (ie: +18) on individual photos. I see I can with albums but it doesn't look like it can be done on individual photos.

Is this something that could be added in a future release?

And it's a bit touchy : I can add more privacy level or change them, but it will affect all the other plugins. The best should be to set to users -16 and 18 and the users in group 16*17 and +18- a corresponding level privacy, like "family" for 18 old and "friend" for 16-17 old. It can be done manually, but it would be more user friendly with a specific page for users in groups.

NWS wrote:

I noticed in your configuration this statement:
View a flyer on the homepage? (Requires plugin PWG_Stuffs) Not available for now
Are you planning on implementing that in the future and exactly what will it do?

well well well ... ^^ it's planned but it's not a hight or even a medium priority : the idea is to display the disclaimer as a PWG_Stuffs block, in order to be displayed on the home page, album pages and/or picture pages.

Thx for your compliment; I'm very happy when I see users happy (and polite).
Monday I will try to find a way to customize the text files

Last edited by flop25 (2011-11-10 17:55:40)


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#10 2011-11-10 18:25:56

NWS
Member
Seattle, WA
2011-04-02
175

Re: Adult Content Plugin

And it's a bit touchy : I can add more privacy level or change them, but it will affect all the other plugins. The best should be to set to users -16 and 18 and the users in group 16*17 and +18- a corresponding level privacy, like "family" for 18 old and "friend" for 16-17 old. It can be done manually, but it would be more user friendly with a specific page for users in groups.




Sorry but I'm confused. I'm trying to figure this out. I hope this will make sense to you.

I'm in the user options   This is one of the users I see:

Username     User status     Email address      Groups     Properties     Actions

18                      Generic                                    +18


Below that I see:


Properties  High definition enabled     leave / set to Yes No
Privacy level     leave set to

Under privacy level I can pick Contacts, Friends, Family, Admins

So are you saying to change that to Family or Friends. Then when I add a photo I can pick that from the option "Who can see these photos?"


I really appreciate your help.

Last edited by NWS (2011-11-10 18:27:38)

Offline

 

#11 2011-11-10 18:39:47

NWS
Member
Seattle, WA
2011-04-02
175

Re: Adult Content Plugin

OK, so I finally figured it out. Not sure exactly what I did but used your idea.

I have managed to allow an album (nudes) which contains some nudes but some that aren't nudes to be visible in the gallery. I've also managed to set some of the images only viewable by "Admin/Family" (which is associated to the +18 group/user.

As far as I can tell when I'm not logged into Piwigo, it works fine. To view any of the photos marked "Family" I have to click on the enable nude content to get them to show up.


Thanks again for all your help with this.

Offline

 

#12 2011-11-10 18:44:17

flop25
Piwigo Team
2006-07-06
7037

Re: Adult Content Plugin

yep that's it ! Sry for my English
the privacy level is pyramidal : admin can see what family can see, and family can see what friends see, but friends can't see all what famliy see
So with 18 and 16 it's the same : 18>16>guest
And for the group, you can use the filter to display all the 18+ users or all the 16-17 users, and set them to Family for 18 and Friends for 16-17

PS : you have posted when I was written : you have perfectly understood the idea. The problem is the privacy level for registered users in the groups : it won't be set automatically, so you need to act.
You should use Multi View to see "who see what"


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#13 2011-11-10 18:52:14

NWS
Member
Seattle, WA
2011-04-02
175

Re: Adult Content Plugin

Sorry, I'm confused again. I'm still trying to figure out how Piwigo works with permissions, groups, and users.

What do you mean by "multi view"?

Last edited by NWS (2011-11-10 18:53:15)

Offline

 

#14 2011-11-10 18:59:42

flop25
Piwigo Team
2006-07-06
7037

Re: Adult Content Plugin

NWS wrote:

Sorry, I'm confused again. I'm still trying to figure out how Piwigo works with permissions, groups, and users.

no problem :
level permission is for picture only, and is set to users
permission is for albums and groups
They have been created for different needs but can be combined

NWS wrote:

What do you mean by "multi view"?

The plugin delivered by default

Last edited by flop25 (2011-11-10 19:01:39)


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#15 2011-11-10 19:04:09

NWS
Member
Seattle, WA
2011-04-02
175

Re: Adult Content Plugin

Thanks again. I don't think I'll have to bother you anymore. Seems to be working the way I need it to now.

I can at least have the non-nude photos show up to everybody, but the nude ones will only show after clicking on "remove protection". Exactly what I need.

I wouldn't have figured this out without your help.

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact