Results 1 to 2 of 2

Thread: integration / problems with include

  1. #1
    Join Date
    Jun 2007
    Posts
    64
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Unhappy integration / problems with include

    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:
    PHP Code:
    define('IN_PHPBB'true);
    include(
    $phpbb_root_path 'extension.inc');
    include(
    $phpbb_root_path 'common.'.$phpEx);
    $userdata session_pagestart($user_ipPAGE_INDEX);
    init_userprefs($userdata); 
    and this is the exact line, which makes my shoutbox not work anymore:
    PHP Code:
    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 !!

  2. #2
    Join Date
    Jun 2007
    Posts
    64
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default ...

    lol ok.. solved.. the problem was sumthing totally different..
    messed up with local and global variables

    can be closed

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •