Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
/**
* Gets the default set of options for this data writer.
*
* @return array
*/
protected function _getDefaultOptions()
{
$options = parent::_getDefaultOptions();
$options[self::OPTION_MAX_MESSAGE_LENGTH] = 420;
$options[self::OPTION_MAX_TAGGED_USERS] = 0;
return $options;
}
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 = 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');
}
$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);
}
'meta_title' => array('type' => self::TYPE_STRING, 'maxLength' => 70, 'default' => NULL),
'meta_desc' => array('type' => self::TYPE_STRING, 'maxLength' => 135, 'default' => NULL),
'meta_key' => array('type' => self::TYPE_STRING, 'maxLength' => 255, 'default' => NULL),
Wir verwenden essentielle Cookies, damit diese Website funktioniert, und optionale Cookies, um den Komfort bei der Nutzung zu verbessern.
Siehe weitere Informationen und konfiguriere deine Einstellungen