Skip to content
View in the app

A better way to browse. Learn more.

Дизайн и модификация Invision Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

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

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

 

<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

Featured Replies

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

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

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.