rxu
Вопрос состоит в следующем... ссылка, ведущая на профиль пользователя выглядит так:
http://www.домен.ru/memberlist.php?mode=viewprofile&u=2
вместо:
http://www.домен.ru
/FORUM/memberlist.php?mode=viewprofile&u=2
Путь на сообщение правильный... неверен только путь к профилю.
Где-то здесь надо полагать ошибка?
Код: Выделить всё
$template->assign_block_vars('topicrow', array(
'NEWEST_POST_IMG' => $user->img('icon_topic_newest', 'VIEW_NEWEST_POST'),
'LAST_POST_IMG' => $user->img('icon_topic_latest', 'VIEW_LATEST_POST'),
'U_NEWEST_POST' => $view_topic_url . '?f=' . $row['forum_id'] . '&t=' . $row['topic_id'] . '&view=unread#unread',
'U_TOPIC' => $viewtopic_url . '?f=' . $row['forum_id'] . '&t=' . $row['topic_id'] . '&view=unread#unread',
'U_TOPIC_AUTHOR' => get_username_string('profile', iconv("UTF-8", "cp1251", $row['topic_poster']), iconv("UTF-8", "cp1251", $row['topic_first_poster_name']), $row['topic_first_poster_colour']),
'LAST_POST_AUTHOR_COLOUR' => get_username_string('colour', $row['topic_last_poster_id'], $row['topic_last_poster_name'], $row['topic_last_poster_colour']),
'LAST_POST_AUTHOR_FULL' => get_username_string('full', $row['topic_last_poster_id'], addslashes($row['topic_last_poster_name']), $row['topic_last_poster_colour']),
'TOPIC_TITLE' => iconv("UTF-8", "cp1251", $topic_title), $color_empty_topic_beg . $topic_title . $color_empty_topic_end,
'LAST_POST_TIME' => $user->format_date($row['topic_last_post_time'],"H:i"),
'TOPIC_REPLIES' => ($cfg_show_replies) ? 'ответов: <font color="#978453"> ' . $replies . '</font>' : '',
'S_HAS_ATTACHMENTS' => ($cfg_show_first_post && $cfg_show_attachments && !empty($attachments[$row['post_id']])) ? true : false,
'POSTER_LAST_POST' => get_username_string('full', iconv("UTF-8", "cp1251", $row['topic_last_poster_id']), addslashes(iconv("UTF-8", "cp1251", $row['topic_last_poster_name'])), $row['topic_last_poster_colour']),
// 'POSTER_LAST_POST' => '<font color="#' . $row['topic_last_poster_colour'] . '">' . $last_post_poster . '</font>',
));