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
Offline
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
The answer is currently "no, not without extra coding" :-/
Offline
Oh, thank you. I'll try it...
Offline
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
your cms iw wordpress? if wp have more pluging and 2line code for solve this..
Offline
Hi,
Long time since the original post, but I was looking for an answer to this question, and since this topic is still one of the first I found googling, here is what I finally did to get it working :
1. Install the plugins "PWG Stuffs" and "Advanced Menu Manager"
2. In the PWG Stuffs plugin configuration :
- Add a new block -> select "Identification" block
- Block management -> drag the Identification block to the top ; check "Mask on home page" for Main block
- click on the Edit button of the Identification block -> select only "show on home page" and check "remove from menubar"
3. In the Advanced Menu Manager plugin configuration :
- remove the guest account access from all menus except "Identification"
You should now have a blank page as your home page for unlogged users, with only identification available. Once the user is logged in, the menus and regular access should be available.
Offline
Hi,
I tried as it was described, but i couldnt find the block
"Add a new block -> select "Identification" block"
do we have any alternative method?
Thanks in Advance
Offline