LoginBox ErrorLabel custom message

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

Moderators: Lapo, Bax

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

LoginBox ErrorLabel custom message

Postby Mhollow » 23 Feb 2012, 20:05

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

Postby rjgtav » 23 Feb 2012, 20:41

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

Postby Mhollow » 24 Feb 2012, 06:35

Thanks for the help!
Problem solved.

Return to “SmartFoxBits for SFS 2X”

Who is online

Users browsing this forum: No registered users and 1 guest