фикс при отключении системы репортов. после отключения пункт сообщить о нарушении не скрывался
viewtopic.tpl
найти
[code]{postrow.REPORT}{POST_BTN_SPACER}[/code]
заменить
[code]
<!-- IF postrow.REPORT -->{postrow.REPORT}{POST_BTN_SPACER}<!-- ENDIF -->
[/code]
viewtopic.php
найти
[code]
if ($report_post && $report_post->auth_check('auth_write'))
{
[/code]
перед добавить
[code]
if ($bb_cfg['reports_enabled'])
{
[/code]
найти
[code]
$report = '<a class="txtb" href="' . $temp_url . '">[' . $report_post->lang['WRITE_REPORT'] . ']</a>';
}
}
[/code]
после добавить
[code]
}
[/code]
usercp_viewprofile.php
найти
[code]
include(INC_DIR . "functions_report.php");
$report_user = report_modules('name', 'report_user');
[/code]
перед добавить
[code]
if ($bb_cfg['reports_enabled'])
{
[/code]
найти
[code]
'L_REPORT_USER' => $report_user->lang['WRITE_REPORT'])
);
}
[/code]
после добавить
[code]
}
[/code]
privmsg.php
найти
[code]
if ($folder == 'inbox')
{
include(INC_DIR . "functions_report.php");
$report_privmsg = report_modules('name', 'report_privmsg');
[/code]
перед добавить
[code]
if ($bb_cfg['reports_enabled'])
{
[/code]
найти
[code]
'REPORT_PM' => $report)
);
}
}
[/code]
после добавить
[code]
}
[/code]