Назовем файл например: stranica.php
<?php
define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
define('SHOW_ONLINE', true);
//Заголовок страницы
$page_title = $lang['Index'];
//подключаем шапку форума
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
//Объявляем название шаблона
$template->set_filenames(array(
'body' => 'stranica_body.tpl')
);
//Эти переменные мы будем переводить в шаблон
$text = 'Содержание первой переменной';
$text2 = 'Содержание второй переменной';
//тут нашим переменным присваиваем названия для вывода в tpl
$template->assign_vars(array(
'TEXT' => $text,
'TEXT2' => $text2,
)
);
$template->pparse('body');
//подключаем низ форума
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
?>
<p><a href="{U_INDEX}">Форумы</a>|Страница</p>
<table width="100%" cellpadding="1" cellspacing="0" border="0" class="forumline">
<tr>
<td class="catSides"><span class="cattitle">{TEXT2}</span></td><tr/>
<tr>
<td class="row1">
{TEXT}
</td>
</tr>
</table>