• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Count username caracters



Hello; I would like to know if there is a way to count username's number of chars.

For example, user called TOTO would have 4 chars, the return would be 4.

I tried {xen:raw $user.username.count} but it's not working.

Best regards :)

Jake Bunce

XenForo moderator
Staff member
There are some string functions supported in the template syntax, but strlen() is not one of them. An addon is required for this.