Piwigo.org

You are not logged in. (Register / Login)

Announcement

#1 2011-12-14 11:38:27

heras
Member
Registered: 2011-10-20
Posts: 3

[resolved] Is it possible to restrict guest access to only thumbnails?

Hey,

I started to use piwigo, which i find the best gallery available, and have a question about the guest user.

In my setup i installed the plugin GThumb+. When a guest clicks on an album he sees the overview of all the pictures in it. That is also the only thing he should be able to view. So when he clicks then on one of the pictures he should get the login page.

Is it possible to restrict guest access to only thumbnails?

Best regards,

Peter

Last edited by heras (2011-12-14 11:38:59)

Offline

#2 2011-12-14 11:52:42

P@t
Piwigo Team
Location: Nice
Registered: 2007-06-13
Posts: 4093
Website

Re: [resolved] Is it possible to restrict guest access to only thumbnails?

Open LocalFiles Editor plugin, go to 5th tab (personal plugin) and insert this code:

Code:

add_event_handler('loc_begin_picture', 'personal_guest_picture_access');

function personal_guest_picture_access()
{
  if (is_a_guest()) access_denied();
}

Then, activate the personal plugin on plugins page.


P@t

Offline

#3 2011-12-14 12:19:51

heras
Member
Registered: 2011-10-20
Posts: 3

Re: [resolved] Is it possible to restrict guest access to only thumbnails?

Great, thats what i needed.

Thanks

Offline

#4 2011-12-16 09:24:17

mol
Member
Location: germany
Registered: 2010-05-26
Posts: 106
Website

Re: [resolved] Is it possible to restrict guest access to only thumbnails?

P@t wrote:

Then, activate the personal plugin on plugins page.

working.

and now, please, with the possibility to configure it on album level too,  like :
"if user guest and album id {array} show only thumbs ..." (i´m not a programmer!) ;-}
and with a nice usergui :-) :-)

Offline

Board footer

Powered by FluxBB

About this website · Donate · Contact Piwigo project © 2002-2013