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

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

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

해당 스킨 소스입니다.





<?
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>

첨부파일

|

댓글 2개

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

이렇게 총 3개를 불러낸 거 같은데요.
한번에 2개 게시판을 불러내는 것은 스킨으로 해결되는 문제가 아니라
최근 게시물 함수 자체를 고쳐야 될겁니다.
감사합니다 잘 적용했습니다 사랑해요
댓글을 작성하시려면 로그인이 필요합니다. 로그인

그누4 질문답변

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

+
제목 글쓴이 날짜 조회
13년 전 조회 8,664
13년 전 조회 1,571
13년 전 조회 806
13년 전 조회 955
13년 전 조회 1,159
13년 전 조회 890
13년 전 조회 3,349
13년 전 조회 1,592
13년 전 조회 1,413
13년 전 조회 1,002
13년 전 조회 2,789
13년 전 조회 3,767
13년 전 조회 824
13년 전 조회 1,528
13년 전 조회 582
13년 전 조회 1,021
13년 전 조회 1,007
13년 전 조회 1,607
13년 전 조회 761
13년 전 조회 1,938
🐛 버그신고