Как правильно вставить php код в шаблон ip.content 2.1.2
Рекомендованные сообщения
Сейчас на странице 0
- Нет пользователей, просматривающих эту страницу.
A better way to browse. Learn more.
A full-screen app on your home screen with push notifications, badges and more.
Пример кода который надо вставить в шаблон
<php> print "<script type=\"text/javascript\"> function initPlayer() { var d = new Date(); difDay = 0; difHours = ".date(G)."; difMinutes = ".date(i)."; //showShedule(); mkplayer(0); setTimeout('reFrm()',3000); setTimeout('mkplayer(0)',5500); setTimeout('document.getElementById(\"menu\").style.display=\"block\"',5500); document.onclick = mclose; ODKL.init(); window.focus(); } </script>"; </php>Вставлюе его в шаблон вида категории Front Page (Blog Format)
Выдает такие ошибки при загрузке страницы
Warning: Cannot modify header information - headers already sent by (output started at /admin/applications_addon/ips/ccs/sources/pages.php(416) : eval()'d code:11510) in /admin/sources/classes/output/formats/html/htmlOutput.php on line 105
Warning: Cannot modify header information - headers already sent by (output started at/admin/applications_addon/ips/ccs/sources/pages.php(416) : eval()'d code:11510) in /admin/sources/classes/output/formats/html/htmlOutput.php on line 120
Warning: Cannot modify header information - headers already sent by (output started at /admin/applications_addon/ips/ccs/sources/pages.php(416) : eval()'d code:11510) in /admin/sources/classes/output/formats/html/htmlOutput.php on line 129
Warning: Cannot modify header information - headers already sent by (output started at /admin/applications_addon/ips/ccs/sources/pages.php(416) : eval()'d code:11510) in /admin/sources/classes/output/formats/html/htmlOutput.php on line 130
Warning: Cannot modify header information - headers already sent by (output started at /admin/applications_addon/ips/ccs/sources/pages.php(416) : eval()'d code:11510) in /admin/sources/classes/output/formats/html/htmlOutput.php on line 134
ааа, вопрос снят, тему можно удалить, вспомнил что print и echo не работают в ipb
Изменено пользователем Iven