최신글 세로를 가로로 문의드립니다.


고수님들 완전 초보입니다. 소스좀 보시고 조언좀 부탁드립니다.
배너 최신글 입니다.
현재 세로로 나열이 됩니다.


위의 이미지 대로 가로로 나열하려면 어디를 어떻게 수정해야 됩니까?? / 좀자세하게 부탁드립니다.
아래 latest.skin.php 소스 입니다.
------------------------------
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>

<table width="190" cellpadding=0 cellspacing=0 border=0><tr><td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<!--  <tr><td height=10></td></tr> -->
 <? for ($i=0; $i<count($list); $i++) { ?>
 <tr>
  <td align="center">

        <?  // View
     $table = "02_2";
    $wr_id = $list[$i]['wr_id'];
    $href = "$g4[bbs_path]/link.php?bo_table={$table}&wr_id=$wr_id&no=1";
    sql_query(" update {$g4[write_prefix]}{$table} set wr_3 = wr_3 + 1 where wr_id = '$wr_id' ");             
  echo "<a href='$href' target='_blank'>";
             $image = urlencode($list[$i][file][0][file]); // 첫번째 파일이 이미지라면
             if (preg_match("/\.(gif|jpg|png)$/i", $image)) { ?>
   <img src='<?=$g4[path]?>/data/file/<?=$bo_table?>/<?=$image?>' width='90' border='0'></a><br>
  <? } else { ?>
   <img src='<?=$latest_skin_path?>/img/noimage.gif' border='0'></a><br>
  <? } ?>
           
  </td>
 </tr>
 <tr><td height=6></td></tr>
 <? } ?>
</table>
</td></tr></table>

|

댓글 6개

<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>

<table width="190" cellpadding=0 cellspacing=0 border=0><tr><td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<!-- <tr><td height=10></td></tr> -->
<? for ($i=0; $i<count($list); $i++) { ?>
<tr>
<td align="center">

<? // View
$table = "02_2";
$wr_id = $list[$i]['wr_id'];
$href = "$g4[bbs_path]/link.php?bo_table={$table}&wr_id=$wr_id&no=1";
sql_query(" update {$g4[write_prefix]}{$table} set wr_3 = wr_3 + 1 where wr_id = '$wr_id' ");
echo "<a href='$href' target='_blank'>";
$image = urlencode($list[$i][file][0][file]); // 첫번째 파일이 이미지라면
if (preg_match("/\.(gif|jpg|png)$/i", $image)) { ?>
<img src='<?=$g4[path]?>/data/file/<?=$bo_table?>/<?=$image?>' width='90' border='0'></a>
<? } else { ?>
<img src='<?=$latest_skin_path?>/img/noimage.gif' border='0'></a>
<? } ?>

</td>
</tr>
<tr><td height=6></td></tr>
<? } ?>
</table>
</td></tr></table>
<br>태그는 저두 삭제해 봤거든요..
최신글 불러올때 <?=latest("banner_1", "02_2", 8);?> 하구요...

방법이 없을까요???
설명을 다시달아 놨습니다. 위의 이미지처럼 하려는 것입니다.
큐티와이님 감사니다.
CvCv님 감사합니다.
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
16년 전 조회 1,647
16년 전 조회 944
16년 전 조회 1,774
16년 전 조회 975
16년 전 조회 776
16년 전 조회 3,382
16년 전 조회 1,548
16년 전 조회 1,237
16년 전 조회 1,543
16년 전 조회 1,551
16년 전 조회 1,524
16년 전 조회 982
16년 전 조회 2,069
16년 전 조회 779
16년 전 조회 986
16년 전 조회 758
16년 전 조회 1,079
16년 전 조회 1,921
16년 전 조회 1,575
16년 전 조회 982