[SOLVED] redirection page when not logged in

If you've problems with unsupported - non official ;-) - functionalities use this forum please.
User avatar
heliotrope
Posts: 33
Joined: Fri 14. Sep 2007, 15:21

[SOLVED] redirection page when not logged in

Postby heliotrope » Tue 27. Nov 2007, 09:35

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
Last edited by heliotrope on Fri 30. Nov 2007, 08:34, edited 2 times in total.

User avatar
heliotrope
Posts: 33
Joined: Fri 14. Sep 2007, 15:21

Postby heliotrope » Wed 28. Nov 2007, 16:00

No solution to this problem ????
really ?

User avatar
update
Moderator
Posts: 6311
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Postby update » Wed 28. Nov 2007, 16:14

You mean you can find protected (visible for users logged in only) entries while using the search function? :shock:

User avatar
heliotrope
Posts: 33
Joined: Fri 14. Sep 2007, 15:21

Postby heliotrope » Wed 28. Nov 2007, 16:59

claus wrote:You mean you can find protected (visible for users logged in only) entries while using the search function? :shock:


Hmmm... yess it seems very strange ..
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 ...

rescamilla
Posts: 69
Joined: Sun 25. Jul 2004, 01:53

Postby rescamilla » Fri 30. Nov 2007, 04:42

I need a solution for this also.

I am using a hard coded navigation tree. When a user clicks on a menu item for logged in users only, they are directed back to the index page. I need to be able to direct them to a "you must log in first" page.

-Ray

rescamilla
Posts: 69
Joined: Sun 25. Jul 2004, 01:53

Postby rescamilla » Fri 30. Nov 2007, 04:59

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

User avatar
heliotrope
Posts: 33
Joined: Fri 14. Sep 2007, 15:21

Postby heliotrope » Fri 30. Nov 2007, 08:33

Hi Rescamilla...
IT WORKS !!!!

The solution was just here, in front of me, in the admin ....
Thanks a lot to have opened my eyes .... !!
:wink:


Return to “hacks & enhancements Support”

Who is online

Users browsing this forum: No registered users and 1 guest