[問題]請教代碼無法使用.是哪裡出問題了

phpBB 2 MOD Support
無論是官方或非官方認證之外掛,安裝與使用問題討論。
(發表文章請按照公告格式發表,違者砍文)

版主: 版主管理群

主題已鎖定
頭像
星河夜語~*
星球普通子民
星球普通子民
文章: 23
註冊時間: 2004-06-14 23:48

[問題]請教代碼無法使用.是哪裡出問題了

文章 星河夜語~* »

問題外掛:無法確定是在安裝哪各外掛後.發生的問題
使用版本:phpBB 2.0.10
\n網站位置:http://cat6318.why3s.net/portal.php
已安裝外掛:http://cat6318.why3s.net/viewtopic.php?t=4但可以確定.安裝到捲動文字時.都還是正常的
測試帳號密碼:都是"1234"
狀況描述:
想請教瀏覽有使用的代碼的文章都會出現以下訊息.
且效果出不來.請問有可能是哪裡出了問題?煩請指教.謝謝!

代碼: 選擇全部

Parse error: parse error, unexpected '<' in /home/cat6318/public_html/includes/bbcode.php(61) : eval()'d code on line 44
以下是bbcode.php

代碼: 選擇全部

/**
 * Loads bbcode templates from the bbcode.tpl file of the current template set.
 * Creates an array, keys are bbcode names like "b_open" or "url", values
 * are the associated template.
 * Probably pukes all over the place if there's something really screwed
 * with the bbcode.tpl file.
 *
 * Nathan Codding, Sept 26 2001.
 */
function load_bbcode_template()
[color=#ff0033]{         (44行)[/color]
	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();

	[color=#ff0033]eval($tpl);    (61行)[/color]

	return $bbcode_tpls;
}
主題已鎖定

回到「外掛問題討論」