[問題]Attachment Mod 2.3.10-已解決
發表於 : 2004-11-16 23:47
問題外掛:安裝attachment mod 2.3.10後無法預覽\r
參考連結:無
使用版本:phpBB 2.0.10
網站位置: http://www.pentaxfans.net/board/
狀況描述:
各位前輩,小弟今天在自己的網站上加了attachment mod 2.3.10後,很順利的一次就成功了,但後來確在發表文章時(不管是普通文章或上傳檔案時),只要按下預覽後,就出現下面這行字:
Fatal error: Call to undefined function: preview_attachment() in /home/pentaxf/public_html/board/posting.php on line 704
而我的posting.php中的第704行內容如下:(貼出上下各五行)
[php]<?php
if( $attach_sig && $user_sig != '' )
{
$preview_message = $preview_message . '<br /><br />_________________<br />' . $user_sig;
}
$preview_message = str_replace("
", '<br />', $preview_message);
$template->set_filenames(array(
'preview' => 'posting_preview.tpl')
);
$attachment_mod['posting']->preview_attachment();<--這行就是第704行
$template->assign_vars(array(
'TOPIC_TITLE' => $preview_subject,
'POST_SUBJECT' => $preview_subject,
'POSTER_NAME' => $preview_username,
?>[/php]
請知道的前輩及高手們幫忙解決,我實在是個門外漢,只會照著說明去做而已,根本不是完全懂這些程式碼的意義!感恩!
參考連結:無
使用版本:phpBB 2.0.10
網站位置: http://www.pentaxfans.net/board/
狀況描述:
各位前輩,小弟今天在自己的網站上加了attachment mod 2.3.10後,很順利的一次就成功了,但後來確在發表文章時(不管是普通文章或上傳檔案時),只要按下預覽後,就出現下面這行字:
Fatal error: Call to undefined function: preview_attachment() in /home/pentaxf/public_html/board/posting.php on line 704
而我的posting.php中的第704行內容如下:(貼出上下各五行)
[php]<?php
if( $attach_sig && $user_sig != '' )
{
$preview_message = $preview_message . '<br /><br />_________________<br />' . $user_sig;
}
$preview_message = str_replace("
", '<br />', $preview_message);
$template->set_filenames(array(
'preview' => 'posting_preview.tpl')
);
$attachment_mod['posting']->preview_attachment();<--這行就是第704行
$template->assign_vars(array(
'TOPIC_TITLE' => $preview_subject,
'POST_SUBJECT' => $preview_subject,
'POSTER_NAME' => $preview_username,
?>[/php]
請知道的前輩及高手們幫忙解決,我實在是個門外漢,只會照著說明去做而已,根本不是完全懂這些程式碼的意義!感恩!