AddEventHandler("main", "OnEndBufferContent", "ShowAuthorInsideNews"); function ShowAuthorInsideNews(&$content) { if (CModule::IncludeModule("iblock")) { if (strpos($content, '#YAKUBOV#') !== false) { $content = str_replace('#YAKUBOV#', author(), $content); } } }