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

Permissions pm and messages profile page

Discussion in 'XenForo Questions and Support' started by Robby, Jul 17, 2011.

  1. Robby

    Robby Well-Known Member


    On the profile page you are limited to 140 characters, can this be more?
    Are there other limitations in pb or other personal messages?
  2. ragtek

    ragtek Guest

    the profile post is really strange.
    there are 2 max values.
            protected function 
    $options parent::_getDefaultOptions();
    $options[self::OPTION_MAX_MESSAGE_LENGTH] = 420;

    and there's
    protected function _messagePreSave()
            if (
    $this->get('user_id') == $this->get('profile_user_id') && $this->isChanged('message'))
    // statuses are more limited than other postss
    $message $this->get('message');
    $maxLength 140;

    $message preg_replace('/\r?\n/'' '$message);

                if (
    utf8_strlen($message) > $maxLength)
    $this->error(new XenForo_Phrase('please_enter_message_with_no_more_than_x_characters', array('count' => $maxLength)), 'message');

    mike/kier, is there any reason why there are 2 values?

    You would need a plugin which owerrites the max values, to be able to have more chars.

    Conversations doesn't have a limit.
    It's the limit from the mysql database (don't know exactly the value)
  3. Brogan

    Brogan XenForo Moderator Staff Member

    There are 2 values because the first post on your own profile is also a status update.
  4. ragtek

    ragtek Guest

    Aahh, i see.

Share This Page