LoginBox ErrorLabel custom message

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

Moderators: Bax, Lapo

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!
Mhollow
 
Posts: 10
Joined: 22 Feb 2012, 06:29
Location: Russia

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/Basic, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS
SFS Tutorials: http://sfs-tutor.blogspot.com/ - I no longer update it nor visit it. Some examples may be bugged.
If I take too long to reply, feel free to PM me
User avatar
rjgtav
 
Posts: 2811
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

Re: LoginBox ErrorLabel custom message

Postby Mhollow » 24 Feb 2012, 06:35

Thanks for the help!
Problem solved.
Mhollow
 
Posts: 10
Joined: 22 Feb 2012, 06:29
Location: Russia


Return to SmartFoxBits for SFS 2X

Who is online

Users browsing this forum: No registered users and 1 guest