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 » Sun 10. Apr 2011, 16:26

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 » Sun 10. Apr 2011, 19:16

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 » Tue 29. Nov 2011, 08:54

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 » Tue 29. Nov 2011, 10:09

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 » Tue 29. Nov 2011, 11:46

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 » Tue 29. Nov 2011, 12:12

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 » Tue 29. Nov 2011, 13:13

niiiiiiiiiice. thank you :P

der hausmeister

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

Re: FE Login Problems

Post by achilehero » Tue 29. Nov 2011, 13:25

You' re welcome! :)

hausmeister
Posts: 219
Joined: Thu 18. Dec 2008, 12:45

Re: FE Login Problems

Post by hausmeister » Thu 1. Dec 2011, 20:56

works perfect. thank you :D

der hausmeister

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

Re: FE Login Problems

Post by achilehero » Thu 1. Dec 2011, 21:19

I'm glad it's fine!

Post Reply