login and back
Posted by pat
|
login and back January 20, 2007 12:52PM |
Registered: 21 years ago Posts: 683 |
Hi,
I know this came up before but I havn't seen a solution yet (please point me to it if I overlooked).
I want to hijack phorum-usermanagement for the Rest of the site:
-I have a script now that determines if a user is logged in and what group they are in.
-logged-out people should be redirected to phorum-login and than back to where they came from on the site(outside phorum that is).
I still have problems with the bounce-back after login - how can that be done ?
thanx
pat
I know this came up before but I havn't seen a solution yet (please point me to it if I overlooked).
I want to hijack phorum-usermanagement for the Rest of the site:
-I have a script now that determines if a user is logged in and what group they are in.
-logged-out people should be redirected to phorum-login and than back to where they came from on the site(outside phorum that is).
I still have problems with the bounce-back after login - how can that be done ?
thanx
pat
|
January 20, 2007 11:45PM |
Admin Registered: 24 years ago Posts: 4,495 |
Phorum only sends people back to the referrer if the referrer is a Phorum page. However, you can use the after_login hook to write a module to do whatever you want. Of course, you will need to somehow keep up with where they were. You could use the after_header hook and a check for phorum_page=="login" to reset $PHORUM["DATA"]["LOGIN"]["redir"] to $_SERVER["HTTP_REFERER"].
Brian - Cowboy Ninja Coder - Personal Blog - Twitter
Sorry, only registered users may post in this forum.