Login from any page and redirecting back there

https://www.phpbb.com/ideas/
User avatar
Ger
Registered User
Posts: 2108
Joined: Wed Jan 02, 2008 7:35 pm
Location: 192.168.1.100
Contact:

Re: Login from any page and redirecting back there

Post by Ger »

jmperu wrote: Tue Feb 20, 2018 3:20 pm I currently use the linked to Mod by t_backoff and it works great.

where is this Mod
It's for 3.0 which isn't supported anymore since almost 2 years
My extensions:
Simple CMS, Feed post bot, Avatar Resize, Modbreak, Magic OGP, Live topic update, Modern Quote, Quoted Where (GDPR) and Autoresponder.
Newest: FAQ manager for 3.2

Like my work? Buy me a coffee to keep it coming. :ugeek:

-Don't PM me for support-
User avatar
3Di
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco
Contact:

Re: Login from any page and redirecting back there

Post by 3Di »

Ger wrote: Tue Feb 20, 2018 1:02 pm
3Di wrote: Mon Jan 08, 2018 2:32 am The present idea should be finalized for 3.3.0-a1 (it's WIP)

https://tracker.phpbb.com/browse/PHPBB3-15413
Maybe I can propose a fix if I understand Github correctly :P
May I help you? :P :)
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Buy me a coffee -> Image
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
User avatar
Ger
Registered User
Posts: 2108
Joined: Wed Jan 02, 2008 7:35 pm
Location: 192.168.1.100
Contact:

Re: Login from any page and redirecting back there

Post by Ger »

Of course. I've created a PR but naturally Travis doesn't like netbeans nor Gitkraken.

https://github.com/phpbb/phpbb/pull/5142

Again, Marc says it's ok through IRC, but Travis finds an unexpected EOL.
My extensions:
Simple CMS, Feed post bot, Avatar Resize, Modbreak, Magic OGP, Live topic update, Modern Quote, Quoted Where (GDPR) and Autoresponder.
Newest: FAQ manager for 3.2

Like my work? Buy me a coffee to keep it coming. :ugeek:

-Don't PM me for support-
User avatar
rubencm
Development Team Member
Development Team Member
Posts: 104
Joined: Fri Oct 05, 2007 2:24 pm
Location: Spain

Re: Login from any page and redirecting back there

Post by rubencm »

jmperu
Registered User
Posts: 7
Joined: Sat Sep 09, 2017 6:58 pm

Re: Login from any page and redirecting back there

Post by jmperu »

Hello,
actually modify it
$ u_login_logout = append_sid ("{$ phpbb_root_path} ucp. $ phpEx", "mode = login");
$ redirect = $ request-> variable ('redirect', rawurlencode ($ user-> page ['page']));
$ u_login_logout = append_sid ("{$ phpbb_root_path} ucp. $ phpEx", 'mode = login & redirect ='. $ redirect);
$ l_login_logout = $ user-> lang ['LOGIN'];

works properly we stay on the page where we were when connecting

thank you

cordially
Post Reply

Return to “phpBB Ideas”