Re: [3.1][3.2] Board3 Portal 2.1.0
Добавлено: 31.05.2018 18:27
Логично, первым из существующих файлов назван
index.php
, так что он и применитсяскачать русский перевод, моды, скины и стили для phpBB, phpBB3
https://www.phpbbguru.net/community/
index.php
, так что он и применитсяОчень интересно как у вас везде отображается?Он отображается на всех страницах кроме Board3 Portal
board3\portal\styles\prosilver\template\portal\modules\clock_side.html
и оттуда по ссылкам (js, swf) + css по классамКод: Выделить всё
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/s9e/text-formatter/src/Renderer.php on line 19: DOMDocument::loadXML(): Premature end of data in tag s line 1 in Entity, line: 1
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/s9e/text-formatter/src/Renderer.php on line 19: DOMDocument::loadXML(): Premature end of data in tag SIZE line 1 in Entity, line: 1
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/s9e/text-formatter/src/Renderer.php on line 19: DOMDocument::loadXML(): Premature end of data in tag B line 1 in Entity, line: 1
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/s9e/text-formatter/src/Renderer.php on line 19: DOMDocument::loadXML(): Premature end of data in tag r line 1 in Entity, line: 1
TOXIC писал(а): ↑09.05.2018 14:26Последняя версия портала 2.1 и она подходит для PHPBB 3.2.2, но, это так и не пофиксили, выше было написано уже: "В работе портала есть ошибка, причем критичная, при включении функции: Компактный стиль блока последних новостей на значение нет, портал открывается с ошибкой на белой странице":"Когда выключаешь, т.е. ставишь значение на да, то все работает нормально..."Код: Выделить всё
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/s9e/text-formatter/src/Renderer.php on line 19: DOMDocument::loadXML(): Premature end of data in tag LINK_TEXT line 1 in Entity, line: 1 [phpBB Debug] PHP Warning: in file [ROOT]/vendor/s9e/text-formatter/src/Renderer.php on line 19: DOMDocument::loadXML(): Premature end of data in tag URL line 1 in Entity, line: 1 [phpBB Debug] PHP Warning: in file [ROOT]/vendor/s9e/text-formatter/src/Renderer.php on line 19: DOMDocument::loadXML(): Premature end of data in tag IMG line 1 in Entity, line: 1 [phpBB Debug] PHP Warning: in file [ROOT]/vendor/s9e/text-formatter/src/Renderer.php on line 19: DOMDocument::loadXML(): Premature end of data in tag CENTER line 1 in Entity, line: 1 [phpBB Debug] PHP Warning: in file [ROOT]/vendor/s9e/text-formatter/src/Renderer.php on line 19: DOMDocument::loadXML(): Premature end of data in tag r line 1 in Entity, line: 1
Admirals писал(а): ↑14.10.2018 13:50 Я не очень понял как избавиться от ошибки Версия 3.2.3 Портал 2.1.0Код: Выделить всё
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/s9e/text-formatter/src/Renderer.php on line 19: DOMDocument::loadXML(): Premature end of data in tag s line 1 in Entity, line: 1 [phpBB Debug] PHP Warning: in file [ROOT]/vendor/s9e/text-formatter/src/Renderer.php on line 19: DOMDocument::loadXML(): Premature end of data in tag SIZE line 1 in Entity, line: 1 [phpBB Debug] PHP Warning: in file [ROOT]/vendor/s9e/text-formatter/src/Renderer.php on line 19: DOMDocument::loadXML(): Premature end of data in tag B line 1 in Entity, line: 1 [phpBB Debug] PHP Warning: in file [ROOT]/vendor/s9e/text-formatter/src/Renderer.php on line 19: DOMDocument::loadXML(): Premature end of data in tag r line 1 in Entity, line: 1
Код: Выделить всё
/**
* Format message for display
*
* @param array $row Database row
* @param int $text_length Length of text
* @param bool $posts_striped Whether post is striped
*
* @return mixed|string
*/
protected function format_message($row, $text_length, &$posts_striped)
{
if ($text_length > 0 && (strlen($row['post_text']) > $text_length))
{
$message = str_replace(array("\n", "\r"), array('<br />', "\n"), $row['post_text']);
$message = $this->shorten_message($message, $row['bbcode_uid'], $text_length);
$posts_striped = true;
}
else
{
$message = str_replace("\n", '<br/> ', $row['post_text']);
}
return $message;
}
/**
* Shorten message to specified length
*
* @param string $message Post text
* @param string $bbcode_uid BBCode UID
* @param int $length Length the text should have after shortening
*
* @return string Shortened messsage
*/
public function shorten_message($message, $bbcode_uid, $length)
{
if (class_exists('\Nickvergessen\TrimMessage\TrimMessage'))
{
$trim = new \Nickvergessen\TrimMessage\TrimMessage($message, $bbcode_uid, $length);
$message = $trim->message();
unset($trim);
}
return $message;
}
}