The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.14 (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
After Registration/Signin auto redirect url question
#2
Register - In version 4.3 and up, there is a file called
usersc/includes/scripts/during_user_creation.php

It's at the perfect spot for what you need.
Put this code at the bottom (editing your redirection page).
Code:
$user = new User();
Code:
$login = $user->loginEmail(Input::get('username'), trim(Input::get('password')), 'off');
Code:
if ($login) { Redirect::to('mypage.php');}

For facebook, you put your redirect after login on the admin dashboard under social logins.
For the others, you put it in usersc/includes/scripts/custom_login_script.php

I think that about covers it. Let me know if you have any issues.
  Reply


Messages In This Thread
After Registration/Signin auto redirect url question - by mudmin - 11-23-2017, 01:49 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)