-
- 384 Posts
Is there a Revo snippet that will check if a user is logged in to a page and if they are not, redirect them to a Login page? I'll explain below.
I have a left hand navigation as follows
Partner Area
- Login
- Partner Gold
- Partner Silver
- Partner Bronze
The Login page allows each Partner type (3 different User groups) to login and they can then click on their Partner Type on the left hand navigation to access their area.
I have that much working beautifully (Thanks Bob Ray and his book!).
My issue is that I'm assuming Partners won't just try to click into their Partner page before they login. Currently if they try to do this, they get redirected to a 404 page.
Thanks
...
Create an "unauthorized" page and set the system setting to that page. When they try to access a page they aren't logged in for, they'll get sent to that "unauthorized" page.
-
- 384 Posts
Thanks- that would work but I am likely to eventually have several 'members only' sections and need something more fine tuned.
...
-
- 111 Posts
I think she meant to set 'unauthorized page' system setting to your login page ID.
---
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. Martin Golding