參考連結:http://www.phpbb-tw.net/phpbb/viewtopic ... t=easysite
使用版本:PHPBB 2.0.1.3
網站位置:http://evolved.no-ip.com/phpbb2/
狀況描述:
安裝完EasySite以後...
又加裝了安裝說明裡的"在討論區 index 中顯示 EasySite's 的左邊板塊"
結果出現:
代碼: 選擇全部
Parse error: parse error in c:\appserv\www\phpbb2\index.php on line 267代碼: 選擇全部
$template->set_filenames(array(
'sitepanel' => 'sitepanel_body.tpl',
'body' => 'index_body.tpl')
include($phpbb_root_path . 'includes/sitepanel.'.$phpEx);
[color=red]$template->assign_var_from_handle('SITEPANEL', 'sitepanel'); [/color]
);
我已經比對過原安裝檔:
代碼: 選擇全部
########################################################
## 1-1. 如何在討論區 index 中顯示 EasySite's 的左邊板塊?
########################################################
#
#-----[ 打開 ]------------------------------------------
#
index.php
#
#-----[ 尋找 ]------------------------------------------
#
$template->set_filenames(array(
'body' => 'index_body.tpl')
);
#
#-----[ 之間, 尋找 ]----------------------------------
#
'body' => 'index_body.tpl'
#
#-----[ 之前, 加上 ]------------------------------------
#
'sitepanel' => 'sitepanel_body.tpl',
#
#-----[ 尋找 ]------------------------------------------
#
'body' => 'index_body.tpl')
);
#
#-----[ 之後, 加上 ]-------------------------------------
#
include($phpbb_root_path . 'includes/sitepanel.'.$phpEx);
$template->assign_var_from_handle('SITEPANEL', 'sitepanel');
#
#-----[ 打開 ]------------------------------------------
#
index_body.tpl
#
#-----[ 尋找 ]------------------------------------------
#
<table width="100%" cellspacing="0" cellpadding="2" border="0" align="center">
#
#-----[ 之前, 加上 ]------------------------------------
#
<table border="0" cellpadding="1" cellspacing="0" width="100%">
<tr><td valign="top" width="20%">
{SITEPANEL}
<td valign="top" style="padding-left:20px">
#
#-----[ 尋找 ]------------------------------------------
#
<td><span class="gensmall">{L_FORUM_LOCKED}</span></td>
</tr>
</table>
#
#-----[ 之後, 加上 ]-------------------------------------
#
</td></tr></table>
請高手解答!
