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
/printthread.php 16 require_once



UserSpice
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
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.



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.