[초보]스킨수정 조언 부탁드립니다.

[초보]스킨수정 조언 부탁드립니다.

QA

[초보]스킨수정 조언 부탁드립니다.

답변 1

본문

아래 하단 소스가 모바일 최근게시물 불러오는 소스입니다.
전체 게시판이 아닌 지정된 게시판만 불러올순 없을까요? 2개 이상이 아닌 1개 지정된 게시판으로 불러와도 상관없습니다.
01 <?
02 for($i=0;$i<count($list);$i++){
03  
04  $list_selected=$nbsp=$wr_comment="";
05  
06  $list[$i]['subject'] = conv_subject($list[$i]['wr_subject'], $subject_len, "…");
07  
08  if($wr_id==$list[wr_id]) $list_selected="class='list_selected'";
09  
10  $reply = $list['wr_reply'];
11  
12  if($list[$i][wr_reply]){
13  for ($k=0; $k<strlen($reply); $k++) $nbsp.= '  ';
14  $list[$i]['subject']=$nbsp."[re]".$list['subject'];
15  }
16  
17  if($list[$i][wr_comment]){
18  
19  $cmt=sql_fetch("select wr_datetime from ".$g4[write_prefix].$list[$i][bo_table]." where wr_is_comment=1 and wr_parent='$list[$i][wr_id]' order by wr_datetime desc");
20  
21  if ($cmt[$i]['wr_datetime'] >= date("Y-m-d H:i:s", $g4['server_time'] - 86400))
22  $wr_comment="<span class='list_cmt_cnt_new'>{$list[$i][wr_comment]}</span>";
23  else $wr_comment="<span class='list_cmt_cnt'>{$list[$i][wr_comment]}</span>";
24  }
25  
26  $icon_secret = "";
27  $contents = $list[$i][wr_subject];
28  if (strstr($list['wr_option'], "secret")){
29  $icon_secret = "<img src='$g4[path]/images/icon_secret.gif' align='absmiddle'>";
30  $contents="비밀글입니다.";
31  }
32  
33  $icon_new = "";
34  if ($list[$i]['wr_datetime'] >= date("Y-m-d H:i:s", $g4['server_time'] - ($board['bo_new'] * 3600)))
35  $icon_new = "<img src='$g4[path]/images/icon_new.gif' align='absmiddle'>";
36 ?>
37  
38 <li><a href="<?=$g4[path]?>/view.php?bo_table=<?=$list[$i][bo_table]?>&wr_id=<?=$list[$i][wr_id]?>&page=<?=$page?>">
39  <h3><?=$list[$i][subject]?> <?if($wr_comment){?><span class="ui-li-count"><?=$wr_comment?></span><?}?></h3>
40  <p><?=$list[$i][bo_subject]?> / <strong><?=$list[$i][wr_name]?></strong> / <?=date("Y-m-d",strtotime($list[$i][wr_datetime]))?></p> </a>
41 </li>
42  <?}?>
43 </ul>

이 질문에 댓글 쓰기 :

답변 1

이보다 더 상단의 소스를 수정하셔야 합니다. 
$list 에 바인딩 하는 부분 
답변을 작성하시기 전에 로그인 해주세요.
QA 내용 검색
질문등록
전체 14
© SIRSOFT
현재 페이지 제일 처음으로