Вы мне льстите, я английский только учу.
Лучше вес пусть передаётся на первую страницу темы, а уж с первой страницы передастся на остальные. А то он будет передаваться то на первую, то на пятую, то потом на 25-ю, когда их станет много.
Вот вроде решение:
В /administrator/components/com_kunena/libraries/view.php
Функцию
public function getTopicLink(KunenaForumTopic $topic, $action = null, $content = null, $title = null, $class = null, KunenaForumCategory $category = NULL) {
$uri = $topic->getUri($category ? $category : (isset($this->category)? $this->category : $topic->category_id), $action);
if (!$content) $content = KunenaHtmlParser::parseText($topic->subject);
if ($title === null) {
if ($action instanceof KunenaForumMessage) {
$title = JText::sprintf('COM_KUNENA_TOPIC_MESSAGE_LINK_TITLE', $this->escape($topic->subject));
} else {
switch ($action) {
case 'first':
$title = JText::sprintf('COM_KUNENA_TOPIC_FIRST_LINK_TITLE', $this->escape($topic->subject));
break;
case 'last':
$title = JText::sprintf('COM_KUNENA_TOPIC_LAST_LINK_TITLE', $this->escape($topic->subject));
break;
case 'unread':
$title = JText::sprintf('COM_KUNENA_TOPIC_UNREAD_LINK_TITLE', $this->escape($topic->subject));
break;
default:
$title = JText::sprintf('COM_KUNENA_TOPIC_LINK_TITLE', $this->escape($topic->subject));
}
}
}
return JHTML::_('kunenaforum.link', $uri, $content, $title, $class, 'nofollow');
}
Заменить на
public function getTopicLink(KunenaForumTopic $topic, $action = null, $content = null, $title = null, $class = null, KunenaForumCategory $category = NULL) {
$uri = $topic->getUri($category ? $category : (isset($this->category)? $this->category : $topic->category_id), $action);
if (!$content) $content = KunenaHtmlParser::parseText($topic->subject);
if ($title === null) {
if ($action instanceof KunenaForumMessage) {
$title = JText::sprintf('COM_KUNENA_TOPIC_MESSAGE_LINK_TITLE', $this->escape($topic->subject));
return JHTML::_('kunenaforum.link', $uri, $content, $title, $class, 'nofollow');
} else {
switch ($action) {
case 'first':
$title = JText::sprintf('COM_KUNENA_TOPIC_FIRST_LINK_TITLE', $this->escape($topic->subject));
return JHTML::_('kunenaforum.link', $uri, $content, $title, $class, 'nofollow');
break;
case 'last':
$title = JText::sprintf('COM_KUNENA_TOPIC_LAST_LINK_TITLE', $this->escape($topic->subject));
return JHTML::_('kunenaforum.link', $uri, $content, $title, $class, 'nofollow');
break;
case 'unread':
$title = JText::sprintf('COM_KUNENA_TOPIC_UNREAD_LINK_TITLE', $this->escape($topic->subject));
return JHTML::_('kunenaforum.link', $uri, $content, $title, $class, 'nofollow');
break;
default:
$title = JText::sprintf('COM_KUNENA_TOPIC_LINK_TITLE', $this->escape($topic->subject));
return JHTML::_('kunenaforum.link', $uri, $content, $title, $class, 'nofollow');
}
}
}
return JHTML::_('kunenaforum.link', $uri, $content, $title, $class, 'follow');
}
Нужно тестить, но на первый взгляд работает.