При установки мода topic_text_hover и редакции файла viewforum.php по инструкции, была сделана ошибка...
В инструкции при установки написано:
Открыть: viewforum.php
Найти
Подсказка: Возможно, здесь приведена не вся строка, а лишь ее часть.
Код: Выделить всё
if ($forum_data['forum_type'] == FORUM_POST)
Подсказка: Добавьте эти строки на новой строке перед ранее найденными строками.
Код: Выделить всё
// BEGIN Topic Text Hover Mod
if ($config['hover_active'] && !$user->data['user_text_hover'])
{
include($phpbb_root_path . 'includes/topic_text_hover.' . $phpEx);
// the first post text in a topic
if($config['hover_show'] == TOPIC_TEXT_HOVER_FIRST || $config['hover_show'] == TOPIC_TEXT_HOVER_BOTH)
{
$sql_array['LEFT_JOIN'][] = array('FROM' => array(POSTS_TABLE => 'pt'), 'ON' => 'pt.post_id = t.topic_first_post_id');
$sql_array['SELECT'] .= ', pt.post_text AS first_text_hover';
}
// the last post text in a topic
if($config['hover_show'] == TOPIC_TEXT_HOVER_LAST || $config['hover_show'] == TOPIC_TEXT_HOVER_BOTH)
{
$sql_array['LEFT_JOIN'][] = array('FROM' => array(POSTS_TABLE => 'ptl'), 'ON' => 'ptl.post_id = t.topic_last_post_id');
$sql_array['SELECT'] .= ', ptl.post_text AS last_text_hover';
}
}
// END Topic Text Hover Mod
Код: Выделить всё
if (!($forum_data['forum_type'] == FORUM_POST || (($forum_data['forum_flags'] & FORUM_FLAG_ACTIVE_TOPICS) && $forum_data['forum_type'] == FORUM_CAT)))
Код: Выделить всё
if ($forum_data['forum_type'] == FORUM_POST)
Вот и все....