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
redirect to page after login
#2
For the redirect after login thing, go to usersc/scripts/custom_login_script.php and put

Code:
Redirect::to('http://yourlinkhere');

If you just want to add links to the current dashboard, you can put them in
usersc/includes/admin_panels.php (if it doesn't exist, create it).

If you want to completely modify the admin.php file, then you probably need to make bigger changes. The main reason is that our updates, would eventually overwrite your customizations. To prevent that, copy admin.php into the usersc folder.

Change line 21 in your NEW admin.php to
Code:
<?php require_once '../users/init.php'; ?>

Now when you go to the admin panel, you will see your custom page instead of ours and you can modify it however you want without breaking things on updates. There may be a few other things that have to be tweaked with a page as complicated as that one, but that should get you close.


  Reply


Messages In This Thread
redirect to page after login - by meetmec12 - 12-14-2016, 05:57 AM
redirect to page after login - by mudmin - 12-14-2016, 12:21 PM
redirect to page after login - by meetmec12 - 12-14-2016, 04:37 PM
redirect to page after login - by mudmin - 12-14-2016, 05:46 PM
redirect to page after login - by CarlPiper - 05-16-2018, 01:41 PM
redirect to page after login - by Brandin - 05-16-2018, 07:32 PM
redirect to page after login - by CarlPiper - 05-17-2018, 06:15 AM
redirect to page after login - by Brandin - 05-17-2018, 09:38 AM
redirect to page after login - by CarlPiper - 05-18-2018, 09:28 AM
redirect to page after login - by Brandin - 05-18-2018, 05:12 PM
redirect to page after login - by CarlPiper - 05-21-2018, 07:04 AM
redirect to page after login - by CarlPiper - 05-21-2018, 12:29 PM
redirect to page after login - by Brandin - 05-21-2018, 02:04 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)