FE Login Problems

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Re: FE Login Problems

Post by flip-flop »

Example:

Code: Select all

+ home  [ID:0]
+ ...

++ Truck dealers [ID:24]  -> parent category (Loginbase)

+++ Login MAN [e.g. ID:100]  -> {FELOGIN} (Login)
 
++++ MAN [ID:25]
++++ ....

+++ Login Volvo [e.g. ID:101] -> {FELOGIN} (Login)

++++ Volvo [ID:26]
++++ ....

Code: Select all

; -----------------------------------------
; Put in the level depth, root level = 0
; FELOGIN_LEVEL_DEPTH        = 1
FELOGIN_LEVEL_DEPTH	         = 1

; This is the ID of parent's level, root would be 0
; FELOGIN_LEVEL_ID           = 24
FELOGIN_LEVEL_ID             = 24
; -----------------------------------------
Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
achilehero
Posts: 69
Joined: Sun 4. Jan 2009, 13:30

Re: FE Login Problems

Post by achilehero »

Thanks, Knut!

I got it working. I don't know why, but, for some reason, the first time I did setup that, when I tried accessing the levels below the first one under {FELOGIN}, (i.e.: 2nd level under {FELOGIN}) it kept logging me out. Now it's working just fine, but I didn't make chenges to the structure. It may have been something I was missing, but ... anyway, ... it's OK now it's working. Thanks again!
hausmeister
Posts: 219
Joined: Thu 18. Dec 2008, 12:45

Re: FE Login Problems

Post by hausmeister »

hi,

is it possible to auto-redirect the user after successfull login to a defined page?

der hausmeister
achilehero
Posts: 69
Joined: Sun 4. Jan 2009, 13:30

Re: FE Login Problems

Post by achilehero »

Yes. I did that.

In the felogin.logout.html just add a javascript redirect (like the one below) at the end of the code.

Code: Select all

<script type="text/javascript">
	window.location = "....";
</script>
hausmeister
Posts: 219
Joined: Thu 18. Dec 2008, 12:45

Re: FE Login Problems

Post by hausmeister »

the problem is, that i have different fe-login-areas with different startpages ;(

der hausmeister
achilehero
Posts: 69
Joined: Sun 4. Jan 2009, 13:30

Re: FE Login Problems

Post by achilehero »

I solved that by making the aliases like this:

You can make the main logins like: index.php?section1, index.php?section2, index.php?section3, etc

And after that, the redirects add a suffix, like: index.php?section1-page, index.php?section2-page, etc

The javascript redirect would be:

Code: Select all

<script type="text/javascript">
	window.location = window.location += "-page";
</script>
hausmeister
Posts: 219
Joined: Thu 18. Dec 2008, 12:45

Re: FE Login Problems

Post by hausmeister »

niiiiiiiiiice. thank you :P

der hausmeister
achilehero
Posts: 69
Joined: Sun 4. Jan 2009, 13:30

Re: FE Login Problems

Post by achilehero »

You' re welcome! :)
hausmeister
Posts: 219
Joined: Thu 18. Dec 2008, 12:45

Re: FE Login Problems

Post by hausmeister »

works perfect. thank you :D

der hausmeister
achilehero
Posts: 69
Joined: Sun 4. Jan 2009, 13:30

Re: FE Login Problems

Post by achilehero »

I'm glad it's fine!
Post Reply