XF 1.5 Change number on profile Status

tatin1998

Member
hi guys.

I want to change this number:

1515948632641.webp


How I can change??
I put in library/XenForo/DataWriter/DiscussionMessage/ProfilePost.php
this:

Code:
    protected function _messagePreSave()
    {
        if ($this->get('user_id') == $this->get('profile_user_id') && $this->isChanged('message'))
        {
            // statuses are more limited than other posts
            $message = $this->get('message');
            $maxLength = 2500;

            $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');
            }

            $this->set('message', $message);
        }

        // do this auto linking after length counting
        /** @var $taggingModel XenForo_Model_UserTagging */
        $taggingModel = $this->getModelFromCache('XenForo_Model_UserTagging');

        $this->_taggedUsers = $taggingModel->getTaggedUsersInMessage(
            $this->get('message'), $newMessage, 'text'
        );
        $this->set('message', $newMessage);
    }

2500 words can writte but this number "140" don't change.
 
Back
Top Bottom