Announcement

#1 2014-10-10 20:40:24

lightsout
Member
2014-10-10
11

View 'only' Home page as guest, access only via registered users.

Hello.

I went through permissions tutorial.

To disallow access 'except' viewing the Home page, do I have to move all albums/sub albums
into the 'private' catagory so only registered users can view ?

Thank you.


Piwigo version: 2.7
PHP version: 5.4.32
MySQL version: 5.6.16

Last edited by lightsout (2014-10-10 20:40:47)

Offline

 

#2 2014-10-11 21:04:30

flop25
Piwigo Team
2006-07-06
7037

Re: View 'only' Home page as guest, access only via registered users.

Hello
yes; you can set in the local config guest_access to false, so visitors not registers will get the identification page instead of an empty home page


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

 

#3 2014-10-12 00:13:19

lightsout
Member
2014-10-10
11

Re: View 'only' Home page as guest, access only via registered users.

Sorry, I'm not finding that setting exactly.

Are you referencing the plug-in 'Local Files Editor',
Tab - local/config/config.inc.php

What should be changed specifically.

Thank you.

Offline

 

#4 2014-10-12 02:49:44

lightsout
Member
2014-10-10
11

Re: View 'only' Home page as guest, access only via registered users.

I searched the piwigo directory for 'guest_access'

Results;

include/config_default.inc.php:$conf['guest_access'] = true;
include/functions_user.inc.php:        ($conf['guest_access'] ? ACCESS_GUEST : ACCESS_FREE);

I tried changing the file include/config_default.inc.php
From: true
To    : false

It denied access without a login, but my objective is to display the 1st page as it would
be seen as a guest, but no allow any viewing of sub level images.

Could you please advise.

Regards.

Last edited by lightsout (2014-10-12 02:55:47)

Offline

 

#5 2014-10-12 13:43:31

flop25
Piwigo Team
2006-07-06
7037

Re: View 'only' Home page as guest, access only via registered users.

I answered YES to your question, AND offered you an alternative to do something similar but not exactly the same. I thought I made myself clear, by describing the other option


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

 

Board footer

Powered by FluxBB

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