Автор: Inrus

Название: Репутация пользователей

Поддержка модуля: http://www.dletweak.ru/

Описание: Вывод уровня репутации в постах модуля files


(Работаем в папке модулей)

1. Открыть файл fileslastcomments.php

Найти:

else $tpl->set('{icq}', '--');

Ниже добавить:

if($config['allow_alt_url'] == "yes") $tpl->set('{repa}', "<a href=\"".$config['http_home_url']."user/reputation/".urlencode($row['name'])."/\">".$row['repa']."</a>");
else $tpl->set('{repa}', "<a href=\"$PHP_SELF?do=reputation&user=".urlencode($row['name'])."\">".$row['repa']."</a>");

2. Открыть файл files_download.php

Найти:

foto, fullname, land, icq,

Ниже добавить:

foto, fullname, land, icq, repa,

Найти:

$tpl->set('{icq}', '');

Ниже добавить:

if($config['allow_alt_url'] == "yes") $tpl->set('{repa}', "<a href=\"".$config['http_home_url']."user/reputation/".urlencode($row['name'])."/\">".$row['repa']."</a>");
else $tpl->set('{repa}', "<a href=\"$PHP_SELF?do=reputation&user=".urlencode($row['name'])."\">".$row['repa']."</a>");


===========================================================
(с) 2008 Inrus http://www.dletweak.ru