Hello .
I'm using phpwcms (v.1.3.3.) for my website..
Some categories of the site are only visible to logged in visitors .
I've installed the search tool on everypage.
When a non-logged visitor makes a search and finds what he was looking for in the protected area, he clicks and goes directly to the index...
my problem:
I'd like that non-logged-in visitor reaches a specific page that would tell "you have to be logged-in to access this area . Ask for your password...blah blah "
Has someone a solution for this problem ?
Did someone coded a small hack ?
I didn't find anything about this ....
Thanks a lot in advance
[SOLVED] redirection page when not logged in
- heliotrope
- Posts: 33
- Joined: Fri 14. Sep 2007, 15:21
[SOLVED] redirection page when not logged in
Last edited by heliotrope on Fri 30. Nov 2007, 08:34, edited 2 times in total.
- heliotrope
- Posts: 33
- Joined: Fri 14. Sep 2007, 15:21
Hmmm... yess it seems very strange ..claus wrote:You mean you can find protected (visible for users logged in only) entries while using the search function?
In fact I'm creating an image bank ...
The "words" (gallery description) can be searched by non registered visitors.
But when they click on one of their results, they can't access the images and are automatcally redirected to Index of website ...
I'd just like them to get a page that tells they have to ask for their access codes ...
-
- Posts: 69
- Joined: Sun 25. Jul 2004, 01:53
-
- Posts: 69
- Joined: Sun 25. Jul 2004, 01:53
SOLVED! Actually the solution was already built in.
You need to add a url to the "FE login url:" section of your templates. BACKEND>ADMIN>TEMPLATES
That way, if somebody clicks a logged in only link and they are not logged in, they can be redirected to a page that has a login form. You need to create that page of course.
Oliver has thought of it already!
-Ray
You need to add a url to the "FE login url:" section of your templates. BACKEND>ADMIN>TEMPLATES
That way, if somebody clicks a logged in only link and they are not logged in, they can be redirected to a page that has a login form. You need to create that page of course.
Oliver has thought of it already!
-Ray
- heliotrope
- Posts: 33
- Joined: Fri 14. Sep 2007, 15:21