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
Status Update 004
#10
While coding this I also noticed we should add successes and errors to the admin form. No need for validation in my opinion, but we should be displaying success codes on this page.

Also, there is an issue with the Redirect:: call on after_logout or whatever. It does the redirect, but it quickly flashes an error and then obviously I can't see it because it redirects you. I couldn't figure out what it was or replicate it without the redirect occurring...It only shows up when the redirect happens on logout.

This script repurposes force_pr in settings to be the force_pr definition when creating a new user from admin_users.php.

I'm not posting the whole files (yet) because you have some changes above to make Smile
-Add errors and successes to admin.php, you need the PHP and the HTML portion
On admin.php:
-Replace the force_pr PHP in POST to this:
http://pasted.co/9e8ea755
-Replace the force_pr HTML to this:
http://pasted.co/6cd0c8b4

On admin_user.php:
Replace the block user PHP with this:
http://pasted.co/ec0382a4
Add this HTML under the block user:
http://pasted.co/04264c09

At the bottom of the PHP on header.php (under the track_guest) add:
http://pasted.co/cdf7ad3b

And add this to your add user fields whenever you have this (if you use my new user management stuff, or on the old page)
Code:
'force_pr' => $settings->force_pr,

I put it under the vericode.

SQL:
http://pasted.co/fb982bda

Let me know if you have any issues!

...update....5 hours later because I knew I'd forget something. You need to reset force_pr when you change the password! Duh! lol

Replace the update on line 195 of
Code:
user_settings.php
to:
Code:
$user->update(array('password' => $new_password_hash,'force_pr' => 0,),$user->data()->id);

And add this to the fields array on
Code:
forgot_password_reset.php
:
Code:
'force_pr' => 0,
  Reply


Messages In This Thread
Status Update 004 - by mudmin - 08-14-2017, 05:29 PM
Status Update 004 - by Brandin - 08-14-2017, 05:51 PM
Status Update 004 - by Brandin - 08-14-2017, 08:58 PM
Status Update 004 - by Brandin - 08-20-2017, 03:34 PM
Status Update 004 - by mudmin - 08-21-2017, 12:13 PM
Status Update 004 - by Brandin - 08-21-2017, 12:35 PM
Status Update 004 - by mudmin - 08-21-2017, 12:44 PM
Status Update 004 - by karsen - 08-21-2017, 09:45 PM
Status Update 004 - by mudmin - 08-22-2017, 11:10 AM
Status Update 004 - by Brandin - 08-22-2017, 04:44 PM
Status Update 004 - by Brandin - 08-22-2017, 09:34 PM
Status Update 004 - by Brandin - 08-23-2017, 05:42 PM
Status Update 004 - by karsen - 08-23-2017, 07:15 PM
Status Update 004 - by Brandin - 08-23-2017, 07:30 PM
Status Update 004 - by mudmin - 08-25-2017, 12:30 PM
Status Update 004 - by mudmin - 08-25-2017, 12:32 PM
Status Update 004 - by Brandin - 08-25-2017, 12:38 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)