The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Go to referring Page after login
#10
Here's for 4.1.5:

Changes to login.php:
http://pastebin.com/sEz1rzzw

I have shamelessly left in my plug for a login.php?err=My+Error+Message in the URL to allow users to be redirected back to login with a reported error. That is obviously unrelated to this problem/solution and can be left out (if you have to - grin).

Changes to us_helpers.php:
http://pastebin.com/wpdcHDSL

Note that I have my Redirect::to() function allowing an argument for the $_GET side of things. In vanilla US you would need to change

Code:
Redirect::to($us_url_root.'users/login.php', '?afterLoginGoto='.$_SERVER['PHP_SELF']);
to
Code:
Redirect::to($us_url_root.'users/login.php?afterLoginGoto='.$_SERVER['PHP_SELF']);

on line 395

For more details on the change to Redirect.php, you can see the code I posted earlier here:
http://pastebin.com/yvSx71U1
This change is *not* necessary in order to implement the changes above - you just have to modify the code as I have delineated. I'm just posting this extra reference to Redirect.php as a reminder of what change I was talking about.
  Reply


Messages In This Thread
Go to referring Page after login - by dreniam - 09-12-2016, 10:26 PM
Go to referring Page after login - by dreniam - 09-12-2016, 11:13 PM
Go to referring Page after login - by mudmin - 09-12-2016, 11:49 PM
Go to referring Page after login - by brian - 09-12-2016, 11:52 PM
Go to referring Page after login - by brian - 09-13-2016, 12:03 AM
Go to referring Page after login - by dreniam - 09-13-2016, 01:59 AM
Go to referring Page after login - by brian - 09-13-2016, 11:34 AM
Go to referring Page after login - by brian - 09-14-2016, 11:28 AM
Go to referring Page after login - by brian - 09-14-2016, 01:55 PM
Go to referring Page after login - by plb - 09-19-2016, 06:28 PM
Go to referring Page after login - by mudmin - 10-16-2016, 12:55 PM
Go to referring Page after login - by mudmin - 10-16-2016, 01:21 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)