Hey,
can you add a getUserByName method parameter to ignore upper/lower case of the name? Would be very helpful.
Thanks!
Serverside getUserByName ignoring case
-
- Posts: 77
- Joined: 28 Dec 2007, 20:56
I'm looking for something like this too.
I created a custom private message, where the user can type in
\pm [name] message
the [name] parameter is sent to the server, then I check if that user is online by zone.getUserByName(name).
players may type in a name incorrectly, i.e. JacK instead of Jack.
So, if Jack was actually online. The user sent a message to JacK, he will receive a response saying "sorry, user doesn't exist or is offline".
I created a custom private message, where the user can type in
\pm [name] message
the [name] parameter is sent to the server, then I check if that user is online by zone.getUserByName(name).
players may type in a name incorrectly, i.e. JacK instead of Jack.
So, if Jack was actually online. The user sent a message to JacK, he will receive a response saying "sorry, user doesn't exist or is offline".
Smartfox's forum is my daily newspaper.
The problem with this is hard to explain:
Eg. User say Lapo logs on
Someone wants the name of Lapo, but it is taken, so they use lapo or LAPO.
You could build a login extension which changes the username to lowercase, and Bigfish, you could add to your extension, making all usernames lower case.
You could do this using aString = aString.toLowerCase()
Eg. User say Lapo logs on
Someone wants the name of Lapo, but it is taken, so they use lapo or LAPO.
You could build a login extension which changes the username to lowercase, and Bigfish, you could add to your extension, making all usernames lower case.
You could do this using aString = aString.toLowerCase()
Return to “Features Wish List”
Who is online
Users browsing this forum: No registered users and 29 guests