최신갤러리 출력 이미지 간격

· 19년 전 · 1586 · 6
그누보드 자체에서 최신갤러리로 출력되는 이미지 간격을 조절하는 부분이 있나요?
최신갤러리 스킨을 아무리 봐도 없는것 같아서요.
 
 
<?
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
?>
<!-- <?=$board[bo_subject]?> (<?=$board[bo_table]?>) 최신글 -->
<table width='100%' cellpadding='0' cellspacing='0' border='0' align='center'>
<tr><td align='center'>
<!--
<table width='100%' border='0' cellspacing='0' cellpadding='0' align='center'>
<tr>
    <td width='226'> <img src='<?=$latest_skin_path?>/img/icon.gif' align='absmiddle'> <strong><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><font color=#0EAAB0><?=$board[bo_subject]?></font></a></strong></td>
    <td width='49'><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><img src='<?=$latest_skin_path?>/img/more.gif' border=0></a></td>
  </tr>
  <tr>
   <td colspan=2 height=2 background='<?=$latest_skin_path?>/img/bar1.gif'></td>
  </tr>
</table>
-->
</td></tr>
<tr><td align='center'>
<table width='100%' border='0' cellspacing='0' cellpadding='0' align='center'>
<tr>
<?
for ($i=0; $i<count($list); $i++)
{
    if ($i > 0)
        echo '<td width=20> </td>';
     $title = get_text($list[$i][wr_subject]);
    $content = cut_str(get_text($list[$i][wr_content]), 80);
    $img = "$g4[path]/data/file/$bo_table/".urlencode($list[$i][file][0][file]);
    if (!file_exists($img) || !$list[$i][file][0][file])
        $img = "$latest_skin_path/img/no_image.gif";
    $href = "$g4[bbs_path]/board.php?bo_table=$bo_table";
    echo <<<HEREDOC
    <td width='120' valign='top' align='center'>
        <table width='120' border='0' cellpadding='0' cellspacing='0' align='center'>
 <tr>
            <td width='120' height='5' align='center'></td>
 </tr>
        <tr>
            <td width='100' height='80' align='center'>
  <div style='width:100px;height:80px;border:1px solid #CCCCCC;padding:3px' align='center'>
  <a href='$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id={$list[$i][wr_id]}' onfocus='this.blur();'><img src='{$img}' width='100' height='80' border='0' align='absmiddle' title='$title'></a>
  </div>
     </td>
        </tr>
 <tr>
            <td width='120' height='3' align='center'></td>
 </tr>
 <tr>
            <td width='120' height='20' align='center'><font style='font-family:돋움; font-size:9pt; color:#CCCCCC;'><a href='$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id={$list[$i][wr_id]}' onfocus='this.blur();'>{$list[$i][subject]}</a></font></td>
 </tr>
 </table>
    </td>
HEREDOC;
}
?>
</tr>
<? if (count($list) == 0) { ?>
<tr><td colspan=2 align='center' height=25>게시물이 없습니다.</td></tr>
<? } ?>
</table>
</td></tr>
</table>
 
위의 스킨에서는 이미지 간격을 제어하는 부분이 없어보입니다.
|

댓글 6개

if ($i > 0)
echo '<td width=20> </td>';
저도 그부분 같아서 줄여봤는데 변화가 없어서요... 여백도 지우고 width를 1이나 0을 줘봐도 안되는군요...
정확히 하려는 것이 무엇이죠?
아까 대충봤는데 약간의 변화는 생기는군요. 아마도 전체크기가 너무커서 그런가봐요. ^^; 걍 사이즈 자체를 줄여야겠군요...
이 최신글 스킨 말고 밖에서 불러오는 과정의 셀 크기에 따라서 크기는 변형 됩니다.

테이블의 크기가 100%로 선언이 되어있기 때문에.

따라서 최신글을 불러오는 부분의 셀크기 혹은 테이블의 크기를 변경하시기 바랍니다.
^^; 넵 감사~ 그래야할듯 하네요...
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

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

+
제목 글쓴이 날짜 조회
19년 전 조회 1,538
19년 전 조회 1,486
19년 전 조회 2,062
19년 전 조회 1,575
19년 전 조회 1,341
19년 전 조회 1,631
19년 전 조회 1,545
19년 전 조회 1,622
19년 전 조회 1,282
19년 전 조회 1,587
19년 전 조회 1,559
19년 전 조회 1,724
19년 전 조회 1,439
19년 전 조회 1,537
19년 전 조회 1,546
19년 전 조회 1,609
19년 전 조회 1,345
19년 전 조회 1,567
19년 전 조회 1,539
19년 전 조회 1,539