The following warnings occurred: | ||||||||||||
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
|
name_from_id - Printable Version +- UserSpice (https://userspice.com/forums) +-- Forum: Support Center (https://userspice.com/forums/forumdisplay.php?fid=23) +--- Forum: UserSpice 4.3 and Below (https://userspice.com/forums/forumdisplay.php?fid=26) +--- Thread: name_from_id (/showthread.php?tid=532) |
name_from_id - Brandin - 04-18-2017 Hello, The Code: name_from_id Thank you. name_from_id - mudmin - 04-18-2017 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. name_from_id - Brandin - 04-19-2017 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! name_from_id - mudmin - 04-20-2017 echouser puts a - if fort some reason it doesn't find that user. |