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
User Management Changes
#2
I've done further updates to my User Management.

Current structure for admin_users.php has the add form back on this page with a modal to do the addition.

I removed the the delete checkboxes as I did before, added ID in its place, took out join date and logins, and also added a verified checkmark that only shows if email verification is turned on. It has jqwerty built in so you can use the esc key to get out of the modal quickly. When you create a new user it will redirect you to the admin_user.php page for them. You can disable this be commenting line ~ 147 that calls the redirect.

Code:
admin_users.php
http://pasted.co/8058d387

The new admin_user.php page is my favorite of all. Here is a screenshot of it:
http://screencloud.net/v/38PRd

I added tons of features and movement in this page so it is easier to read, and not everything is in one view. If email verification is enabled, in the top left you will see "Email Verified" or if the user is not verified, a checkbox with the value of "Verify Email" so you can manually verify a user.

On the right we have the protected profile value. This is controlled from the
Code:
protectedprof
value determined around line 347. Basically, if you belong to the master account array, or you do not but your
Code:
protected
value in the users table is 1 AND (to both conditions) the userId you are looking at does not belong to you, the value is 1, which disables all editing to the profile. Otherwise, the
Code:
protectedprof
value is 0.

Here is what a protected profile being accessed by a user who is not within a master account looks like:
http://screencloud.net/v/AtJsA

However, if you belong to the master account array, you can set protected profiles, and instead, a checkbox (checked or unchecked) will show up based on the users protected value in the table. Check this, the profile is protected, uncheck and it is not!

On the splash page you can modify the username, email or name. However, you must click the modal to do anything with the password, system settings, permission settings, misc settings, etc. The System Settings for me is used for disabling/enabling settings, I am leaving that in there as a blank modal so you can play with it and add stuff if you want. These modals can make it easier for you to disable/hide these functions from certain personnel (based on access level) if you wish.

I incorporated my permission modifications as above to not allow a user to add/remove permissions that do not have access to. Instead of them just not showing, they show as a disabled checkbox now Smile

Code:
admin_user.php
http://pasted.co/e70ff5e5

JS:
Code:
jqwerty.js
https://pastebin.com/ngMRCMBd

All of my custom functions, you will need some of these:
https://pastebin.com/zbjXYgjt

And all of my languages key in a SQL as you will probably need them:
https://pastebin.com/meEZpGEK

I can't think of anything else you'll need with this but let me know if you run into problems!
  Reply


Messages In This Thread
User Management Changes - by Brandin - 05-27-2017, 02:55 PM
User Management Changes - by Brandin - 08-06-2017, 11:07 AM
User Management Changes - by Brandin - 08-06-2017, 11:20 AM
User Management Changes - by mudmin - 08-06-2017, 01:34 PM
User Management Changes - by Brandin - 08-06-2017, 01:35 PM
User Management Changes - by mudmin - 08-06-2017, 02:30 PM
User Management Changes - by mudmin - 08-06-2017, 02:33 PM
User Management Changes - by Brandin - 08-06-2017, 02:34 PM
User Management Changes - by Brandin - 08-06-2017, 02:34 PM
User Management Changes - by mudmin - 08-06-2017, 02:38 PM
User Management Changes - by Brandin - 08-06-2017, 03:18 PM
User Management Changes - by Brandin - 08-06-2017, 03:37 PM
User Management Changes - by mudmin - 08-10-2017, 11:35 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)