ага ... но я бы порекомендовал для большей универсальности не комментировать проверку if (cot_get_caller() == $cfg['plugin']['rcntcomments']['part']), а добавить возможность выбора режима работы в настройки плагина, а именно в сетап файл вот такое
PHP
1
2
3
4
5
6
7
[BEGIN_COT_EXT_CONFIG]
mode=01:radio::1:Output in al template?
part=10:select:index,header,page.list,page.main,footer:index:Part where recent comments should be called
maxcomments=12:string::5:Number of recent comments displayed
maxcommenttext=13:string::100:Recent comment text length limit
maxparenttitletext=14:string::25:Parent page title text length limit