최신글 가로배열 질문입니다. > 그누4 질문답변

그누4 질문답변

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

최신글 가로배열 질문입니다. 정보

최신글 가로배열 질문입니다.

본문

이 최신글 스킨을 사용하려고하는데요 적용하면 맨위처럼 한개의 게시판만 길게 쭉나오는데

아래처럼 두개의 게시판을 가로로 불러들이는 방법이 뭔가요?

해당 스킨 소스입니다.





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

<style type="text/css">
<!--
.n2_latest_wrap {position:relative;}
.n2_title_wrap {height:25px; overflow:hidden; background:url(<?=$latest_skin_path?>/img/latest_line.gif) repeat-x 0 12px;}
.n2_title {float:left; padding-top:7px; background:#fff;}
.n2_more {float:right; padding-top:2px;}
.latest_title a:link, .latest_title a:visited, .latest_title a:active, .latest_title a:hover {position:relative; margin-left:8px; margin-right:8px; background:#fff; text-decoration:none; font:bold 12px '굴림', tahoma; color:#555;}
.n2_latest_wrap ul {position:relative; margin:3px 0 10px 12px; padding:0; list-style:none; text-align:left;}
.n2_latest_wrap ul li {height:20px;}
.latest_list a:link, .latest_list a:visited, .latest_list a:active {padding-left:11px; text-decoration:none; font:normal 12px '굴림', tahoma; color:#777; background:url(<?=$latest_skin_path?>/img/icon_li.gif) no-repeat 2px 3px;}
.latest_list a:hover {padding-left:11px; text-decoration:none; font:normal 12px '굴림', tahoma; color:#333; background:url(<?=$latest_skin_path?>/img/icon_li_over.gif) no-repeat 0 3px;}
.latest_list_re a:link, .latest_list_re a:visited, .latest_list_re a:active {padding-left:36px; text-decoration:none; font:normal 12px '굴림', tahoma; color:#777; background:url(<?=$latest_skin_path?>/img/icon_reply.gif) no-repeat 16px 3px;}
.latest_list_re a:hover {padding-left:36px; text-decoration:none; font:normal 12px '굴림', tahoma; color:#333; background:url(<?=$latest_skin_path?>/img/icon_li_over.gif) no-repeat 24px 3px;}
.n2_no_list { text-align:center; color:#767676; }
-->
</style>
<div class="n2_latest_wrap">
  <div class="n2_title_wrap">
    <div class="n2_title"><span class="latest_title" style="position;absolute; background:#fff;"><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><?=$board[bo_subject]?></a></span></div>
    <div class="n2_more"><a href="<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>"><img src="<?=$latest_skin_path?>/img/more.gif" width="45" height="21" border="0" alt="" title=""></a></div>
  </div>

  <ul>
    <? for ($i=5; $i<count($list); $i++) {

?>
    <li>
    <?
    if ($list[$i]['reply'])
        echo "<span class='latest_list_re'><a href='{$list[$i]['href']}'>";
    else
        echo "<span class='latest_list'><a href='{$list[$i]['href']}'>";
    if ($list[$i]['is_notice'])
        echo "{$list[$i]['subject']}";
    else
        echo "{$list[$i]['subject']}";
    echo "</a></span>";

    if ($list[$i]['comment_cnt'])
        echo " <a href=\"{$list[$i]['comment_href']}\"><span style='font-family:돋움; font-size:8pt; color:#777;'>{$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_new'];
    echo " " . $list[$i]['icon_secret'];
    ?>
    </li>
    <? } ?>
    <? if (count($list) == 0) { ?>
    <div class="n2_no_list">게시물이 없습니다.</div>
    <? } ?>
  </ul>
</div>
  • 복사

댓글 전체

<table>
  <tr>
  <td colspan="2">최근게시물  첫번째</td>
  </tr>
  <tr>
    <td>최근게시물 두번째</td>
    <td>최근게시물 세번째</td>
  </tr>
</table>

이렇게 총 3개를 불러낸 거 같은데요.
한번에 2개 게시판을 불러내는 것은 스킨으로 해결되는 문제가 아니라
최근 게시물 함수 자체를 고쳐야 될겁니다.
© SIRSOFT
현재 페이지 제일 처음으로