zgodnie z artykułem ze stronki:
http://webfoto.pl/index.php?co=arts&id=1
na mojej stronie ktora jest zamieszczona w katalogu
http://nazwa_domeny.pl/start/
umieszczam :
Kod: Zaznacz cały
<?php
define('IN_PHPBB', true);
$phpbb_root_path = './../forum/';
$page_path = './../../';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
$userdata = session_pagestart($user_ip, PAGE_INDEX, $session_length);
init_userprefs($userdata);
//zmienne odpowiadajace za statsy
$total_posts = get_db_stat('postcount');
$total_users = get_db_stat('usercount');
$newest_userdata = get_db_stat('newestuser');
$newest_user = $newest_userdata['username'];
$newest_uid = $newest_userdata['user_id'];
//koniec zmienne odpowiadajace za statsy poczatek zmienne odp. za logowanie
$scfile=explode("/",$_SERVER['PHP_SELF']);
$redir = "../";
?>$phpbb_root_path = './../forum/';
$page_path = './../../';
no bo forum jest: http://domena.pl/forum
a stronka http://domena.pl/start
potem dodaje w miejscu gdzie chce aby sie wyswietlaly informacje o uzytkownikach
kod:
Kod: Zaznacz cały
<?php
echo("Użytkowników: ".$total_users."<br>Postów: ".$total_posts."<br>Ostatnio zarejestrowny: <a href=../forum/profile.php?mode=viewprofile&u=".$newest_uid.">".
$newest_user."</A>");
?>na samej gorze pojawia sie komunikat o bledzie:
Kod: Zaznacz cały
Warning: Cannot modify header information - headers already sent by (output started at /home/mpro/public_html/start/i.php:8) in /home/mpro/public_html/forum/includes/sessions.php on line 326
Warning: Cannot modify header information - headers already sent by (output started at /home/mpro/public_html/start/i.php:8) in /home/mpro/public_html/forum/includes/sessions.php on line 327uzywam phpBB modified v1.8 by Przemo
z goory dziekuje za pomoc, pozdrawiam