겔러리 최근목록 출력관해 다시질문좀드릴게요 ㅠㅠ 흑 > 그누4 질문답변

그누4 질문답변

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

겔러리 최근목록 출력관해 다시질문좀드릴게요 ㅠㅠ 흑 정보

겔러리 최근목록 출력관해 다시질문좀드릴게요 ㅠㅠ 흑

본문

겔러리 최근목록 뽑기인데요... 가로배열5개는 잘나오는데요
이미지스샷처럼 할려는데요...
세로배열 10개이미지가 않나와서요 ㅠㅠ 고수님들 부탁드립니다.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
바로아래 소스처럼 해봤는데요.. 1x6개로 나오더라구요.ㅠㅠ
어떻게 방법이 없을까요..

if ($i > 0)
        echo '<td width=20>&nbsp;</td>';

===>

    if ($i > 0)
        echo '</tr><tr>';
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
아래 소스좀 봐주세요..모가 잘못된건지 모르겠네요..@,.@a
=============================================================

<?=latest("gel_list","gel",5,180,120,2);?>

==============================================================

아래는 그누보드 스킨 latest 폴더안에있는거구요.. 아래 소스를 어떻게 봐꾸어야
스샷처럼 나올까요 ㅠㅠ 흑흑.. 부탁드립니다.


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

<table width='100%' border='0' cellspacing='0' cellpadding='0'>
<!-- <tr bgcolor="#f8f8f8">
<td width='16'></td>
<td width='100%' height="20" align="left" valign="bottom" style="padding-top:5"> <a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><b><?=$board[bo_subject]?></a></b> </a></td><td align="right">
<a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><img src='<?=$latest_skin_path?>/img/icon_more.gif' border=0></a></td>
</tr>
 --> <tr>
  <td>
        <table align='left' width=300 border=0>
        <tr>

<?
for ($i=0; $i<count($list); $i++)
{
    if ($i > 0)
        echo '<td width=20>&nbsp;</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]/link.php?bo_table=$bo_table&wr_id={$list[$i][wr_id]}&no=1";

    echo <<<HEREDOC
    <td width='120' valign='top' align='center'>
<!-- 겉테이블 시작-->
<table align='center' cellpadding='0' cellspacing='0' width='162' height='120'>
    <tr>
        <td width='6' rowspan='4' valign='top'>
            <p align='center'><font size='2'><img src='/images/n_list_left.jpg' width='6' height='114' border='0'></font></p>
        </td>
        <td width='150' valign='top'>
            <p align='center'><img src='/images/n_list_top.jpg' width='150' height='6' border='0'></p>
        </td>
        <td width='6' rowspan='4' valign='top'>
            <p align='left'><font size='2'><img src='/images/n_list_right.jpg' width='6' height='114' border='0'></font></p>
        </td>
    </tr>
    <tr>
        <td width='150' height='90' valign='top'>
            <p><!-- 150x90이미지 삽입-->
<a href='$g4[bbs_path]/link.php?bo_table=$bo_table&wr_id={$list[$i][wr_id]}&no=1' target='_new'><img src='{$img}' width='150' height='90' border='0' align='absmiddle' title='$title'></a>
<!-- 150x90이미지 삽입끝--></p>
        </td>
    </tr>
    <tr>
        <td width='150' valign='top'>
            <p align='center'><img src='/images/n_list_bottom.jpg' width='150' height='18' border='0'></p>
        </td>
    </tr>
    <tr>
        <td width='150' valign='top'>
            <p align='center'><!-- 제목 삽입-->
<p align='center'><!-- <a style="cursor:hand" onclick="javascript:window.open('$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id={$list[$i][wr_id]}','winBoard','left=50, top=50, width=800, height=600, scrollbars=1')">--><font color='#000000'>{$list[$i][subject]}</font></a></p>
<!-- 제목 삽입끝--></p>
        </td>
    </tr>
</table>
<!-- 겉테이블 끝-->
    </td>
HEREDOC;
}
?>

</tr>
        </table>

<? if (count($list) == 0) { ?>게시물이 없습니다.<? } ?>

</td>
</tr>
</table>
  • 복사

댓글 전체

// 최신글 추출
function latest($skin_dir="", $bo_table, $rows=10, $subject_len=40, $options="")

그림을 보니까 rows에는 9를 쓰시면 되구요.

if ($i > 0)
        echo '<td width=20>&nbsp;</td>';

===>

    if ($i%3 ==0 )
        echo '</tr><tr>';
감사합니다. 스텝님 말씀이 무슨말인지 이해 못했거든요... 지금 이해됐네요..

lib폴더에 latest.lib.php 안에있는 내용을 수정하라는뜻을 에효..

if ($i%3 ==0 )  <-- 이것은 가로줄 나타나는 거네요... 감사합니다 야호...^^
© SIRSOFT
현재 페이지 제일 처음으로