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

Limit custom title?

Discussion in 'XenForo Questions and Support' started by Wuebit, Feb 23, 2011.

  1. Wuebit

    Wuebit Well-Known Member

    Is there a custom title length limit? i can't seem to find it if there is
    Thank's
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    It's set at varchar(50) in the database, so 50 characters.
     
    Vodkaholic likes this.
  3. Wuebit

    Wuebit Well-Known Member

    I need this to be 18 character's :/
    Any tip's?
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    You would have to edit the field in the database to change it to varchar(18)

    xf_user: custom_title

    However, there are probably other changes required in the core files to accompany this so I wouldn't recommend doing that or it will throw an error.
     
  5. Wuebit

    Wuebit Well-Known Member

    Thought so thank's
     
  6. Brogan

    Brogan XenForo Moderator Staff Member

    Yes, just checked in library/XenForo/DataWriter/User.php and it's set to 50 so you would need to edit line 97:

    Code:
    => array('type' => self::TYPE_STRING, 'maxLength' => 50, 'default' => '', 'verification' => array('$this', '_verifyCustomTitle'))
     
    Dan Hawkins, Mendo and Wuebit like this.
  7. Wuebit

    Wuebit Well-Known Member

    Ahh nice find thank's ive changed both anyway^_^
     
  8. Brogan

    Brogan XenForo Moderator Staff Member

    Well sure, if you want to do it the easy way :D
     
  9. Wuebit

    Wuebit Well-Known Member

    Sod it ive done it all three way's rofl :D
    no one will ever hit 19 char's lol
     
    Mendo likes this.

Share This Page