The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.18 (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
4.3.9 - How to modify admin_user.php
#1
Hello all!

The customer wants to add a phone number to the registration page. That is done, now I need to modify admin_user.php to allow editing of the phone number. However, when I copy admin_user.php to the usersc folder I break the whole user management page, admin_users.php.

How can I add a phone number to admin_user.php???

Thanks for your time,

- Mike
  Reply
#2
There is a script in usersc/includes called example_admin_user_system_settings.php - copy and remove example so it is called admin_user_system_settings.php and add your stuff in there.
  Reply
#3
Except phone number is not a system setting. It should show up below the email, for example.

-Mike
  Reply
#4
The text is poor-yes-but the concept is the same. If you want it on the admin_user splash screen, you'll need to copy and edit the file directly.
  Reply
#5
Did it! It was not too bad. The weird thing is that on my dev server using 4.3.9 I can move this file into the usersc folder, but on our test and production servers that have 4.3.8 I cannot.

-Mike
  Reply
#6
Hmmm-that is weird. What do you mean you "can't move"? Like a server issue or error messages?
  Reply
#7
I mean copy and paste admin_user.php from users folder to the usersc folder. I do not get error messages, the functionality breaks, but only on our test and production servers.

- Mike
  Reply
#8
What do you mean it "breaks"? Are you getting error messages? Are particular things not working? Enable error reporting if you are not getting errors.
http://php.net/manual/en/function.error-reporting.php
  Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)