1 頁 (共 1 頁)

[問題] 搜尋功能錯誤(已解決)

發表於 : 2005-09-10 00:17
咖啡不加糖
問題外掛:隱藏部份付費瀏覽內文
參考連結:http://phpbb-tw.net/phpbb/viewtopic.php?t=34446
使用版本:phpBB 2.0.17
網站位置:http://php-tw.org
狀況描述:
裝了隱藏部份付費瀏覽內文只要點選搜尋的功能就會出現\r

代碼: 選擇全部

Parse error: parse error, unexpected T_ELSE in /home/****/public_html/phpbb/search.php on line 1098
以下是錯誤的上下10行

代碼: 選擇全部

				if ($topic_type == POST_ANNOUNCE)
				{
					$topic_type = $lang['Topic_Announcement'] . ' ';
				}
// Start add - Global announcement MOD
if($topic_type == POST_GLOBAL_ANNOUNCE ) 
{ 
   $topic_type = $lang['Topic_global_announcement'] . " "; 
} else
// End add - Global announcement MOD

				else if ($topic_type == POST_STICKY)
				{
					$topic_type = $lang['Topic_Sticky'] . ' ';
				}
				else
				{
					$topic_type = '';
				}

				if ( $searchset[$i]['topic_vote'] )
				{
補充:
search.txt
外掛列表

發表於 : 2005-09-10 01:04
~倉木麻衣~
從你提供的檔案來看, 那應該是你裝全域公告時出的問題才對吧?

Global announcement 裡是要你做BEFORE, ADD
但你自己弄錯, 弄成了AFTER, ADD
#
#-----[ OPEN ]------------------------------------------------
#

代碼: 選擇全部

search.php

#
#-----[ FIND ]------------------------------------------------
#

代碼: 選擇全部

if ($topic_type == POST_ANNOUNCE)
{
	$topic_type = 
}
#
#-----[ BEFORE, ADD ]-----------------------------------------
#

代碼: 選擇全部

// Start add - Global announcement MOD
if($topic_type == POST_GLOBAL_ANNOUNCE ) 
{ 
   $topic_type = $lang['Topic_global_announcement'] . " "; 
} else
// End add - Global announcement MOD

發表於 : 2005-09-10 08:12
咖啡不加糖
原來是放錯位置的關係 :-o 感謝您的指正