Login from any page and redirecting back there

https://www.phpbb.com/ideas/
User avatar
Ger
Recognised Extension Developer
Posts: 1768
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 » Tue Feb 20, 2018 3:52 pm

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:
-Available for custom work-

User avatar
3Di
Registered User
Posts: 12975
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: Login from any page and redirecting back there

Post by 3Di » Tue Feb 20, 2018 5:22 pm

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 :)
Want to compensate me for my interest? Donate
Please PM me only to request paid works. Thx.
Extensions, Scripts, MOD porting, Update/Upgrades
My development's activity º PhpStorm's proud user

User avatar
Ger
Recognised Extension Developer
Posts: 1768
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 » Tue Feb 20, 2018 9:24 pm

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:
-Available for custom work-

User avatar
rubencm
Development Team Member
Development Team Member
Posts: 62
Joined: Fri Oct 05, 2007 2:24 pm
Location: Spain

Re: Login from any page and redirecting back there

Post by rubencm » Sun Sep 16, 2018 10:35 am


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 » Mon Sep 17, 2018 3:05 pm

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”

Who is online

Users browsing this forum: No registered users and 20 guests