LoginBox ErrorLabel custom message

Everything about the SmartFoxBits UI Components for SmartFoxServer 2X. Post your questions, suggestions and bug reports.

Moderators: Lapo, Bax

Post Reply
Mhollow
Posts: 24
Joined: 22 Feb 2012, 06:29
Location: Russia

LoginBox ErrorLabel custom message

Post by Mhollow »

Hi!
Please tell me if it possible to customize the text displayed in errorLable LoginBox?
if login failed (i.e for LOGIN_BAD_USERNAME reason from sfs2x extension) errorLable displaying a text message "User name <user> is not recognized"
But how can I change this text ?
I need the error message to be displayed in proper locale or be invisible at all..
Thanks!
User avatar
rjgtav
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

Re: LoginBox ErrorLabel custom message

Post by rjgtav »

Hi. You can customize the error messages on the SFS2X API itself.
Please check this chapter of the docs for a tutorial about how to achieve it.
Skills: SFS Pro, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS, C#
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
Mhollow
Posts: 24
Joined: 22 Feb 2012, 06:29
Location: Russia

Re: LoginBox ErrorLabel custom message

Post by Mhollow »

Thanks for the help!
Problem solved.
Post Reply