최신글 출력시 리스트가 병렬? 형태로 나오게 하려면... > 그누4 질문답변

그누4 질문답변

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

최신글 출력시 리스트가 병렬? 형태로 나오게 하려면... 정보

최신글 출력시 리스트가 병렬? 형태로 나오게 하려면...

본문

안녕하세요
팁이나 질문답변 게시판을 찾아봐도 못찾아서 이렇게 질문드려봅니다

보통 최신글 출력하면



게시판제목              more
--------------------------
게시물제목
게시물제목
게시물제목
게시물제목
게시물제목


요런식인데  게시물 출력수를 50개정도 노출할때 세로로 한줄로만 저렇게 가면
화면이 길어지잖아요
아래처럼 한 20개 단위로 끈어서 21번째 리스트는 가로로 출력되게끔 하려면
latest.skin.php파일에서 어떻게 수정해야하나요?????


게시판제목                                                                            more
------------------------------------------------------------------
게시물제목...                게시물제목...              게시물제목...
게시물제목...                게시물제목...              게시물제목...
게시물제목...                게시물제목...              게시물제목...
게시물제목...                게시물제목...              게시물제목...
게시물제목...                게시물제목...              게시물제목...



이건 latest.skin.php 파일인데요...
답변좀 부탁드립니다 ㅠ

<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<div style="text-align:center;">
<div id="Layer0" style="width: 100%; border: 1 solid #cccccc">

<table align="center" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td>
<table cellpadding="0" cellspacing="0" width="100%">

<tr>
<td width="10"></td>
<td>
<table cellpadding="0" cellspacing="0" width="100%" border="0">
<tr height="5"><td colspan="2"></td></tr>
<tr height="28">
   
<td><img src="<?=$latest_skin_path?>/img/sub.gif"> &nbsp;
<a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><font color="#000000"><b><?=$board[bo_subject]?></b></font></a>
</td>
<td align="right"><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><font color="#000000">더보기</font></a></td>
</tr>
</table>
</td>
<td width="10"></td>
</tr>
</table>

</td>
</tr>
<tr>
<td>
<table width=100% border=0 cellpadding=0 cellspacing=0 <?=$options?>>
<tr>
    <td align=center valign=top>
       
        <? for ($i=0; $i<$rows; $i++) { ?>

        <table width=95% border=0 cellpadding=0 cellspacing=0>
        <tr>
            <td height=25 <?if ($i<$rows-1) {?> style="padding:3px 0 0 0; border-bottom:1px dotted #ebebeb;" <?}?> >
                <img src='<?=$latest_skin_path?>/img/latest_icon.gif' align=absmiddle>&nbsp;
                <?
                echo $list[$i]['icon_reply'] . " ";
                echo "<a href='{$list[$i]['href']}'>";
                echo "{$list[$i]['subject']}";
                echo "</a>";

                if ($list[$i]['comment_cnt'])
                    echo " <a href=\"{$list[$i]['comment_href']}\"><span style='font-size:10px; color:#FF6600;'>{$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_file'];
                //echo " " . $list[$i]['icon_link'];
                //echo " " . $list[$i]['icon_hot'];
                echo " " . $list[$i]['icon_secret'];
                ?>
            </td>
        </tr>
        </table>

        <? } ?>
   
    </td>
</tr>

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

( select a.* , ( select sum(co_count) as co_count from g4_qa_choose where mb_id=a.mb_id and bo_table = 'g4_qa' ) as q_co_count from `g4_write_g4_qa` a where wr_parent = '254093' and wr_8 != '' and wr_is_comment = 1 and CONVERT(wr_7, UNSIGNED) >= 5 group by wr_content having max(wr_7) order by CONVERT(wr_7, UNSIGNED) desc limit 3 )

1055 : Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'sir.a.wr_id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by

error file : /15sir/bbs/board.php