From 1c899989026786ee88d718da9df7cc199f7232e6 Mon Sep 17 00:00:00 2001 From: sparky4 Date: Thu, 17 Mar 2011 02:05:10 -0500 Subject: [PATCH] modified: lib/lib_common.php modified: yotsubanome.php --- lib/lib_common.php | 4 ++-- yotsubanome.php | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/lib_common.php b/lib/lib_common.php index c2cb663..895cb76 100755 --- a/lib/lib_common.php +++ b/lib/lib_common.php @@ -98,14 +98,14 @@ function form(&$dat, $resno, $iscollapse=true, $retURL=PHP_SELF, $name='', $mail '{$ADDITION_INFO}' => $ADDITION_INFO, '{$FORM_NOTICE_NOSCRIPT}' => _T('form_notice_noscript')); $PMS->useModuleMethods('PostForm', array(&$pte_vals['{$FORM_EXTRA_COLUMN}'])); // "PostForm" Hook Point - if(!$isedit && (RESIMG || !$resno)){ + /*if(!$isedit && (RESIMG || !$resno)){ $pte_vals += array('{$FORM_ATTECHMENT_TEXT}' => _T('form_attechment'), '{$FORM_ATTECHMENT_FIELD}' => ''); if(!NO_TEXTONLY || NO_TEXTONLY == 1){ $pte_vals += array('{$FORM_NOATTECHMENT_TEXT}' => _T('form_noattechment'), '{$FORM_NOATTECHMENT_FIELD}' => ''); } - } + }*/ if(OPTION){ //++++ more options will be added on later $pte_vals['{$FORM_OPTION1_TEXT}'] = _T('form_option1'); if(USE_UPSERIES){ // 啟動連貼機能 diff --git a/yotsubanome.php b/yotsubanome.php index 43f8add..cec6ae7 100755 --- a/yotsubanome.php +++ b/yotsubanome.php @@ -197,7 +197,7 @@ function updatelog($resno=0,$page_num=-1,$single_page=false){ for($page = $page_start; $page <= $page_end; $page++){ $dat = ''; $pte_vals['{$THREADS}'] = ''; head($dat, $resno); - form($dat, $resno); + //temperarly moved form($dat, $resno); // 輸出討論串內容 for($i = 0; $i < $inner_for_count; $i++){ // 取出討論串編號 @@ -218,6 +218,7 @@ function updatelog($resno=0,$page_num=-1,$single_page=false){ $posts_img = $PIO->fetchPosts($tree); // o++ $pte_vals['{$THREADS}'] .= arrangeThread($PTE, $tree, $tree_cut, $posts, $hiddenReply, $resno, $arr_kill, $arr_old, $kill_sensor, $old_sensor, true, $adminMode, $hiddenImage, $hiddenImagP, $hiddenImagRP, $posts_img); // 交給這個函式去搞討論串印出 } + form($dat, $resno); //you can delete this line and move it back if you want to $pte_vals['{$PAGENAV}'] = '
'; // 換頁判斷 -- 2.39.5