Log in

View Full Version : integration / problems with include



kobo1d
07-12-2007, 11:07 PM
Hi..

well i have a flatfile shoutbox and a phpbb board..
now i want to integrate some important variables from my phpbb to the shoutbox...
but when i add the include code, the shoutbox doesnt work anymore..

this is the include part:

define('IN_PHPBB', true);
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);

and this is the exact line, which makes my shoutbox not work anymore:

include($phpbb_root_path . 'common.'.$phpEx);

i guess there are overlapping variables or other code problems ..
my shoutbox simply doesnt get dispalyed anymore..

but i tested the include thing on another page and it worked there..
so it must have sumthing todo with the shoutbox and the phpbb code in combination..

now i wonder if i can let my shoutbox script just read 1 variable out of the phpbb stuff..
i just need " $userdate['username'] " .. it is the nickname..

is there another way to include just this 1 variable to my shoutbox and not the whole extension.inc & common.php from phpbb ?!

i hope u understand what i mean..
thanks for any help !!

kobo1d
07-14-2007, 03:33 PM
lol ok.. solved.. the problem was sumthing totally different..
messed up with local and global variables :eek:

can be closed
:cool: