1 頁 (共 1 頁)

[問題]安裝後Advanced Hide Post出了問題

發表於 : 2004-06-03 00:04
ms821
問題外掛:Advanced Hide Post
參考連結:shi < shi@roc.as-hosting-pro.com > (Peng Shi) http://roc.myz.info
## Ray < blue_sky_ray@hotmail.com > (Fung Tsz Yin) http://optional.iradio.com.tw/phpbbx

使用版本:1.0.2 Beta
狀況描述:

我安裝Advanced Hide Post, 之後按發表主題...淨出左句錯誤訊息:
Parse error: parse error, expecting `')'' in /home/mos/public_html/phpBB2/posting.php on line 702

Line 696~716

代碼: 選擇全部

// here we have added
//	, $topic_calendar_time, $topic_calendar_duration
//-- modify


			prepare_post(		// Advanced Hide Post MOD
		if ( ($hiding_type < NORMAL_READ) or ($hiding_type > MAX_HIDE_TYPE) )
			$hiding_type = NORMAL_READ;
		
		if ( ($hiding_type < MIN_HIDE_WITH_VALUE) )
			$hiding_value = 0;
		elseif ($hiding_value == 0)
			$hiding_type = NORMAL_READ;
		$hiding_info_box = '';
		if ( $hiding_type )
		{
			if ( $allow_hide[$hiding_type] && $auth_hide[$hiding_type] )
			{
				if ($hiding_type >= MIN_HIDE_WITH_VALUE)
				{
					if ( $hiding_type < MIN_HIDE_WITH_CASH )



系統管理控制台左上角就出呢句...
Parse error: parse error in /home/mos/public_html/phpBB2/admin/admin_ug_auth.php on line 86

Line74~96

代碼: 選擇全部

	'auth_view' => AUTH_VIEW,
	'auth_read' => AUTH_READ,
	'auth_post' => AUTH_POST,
	'auth_reply' => AUTH_REPLY,
	'auth_edit' => AUTH_EDIT,
	'auth_delete' => AUTH_DELETE,
	'auth_sellpost' => AUTH_SELLPOST,
	'auth_hide4reply' => AUTH_HIDE4REPLY,
	'auth_hide4posts' => AUTH_HIDE4POSTS,
	'auth_hide4fortune' => AUTH_HIDE4FORTUNE);
	//-- mod : calendar --------------------------------------------------------------------------------
//-- add
	'auth_cal' => AUTH_CAL,
//-- fin mod : calendar ----------------------------------------------------------------------------

	'auth_sticky' => AUTH_STICKY,
	'auth_announce' => AUTH_ANNOUNCE, 
	'auth_vote' => AUTH_VOTE, 
	'auth_pollcreate' => AUTH_POLLCREATE,
	'auth_ban' => AUTH_BAN, 
	'auth_greencard' => AUTH_GREENCARD, 
	'auth_bluecard' => AUTH_BLUECARD,
	'auth_globalannounce' => AUTH_GLOBALANNOUNCE);

不知發生了甚麽事呢?...

發表於 : 2004-06-03 00:06
台灣阿堂
把發生錯誤的檔案行數上下10行貼出來~

發表於 : 2004-06-03 00:19
ms821
貼出來了~
請過目

Re: [問題]安裝後Advanced Hide Post出了問題

發表於 : 2004-06-03 00:31
台灣阿堂
你的問題出在admin_ug_auth.php第85行
[php] 'auth_view' => AUTH_VIEW,
'auth_read' => AUTH_READ,
'auth_post' => AUTH_POST,
'auth_reply' => AUTH_REPLY,
'auth_edit' => AUTH_EDIT,
'auth_delete' => AUTH_DELETE,
'auth_sellpost' => AUTH_SELLPOST,
'auth_hide4reply' => AUTH_HIDE4REPLY,
'auth_hide4posts' => AUTH_HIDE4POSTS,
'auth_hide4fortune' => AUTH_HIDE4FORTUNE); <----85行
//-- mod : calendar ------------------------------------------------
//-- add
'auth_cal' => AUTH_CAL,
//-- fin mod : calendar -------------------------------------------------

'auth_sticky' => AUTH_STICKY,
'auth_announce' => AUTH_ANNOUNCE,
'auth_vote' => AUTH_VOTE,
'auth_pollcreate' => AUTH_POLLCREATE,
'auth_ban' => AUTH_BAN,
'auth_greencard' => AUTH_GREENCARD,
'auth_bluecard' => AUTH_BLUECARD,
'auth_globalannounce' => AUTH_GLOBALANNOUNCE);[/php]

發表於 : 2004-06-03 08:44
ms821
多謝上面兩位大大的幫忙, 另一個問題
Parse error: parse error, expecting `')'' in /home/mos/public_html/phpBB2/posting.php on line 702

要怎樣解決呢?

發表於 : 2004-06-03 15:46
.::藍色的天空::.
prepare_post( 之後加入不是直接加在 prepare_post( 之後
是加在 prepare_post( 的下一行

prepare_post( 是全句的一部份

發表於 : 2004-06-03 16:03
ms821
首先多謝您的答覆
但問題仍存在, 今次係
Parse error: parse error, expecting `')'' in /home/mos/public_html/phpBB2/posting.php on line 703

唔知line 703 究竟出了甚麽問題呢...

line 703:
if ( ($hiding_type < NORMAL_READ) or ($hiding_type > MAX_HIDE_TYPE) )

發表於 : 2004-06-03 16:05
.::藍色的天空::.
=.=
加在\r
prepare_post($mode, $post_data, $bbcode_on, $html_on, $smilies_on, $error_msg, $username, $bbcode_uid, $subject, $message, $poll_title, $poll_options, $poll_length);

之後

發表於 : 2004-06-03 16:56
ms821
問題已解決了, 多謝幫忙.

係啦...其實有冇外掛可睇到幾多人買左post, 作者賺左幾多?

發表於 : 2004-06-03 17:10
.::藍色的天空::.
我跟作者說了
我會自行加強再釋出。

發表於 : 2004-06-03 17:15
ms821
.::藍色的天空::. 寫:我跟作者說了
我會自行加強再釋出。
那就好了, 聽候佳音