1 頁 (共 1 頁)

[問題]全區公告分區問題

發表於 : 2004-03-17 05:37
totoromehk
問題外掛:全區公告分區2.01+全區公告1.28em
參考連結:
使用版本:phpBB 2.0.7
網站位置:http://totoromehk.no-ip.com/forum/index.php
狀況描述: 安裝完全區公告後一切正常,其它已改外掛功能正常\r
但安裝全區公告分區後進入viewforum出現\r

代碼: 選擇全部

Fatal error: Cannot redeclare load_bbcode_template() (previously declared in c:\appserv\www\forum\includes\bbcode.php:45) in c:\appserv\www\forum\includes\bbcode.php on line 43
bbcode.php 43行左右的程式碼\r

代碼: 選擇全部

function load_bbcode_template()
{
	global $template;
	$tpl_filename = $template->make_filename('bbcode.tpl');
	$tpl = fread(fopen($tpl_filename, 'r'), filesize($tpl_filename));

	// replace \ with \\\ and then ' with \'.
	$tpl = str_replace('\\\', '\\\\\\\', $tpl);
	$tpl  = str_replace('\'', '\\\\\'', $tpl);

	// strip newlines.
	$tpl  = str_replace("
", '', $tpl);

	// Turn template blocks into PHP assignment statements for the values of $bbcode_tpls..
	$tpl = preg_replace('#<!-- BEGIN (.*?) -->(.*?)<!-- END (.*?) -->#', "
" . '$bbcode_tpls[\'\\\1\'] = \'\\\2\';', $tpl);

	$bbcode_tpls = array();

	eval($tpl);

	return $bbcode_tpls;
}
後臺可進入,已修改全區公告分區2.01+全區公告1.28em相容的文件,不知是什麼事情呢\r



補充:
scroll bbcode
iframe bbcode
全區公告1.28em
推薦網站進階版
cash mod 2.21
bank mod 等[/code]

發表於 : 2004-03-17 06:25
天霜
你的站是用藍色的天空版本\r
應該去他的支援網站詢問

不過我給個方向
當你安裝完 Split topic type 2.0.1 後
viewforum.php有大半的程式碼都會被functions_topics_list.php取代\r
有可能是你其他外掛有在viewforum.php加入過代碼後

被functions_topics_list.php取代 導致某外掛安裝不完全導致發生錯誤

既然你裝的全區公告是Global Announcment mod 1.28em
何不考慮去裝 Split topic type 1.0.5 ?
http://phpbb-tw.net/phpbb/viewtopic.php?t=23817

發表於 : 2004-03-17 06:34
totoromehk
謝謝大大提示\r

Ps:這是我的新站,不是藍天版本(看看連結,舊站才是喔) :mrgreen:

發表於 : 2004-03-17 06:37
天霜
totoromehk 寫:謝謝大大提示\r

Ps:這是我的新站,不是藍天版本(看看連結,舊站才是喔) :mrgreen:
喔..原來如此 是我搞錯了 :-|
不過我看你問題似乎已經解決了

剛剛逛了一下 都沒出現錯誤畫面

發表於 : 2004-03-17 06:53
totoromehk
還未解决,只是拆掉公告分區罷

發表於 : 2004-03-17 07:25
totoromehk
謝謝天霜大哥,已成功了