Jump to content
Дизайн и модификация IPS Community IPBSkinsBETA
Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  
Iven

Как правильно вставить php код в шаблон ip.content 2.1.2

Recommended Posts

Пример кода который надо вставить в шаблон

 

<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

Edited by Iven

Share this post


Link to post
Share on other sites

Через блоки вставляйте.

Там же три типа блоков можно создать, в том числе и для вставки php

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...