心靈捕手大大
目前一直都是使用預設的風格subSilver
以下是我截取下來的畫面
以下這一段程式碼是
/srv/www/htdocs/phpBB2/includes/template.php(127) : eval()'d code:1)
紅色字是第127行也就是警告訊息指出的行數
/**
* Load the file for the handle, compile the file,
* and run the compiled code. This will print out
* the results of executing the template.
*/
function pparse($handle)
{
if (!$this->loadfile($handle))
{
die("Template->pparse(): Couldn't load template file for handle $handle");
}
// actually compile the template now.
if (!isset($this->compiled_code[$handle]) || empty($this->compiled_code[$handle]))
{
// Actually compile the code now.
$this->compiled_code[$handle] = $this->compile($this->uncompiled_code[$handle]);
}
// Run the compiled code.
eval($this->compiled_code[$handle]);
return true;
}
以下這一段程式碼是
/srv/www/htdocs/phpBB2/admin/admin_smilies.php
紅色字是第225和226行也就是警告訊息指出的行數
//
// Display the script to get the smile_pak cfg file...
//
$smile_paks_select = "<select name='smile_pak'><option value=''>" . $lang['Select_pak'] . "</option>";
while( list($key, $value) = @each($smiley_paks) )
{
if ( !empty($value) )
{
$smile_paks_select .= "<option>" . $value . "</option>";
}
}
$smile_paks_select .= "</select>";
$hidden_vars = "<input type='hidden' name='mode' value='import'>";
$template->set_filenames(array(
"body" => "admin/smile_import_body.tpl")
);
$template->assign_vars(array(
"L_SMILEY_TITLE" => $lang['smiley_title'],
"L_SMILEY_EXPLAIN" => $lang['smiley_import_inst'],
"L_SMILEY_IMPORT" => $lang['smiley_import'],
"L_SELECT_LBL" => $lang['choose_smile_pak'],
"L_IMPORT" => $lang['import'],
"L_CONFLICTS" => $lang['smile_conflicts'],
"L_DEL_EXISTING" => $lang['del_existing_smileys'],
"L_REPLACE_EXISTING" => $lang['replace_existing'],
"L_KEEP_EXISTING" => $lang['keep_existing'],
"S_SMILEY_ACTION" => append_sid("admin_smilies.$phpEx"),
"S_SMILE_SELECT" => $smile_paks_select,
"S_HIDDEN_FIELDS" => $hidden_vars)
);
$template->pparse("body");
}
不知道這樣的資料是否OK
另外
phpBB2/includes/template.php
phpBB2/admin/admin_smilies.php
這兩個檔的權限都是644
phpBB2/images/smiles
資料夾的權限為755(我有試過777沒有用

)
還有就是我再加入新的表情符號前就已經有這個問題了
也就是原始預設的表情符號我就已經不能建立笑臉包包
當然這不是重要的功能
因為目前網站的運作都還OK
大部分的功能都沒問題
除了風格沒有試過(也不打算試因為預設的我覺得還不錯)
不過還是想解決這個問題
不好意思一直麻煩大家