2013-07-31 49 views
0

我PHPBB的版本安裝/board我的網站添加自定義頁面PHPBB在新目錄

我試圖創建一個名爲store新目錄中的文件被稱爲decals.php

貼花內的自定義頁面.PHP

<?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); 

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

page_header('Store - Decals'); 

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

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

?> 

store_decals_body.html被上傳到我的styles目錄,我不能似乎得到mysite.com/board/store/decals.php工作。它總是讓我去mysite.com/board

我忽略了這裏的東西?

回答

1

如果你在一個子目錄中的PHP文件,更改相應的根路徑:

$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : '../';