GPLynn 寫:心靈捕手 寫:建議您:
將下列檔案壓縮後, 貼出下載連結.
- includes/functions_display.php
- language/zh_cmn_hant/mods/info_acp_gallery.php
- posting.php
檔案如附件,有勞了~感激不盡!
讓自訂 BBCode 的語言變數生效, 是 phpBB 3.0.5 版的新增功能.
以下修改提供您參考:
--開啟--
includes/functions_display.php
--找到--
代碼: 選擇全部
global $db, $template;
--取代成--
代碼: 選擇全部
global $db, $template, $user;
--找到--
代碼: 選擇全部
//$user->add_lang('mods/info_acp_gallery');
--取代成--
代碼: 選擇全部
$user->add_lang('mods/info_acp_gallery');
--找到--
代碼: 選擇全部
while ($row = $db->sql_fetchrow($result))
{
$template->assign_block_vars('custom_tags', array(
'BBCODE_NAME' => "'[{$row['bbcode_tag']}]', '[/" . str_replace('=', '', $row['bbcode_tag']) . "]'",
--取代成--
代碼: 選擇全部
while ($row = $db->sql_fetchrow($result))
{
// If the helpline is defined within the language file, we will use the localised version, else just use the database entry...
if (isset($user->lang[strtoupper($row['bbcode_helpline'])]))
{
$row['bbcode_helpline'] = $user->lang[strtoupper($row['bbcode_helpline'])];
}
$template->assign_block_vars('custom_tags', array(
'BBCODE_NAME' => "'[{$row['bbcode_tag']}]', '[/" . str_replace('=', '', $row['bbcode_tag']) . "]'",
如此依最新版修改, 不保證已經可行;
建議您: 盡早更新為 phpBB 3.0.5 版.