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

Limit usertitle characters

Discussion in 'Styling and Customization Questions' started by Jack Burton III, Feb 10, 2012.

  1. How can I limit usertitle to X max characters?
     
  2. Fuhrmann

    Fuhrmann Well-Known Member

    Are you talking about this?

    1.PNG

    If yes, I almost sure that there is no option to limit. The limit of max characters is 50 as stated in the MYSQL file:

    Code:
    custom_title VARCHAR(50) NOT NULL DEFAULT '',
     
    adaaamb and Jack Burton III like this.
  3. That's what I mean, thank you anyway.
     
  4. Fuhrmann

    Fuhrmann Well-Known Member

    You can adjust the limit yes, by editing the file library/XenForo/DataWriter/User.php:

    PHP:
    'custom_title'  => array('type' => self::TYPE_STRING'maxLength' => NEW_LIMIT'default' => '''verification' => array('$this''_verifyCustomTitle')),
    Change NEW_LIMIT to the number of character to limit.
     
    adaaamb and Jack Burton III like this.

Share This Page