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

Can I change max length of node titles?

Discussion in 'XenForo Questions and Support' started by Vilandra, Feb 12, 2011.

  1. Vilandra

    Vilandra Active Member

    Hi :) Is there a way for me to allow more than 50 characters in a forum title? Thanks :)
     
    mikoo likes this.
  2. Brogan

    Brogan XenForo Moderator Staff Member

    At the very least you'd need to change the title field in the xf_node table as it's currently set to varchar(50).
     
    Vilandra likes this.
  3. ragtek

    ragtek Guest

    And you would need too overwrite the datawriter, because there it's also limited to 50 chars
    PHP:
        protected function _getFields()
        {
            return array(
                
    'xf_node' => array(
                    
    'node_id'            => array('type' => self::TYPE_UINT'autoIncrement' => true),
                    
    'title'              => array('type' => self::TYPE_STRING'required' => true'maxLength' => 50,
     
    Vilandra likes this.
  4. mikoo

    mikoo Active Member

    Actually, I would appreciate if there was an easier way in the admin panel to change the number of chars...
     
  5. Mike

    Mike XenForo Developer Staff Member

    Question has already been answered.
     
  6. MGSteve

    MGSteve Well-Known Member

    Yeah Mike it has - problem its clunky, it requires a code change every time the forum is upgraded.

    Surely this can be moved into a config-type file, 50 is too short to us as well (thanks to the 'Sponsored by') being added to the forum name.

    The other option I guess is to find somewhere else to put the sponsored by text, but unless there is a good reason for it being 50, it would be nice to be able to change it once and then not have to edit the source every time there's an update.
     
  7. Mike

    Mike XenForo Developer Staff Member

    My comment was in relation to some bickering posts that were removed. You can suggest that separately (may already have been suggested).
     

Share This Page