Integrate the board with a new page from a subdomain

Discussion forum for MOD Writers regarding MOD Development.
Locked
Jhonne
Registered User
Posts: 21
Joined: Sat Feb 27, 2010 7:36 pm

Integrate the board with a new page from a subdomain

Post by Jhonne » Sat Feb 27, 2010 7:43 pm

I want to integrate my board with the rest of my homepage.

I have files in the "root" directory, other files in "/files" directory and forum is in "/forum" directory.

I added this code to my index file in the root directory and it works fine, however when I try to add this to a page in the "/files" directory it gives me a blank page. Anyone can help me with what Im doing wrong?

Thanks

Code: Select all

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

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

    page_header('Title Here');

    $template->set_filenames(array(
        'body' => 'file1.html',
    ));

    make_jumpbox(append_sid("{$phpbb_root_path}viewforum.$phpEx"));
    page_footer();
?>

Locked

Return to “[3.0.x] MOD Writers Discussion”