Модуль mod_kunenalatest закрыть ссылки nofollow

D
На сайте с 28.06.2008
Offline
1114
575

Модуль последних сообщений стоит на всех страницах, хочу добавить в ссылки на посты форума rel="nofollow"

Просмотрел файлы модуля, нигде нет намеков на тег <a

ПХП не знаю, но интуитивно понял что за формирование ссылки отвечает этот код:

<li class="klatest-subject">
<?php
if ($this->params->get ( 'sh_sticky' )) {
if ($item->ordering) {
echo '<img src="' . JURI::root () . 'modules/mod_kunenalatest/tmpl/images/sticky.png" alt="' . JText::_ ( 'MOD_KUNENALATEST_STICKY_TOPIC' ) . '" />';
}
}
if ( $this->params->get ( 'choosemodel' ) != 'latestposts' && $this->params->get ( 'choosemodel' ) != 'latesttopics' ):
echo CKunenaLink::GetThreadLink ( 'view', $item->catid, $item->id, JString::substr ( htmlspecialchars ( $item->subject ), '0', $this->params->get ( 'titlelength' ) ), JString::substr ( htmlspecialchars ( KunenaParser::stripBBCode($item->message) ), '0', $this->params->get ( 'messagelength' ) ), 'nofollow' );
else :
if ($this->topic_ordering == 'ASC') :
echo CKunenaLink::GetThreadPageSpecialLink ( 'view', intval($item->catid), intval($item->thread), $threadPages, intval($this->kunena_config->messages_per_page), JString::substr ( htmlspecialchars ( $item->subject ), '0', $this->params->get ( 'titlelength' ) ), intval($item->id), '','', JString::substr ( htmlspecialchars ( KunenaParser::stripBBCode($item->message) ), '0', $this->params->get ( 'messagelength' ) ) );
if ( $this->params->get ( 'sh_postcount' ) ) : echo ' ('.$item->msgcount.' '.JText::_('MOD_KUNENALATEST_MSG').')';
endif;
else :
echo CKunenaLink::GetThreadPageSpecialLink ( 'view', intval($item->catid), intval($item->thread), 1, intval($this->kunena_config->messages_per_page), JString::substr ( htmlspecialchars ( $item->subject ), '0', $this->params->get ( 'titlelength' ) ), intval($item->id), '','', JString::substr ( htmlspecialchars ( KunenaParser::stripBBCode($item->message) ), '0', $this->params->get ( 'messagelength' ) ));
if ( $this->params->get ( 'sh_postcount' ) ): echo ' ('.$item->msgcount.' '.JText::_('MOD_KUNENALATEST_MSG').')';
endif;
endif;
endif;
......................
дальше еще код

Опять же чисто гипотетически предполагаю что ссылка формируется где то в файлах компонента Kunena и вызывается сюда вот этой бякой echo CKunenaLink::GetThreadLink

Как мне вставить rel="nofollow" в ссылки на последние темы форума?

Авторизуйтесь или зарегистрируйтесь, чтобы оставить комментарий