Piwigo.org

You are not logged in. (Register / Login)

Announcement

#1 2011-09-29 10:48:18

Vanndy
Translation Team
Location: Cambodia
Registered: 2011-09-29
Posts: 34

How to set default home page redirect to login page?

Hi Piwigo team,
I am creating a photo gallery website using Piwigo. My purpose is that if a user, though he/she have register already on my page, not yet log-in their account, when they visited my site, I want the page redirect to log-page (http://localhost/mysite/identification.php)
How can I do with this?

Thanks in advance.
Vanndy

Offline

#2 2011-09-29 10:51:31

plg
Piwigo Team
Location: Paris, France, Europe
Registered: 2002-04-05
Posts: 11717
Website

Re: How to set default home page redirect to login page?


Latest blog post on Piwigo.com: Piwigo 2.5 on Piwigo.com (March 7th, 2013)

Offline

#3 2011-09-29 11:08:22

Vanndy
Translation Team
Location: Cambodia
Registered: 2011-09-29
Posts: 34

Re: How to set default home page redirect to login page?

Thank plg for quick warmly reply to me. After i added a line of code ( $conf['guest_access'] = false; ) into the file config.inc.php now it work :) .
However, the message 'You are not authorized to access the requested page' is appear when I visit that my page at the first time. It should only appear when I try to access admin page without user log-in up to two times. Can we disable this message when we firstly visit to the page?

Kind Regards,
Vanndy

Last edited by Vanndy (2011-09-29 11:15:02)

Offline

#4 2011-09-29 12:41:45

plg
Piwigo Team
Location: Paris, France, Europe
Registered: 2002-04-05
Posts: 11717
Website

Re: How to set default home page redirect to login page?

The answer is currently "no, not without extra coding" :-/


Latest blog post on Piwigo.com: Piwigo 2.5 on Piwigo.com (March 7th, 2013)

Offline

#5 2011-09-30 03:36:14

Vanndy
Translation Team
Location: Cambodia
Registered: 2011-09-29
Posts: 34

Re: How to set default home page redirect to login page?

Oh, thank you. I'll try it...

Offline

#6 2011-09-30 04:41:58

Vanndy
Translation Team
Location: Cambodia
Registered: 2011-09-29
Posts: 34

Re: How to set default home page redirect to login page?

Hi again,

I want to get fix redirect url to ( http://localhost/piwigo/identification.php ) when I first access to my page without user log in; with this url, it won't appear "You are not authorized to access the requested page" message.
But it always redirect to ( http://localhost/piwigo/identification.php?redirect=%252Fpiwigo%252F ).

Can I do this?

Thanks,
Vanndy

Offline

Board footer

Powered by FluxBB

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