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

Count username caracters

Discussion in 'XenForo Development Discussions' started by account8226, Aug 26, 2012.

  1. account8226

    account8226 Guest

    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 :)
     
  2. Jake Bunce

    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.
     
    Elly likes this.

Share This Page