[問題] 安裝完attach_mod之後,在討論區內無法發表新主題、回

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

版主: 版主管理群

主題已鎖定
vtecwu
星球普通子民
星球普通子民
文章: 1
註冊時間: 2005-10-15 23:29

[問題] 安裝完attach_mod之後,在討論區內無法發表新主題、回

文章 vtecwu »

問題外掛:attach_mod
使用版本:phpBB:2.0.17、attach_mod:2314
已安裝外掛:easymod 021a、cashmod 222

狀況描述:
參考這篇來做安裝
http://phpbb-tw.net/phpbb/viewtopic.php?t=16659
在安裝完之後,進入討論區,點選發表新主題,或是回覆皆會出現\r
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /web/photo/phpbb2/posting.php on line 914

我知道是posting.php中的914行有問題,還希望各位大大能幫忙小弟一下

914行附近的程式碼如下:

//
// Topic type selection
//
$topic_type_toggle = '';
if ( $mode == 'newtopic' || ( $mode == 'editpost' && $post_data['first_post'] ) )
{
$template->assign_block_vars('switch_type_toggle', array());

if( $is_auth['auth_sticky'] )
{
$topic_type_toggle .= '<input type="radio" name="topictype" value="' . POST_STICKY . '"';
if ( $post_data['topic_type'] ']== POST_STICKY || $topic_type == POST_STICKY )
{
$topic_type_toggle .= ' checked="checked"'; <=這是914行
}
$topic_type_toggle .= ' /> ' . $lang['Post_Sticky'] . '&nbsp;&nbsp;';
}

if( $is_auth['auth_announce'] )
{
$topic_type_toggle .= '<input type="radio" name="topictype" value="' . POST_ANNOUNCE . '"';
if ( $post_data['topic_type'] ']== POST_ANNOUNCE || $topic_type == POST_ANNOUNCE )
{
$topic_type_toggle .= ' checked="checked"';
}
$topic_type_toggle .= ' /> ' . $lang['Post_Announcement'] . '&nbsp;&nbsp;';
}

if ( $topic_type_toggle != '' )
{
$topic_type_toggle = $lang['Post_topic_as'] . ': <input type="radio" name="topictype" value="' . POST_NORMAL .'"' . ( ( $post_data['topic_type'] ']== POST_NORMAL || $topic_type == POST_NORMAL ) ? ' checked="checked"' : '' ) . ' /> ' . $lang['Post_Normal'] . '&nbsp;&nbsp;' . $topic_type_toggle;
}
}

$hidden_form_fields = '<input type="hidden" name="mode" value="' . $mode . '" />';

switch( $mode )
{
case 'newtopic':
$page_title = $lang['Post_a_new_topic'];
$hidden_form_fields .= '<input type="hidden" name="' . POST_FORUM_URL . '" value="' . $forum_id . '" />';
break;

case 'reply':
$page_title = $lang['Post_a_reply'];
$hidden_form_fields .= '<input type="hidden" name="' . POST_TOPIC_URL . '" value="' . $topic_id . '" />';
break;

case 'editpost':
$page_title = $lang['Edit_Post'];
$hidden_form_fields .= '<input type="hidden" name="' . POST_POST_URL . '" value="' . $post_id . '" />';
break;
}



在參考了這篇之後
http://phpbb-tw.net/phpbb/viewtopic.php?t=36761
下載了premodified_files,並上傳至網站裡\r
就OK啦\r
謝謝
主題已鎖定

回到「外掛問題討論」