Changeset 1282 for temp


Ignore:
Timestamp:
2007/01/22 12:15:20 (19 years ago)
Author:
kakinaka
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • temp/test-xoops.ec-cube.net/html/modules/newbb/response.php

    r1281 r1282  
    186186while ( $myrow = $xoopsDB->fetchArray($result) ) { 
    187187    $fix = getFixName($myrow['forum_id']); 
     188 
     189    $sql_tmp = "SELECT p.post_id FROM ".$xoopsDB->prefix('bb_posts')." p WHERE p.pid = 0 AND p.topic_id = ".$myrow['topic_id']; 
     190    $result_tmp = $xoopsDB->query($sql_tmp); 
     191    $myrow_tmp = $xoopsDB->fetchArray($result_tmp); 
     192    $myrow['post_id'] = $myrow_tmp['post_id'];   
    188193     
    189194    $xoopsTpl->append('topics', array( 
    190195                                'topic_fix'=>$fix, 
    191                                 'topic_number'=>$myrow['topic_last_post_id'], 
     196                                'topic_number'=>$myrow['post_id'], 
    192197                                'topic_title'=>$myrow['topic_title'], 
    193198                                'topic_response'=>$myrow['topic_response'], 
Note: See TracChangeset for help on using the changeset viewer.