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
name_from_id
#1
Hello,

The
Code:
name_from_id
function is putting a capital letter for the first character, however the first letter in my username is not capital. How can I reverse this in the function or have it not do this in the first place? I am okay with making a custom function I just can't figure out why it is doing this in the first place.

Thank you.
  Reply
#2
Name from ID is rarely used. You could always just edit helpers.php. It probably has ucfirst(something) in there. There is a similar function in us_helpers called echouser that does the same thing. You have more control over that one in the admin panel.
  Reply
#3
I was only using name from ID as that was what you were using on the admin.php page for recently active to display "Deleted" or "-" or whatever when a user does not exist. Does echouser perform the function? Will it echo "Deleted" or something else other than an error when it can't find it.

Thanks!
  Reply
#4
echouser puts a - if fort some reason it doesn't find that user.
  Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)