인기글 출력모양을 바꾸고 싶은데요 > 그누4 질문답변

그누4 질문답변

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

인기글 출력모양을 바꾸고 싶은데요 정보

인기글 출력모양을 바꾸고 싶은데요

본문

http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=76978&sca=&sfl=wr_subject%7C%7Cwr_content&stx=%EC%9D%B8%EA%B8%B0%EA%B8%80

이 스킨을 사용중인데

10개 전부 아래로 나오는게 아니라

5개씩 두줄로 나타내고 싶은데 어느 부분을 수정해야하는지요

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

if ($izen_sort == 'wr_hit')
{
$sub_title = "주간 인기글";
}

?>

<table width=100% cellpadding=0 cellspacing=0 >
<br>
<tr><td height="2"></td></tr>
<tr><td height="1" bgcolor="#e1e1e1"></td></tr>
<tr><td height="5"></td></tr>

<? for ($i=0; $i<count($list); $i++) { ?>
<tr>
    <td colspan=4 align=center >
        <table width=95% valign=top border=0 cellpadding=0 cellspacing=0>
        <tr>
            <td height=22><img src="<?=$latest_skin_path?>/img/btn<?=$titles?>_<?=$i+1?>.gif" width="12" height="11" align="absmiddle">&nbsp;
            <?
            echo $list[$i]['icon_reply'] . " ";
            echo "<a href='{$list[$i]['href']}' target=_parent>";
            if ($list[$i]['is_notice'])
                echo "<font style='font-family:tahoma; font-size:8pt; '>{$list[$i]['subject']}</font>";
            else
                echo "<font style='font-family:tahoma; font-size:8pt; '>{$list[$i]['subject']}</font>";
            echo "</a>";

            //if ($list[$i]['comment_cnt']) //
                //echo " <a href=\"{$list[$i]['comment_href']}\"><span style='font-family:돋움; font-size:8pt; '>{$list[$i]['comment_cnt']}</span></a>";//

            // if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
            // if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }
 echo " " . $list[$i][icon_secret];
        echo $nobr_end;
        ?>
            </td></tr>
       
        </table>
</td>
</tr>

<? } ?>

<? if (count($list) == 0) { ?><tr><td colspan=4 align=center height=50>게시물이 없습니다.</a></td></tr><? } ?>

<tr><td height="2"></td></tr>
<tr><td height="1" bgcolor="#e1e1e1"></td></tr>
<tr><td height="5"></td></tr>

</table>


스킨파일입니다.
  • 복사

댓글 전체

<? echo izen_group('best10', '', wr_hit, 10, 34, 7); ?>

이걸

<? echo izen_group('best10', '', wr_hit, 5, 34, 7); ?>
<? echo izen_group('best10', '', wr_hit, 5, 34, 7); ?>

이렇게 두번으로 나눠서 불러오시면 됩니다.
아!! 그렇겠네요. ㅋㅋㅋㅋ

테이블이라 css 적용이 용의하지 않아서 서버쪽에서 해결보실 수 있도록 답을 드릴려고 한
건데..


html 조금 수정하셔서 테이블을 div 로 바꾸신 후,

nth-child 로 찝으셔서 5개씩 두줄로 나타내셔야 겠네요. (조금 번거롭죠?)
© SIRSOFT
현재 페이지 제일 처음으로