Грешка при интегриране на сайт и phpBB форум.

superactro

Registered
Ползвах този урок http://web-tourist.net/login/login/view.php?st=1103
за да интегрирам сайта си с phpbb3 форум форумът ми е в директория /forum когато стартирам index.php ми изписва таз игрешка:

Warning: include(forum/extension.inc) [function.include]: failed to open stream: No such file or directory in C:\xampp\htdocs\index.php on line 10

Warning: include() [function.include]: Failed opening 'forum/extension.inc' for inclusion (include_path='.;C:\xampp\php\pear\') in C:\xampp\htdocs\index.php on line 10

Warning: include(forum/common.) [function.include]: failed to open stream: No such file or directory in C:\xampp\htdocs\index.php on line 11

Warning: include() [function.include]: Failed opening 'forum/common.' for inclusion (include_path='.;C:\xampp\php\pear\') in C:\xampp\htdocs\index.php on line 11

Fatal error: Call to undefined function session_pagestart() in C:\xampp\htdocs\index.php on line 12
 
Да :D Вярно :?: Ще потърся урок за 3 ако някой намери преди мен да даде линкче
 
Слагаш това в индекса най-отгоре

<?php
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
include($phpbb_root_path . 'includes/functions_display.' . $phpEx);

// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup('viewforum');
?>

След това кода където искаш

<?php
if ($user->data['user_id'] == ANONYMOUS)
{
echo"
<form action=\"". append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=login', true, $user->session_id) . "\" method=\"post\">
<input type=\"hidden\" name=\"mode\" value=\"login\" />
<font color=white>Име:</font><br><input type=\"text\" name=\"username\" />
<font color=white>Парола:</font><br><input type=\"password\" name=\"password\" />
<font color=white>Запомни</font> <input type=\"checkbox\" class=\"radio\" name=\"viewonline\" />
<input type=\"hidden\" name=\"autologin\" value=\"1\" />
<input type=\"submit\" value=\"Влез\" name=\"login\" />
<input type=\"hidden\" name=\"redirect\" value=\"index.$phpEx\" />
</form>
<br />
<a href=\"forum/ucp.$phpEx?mode=register\">Регистрирай се</a>
";
}
else
{
echo"
<form action=\"". append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=logout', true, $user->session_id) . "\" method=\"post\">
<input type=\"hidden\" name=\"mode\" value=\"logout\" />

Потребител: <a href='{$phpbb_root_path}memberlist.php?mode=viewprofile&u=".$user->data['user_id']."'>".$user->data['username']."</a>
<br>
Мнения: ".$user->data['user_posts']."</a>
<br>
Изход: <input type=\"submit\" value=\"Излез\" name=\"logout\" />
</form>
";
}
?>

Забележи едно нещо.
include($phpbb_root_path . 'includes/functions_display.' . $phpEx);
Ако форумът ти е във папката /forum просто го слагаш така
forum/includes/functions_display.[/color]' . $phpEx);
 

Горе