게시판 내용 옮기기했더니 최신글이 뒤죽박죽이네요... 정보
게시판 내용 옮기기했더니 최신글이 뒤죽박죽이네요...본문
게시판 2개를 합쳤습니다.
그랬더니 최근에 옮겨온 게시글들이 메인화면에 출력됩니다.
상관없이 글 작성일자에 따라서 됐으면 좋겠는데
어떻게 해야하나요???
게시판 자체에서는 정상적으로 출력됩니다.
문제는 메인에서 최근갤러리 스킨으로 출력시에만 최근에 옮겨온 글들이 나옵니다 ㅜㅜ
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<style>
.latset_main_wrap {width:236px; }
</style>
<div class='latest_main_wrap'>
<div style='cursor:pointer;' onclick="javascript:location.href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'">
<div class='clear'></div>
</div>
<? for ($i=0; $i<6; $i++) { ?>
<div style='float:left; width:100%;padding:3px 0;' title='by. <?=$list[$i]['wr_name']?>'>
<div style='float:left;'>
<?
if($list[$i]['subject']) {
echo $list[$i]['icon_reply'] . " ";
echo "<a href='{$list[$i]['href']}'>";
if ($list[$i]['is_notice'])
echo "<font style='font-family:돋움; font-size:9pt; color:#2C88B9;'><strong>{$list[$i]['subject']}</strong></font>";
else
echo "<font style='font-family:돋움; font-size:9pt; color:#6A6A6A;'>{$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; color:#9A9A9A;'>{$list[$i]['comment_cnt']}</span></a>";
echo " " . $list[$i]['icon_new'];
// if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
// if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }
} else {
echo "게시글이 없습니다.";
}
?>
</div>
<div style='float:right;'><?=$list[$i]['datetime2']?>
</div>
</div>
<? } ?>
<div class='clear'></div>
</div>
여기서 뭘 수정해야할까요....
그랬더니 최근에 옮겨온 게시글들이 메인화면에 출력됩니다.
상관없이 글 작성일자에 따라서 됐으면 좋겠는데
어떻게 해야하나요???
게시판 자체에서는 정상적으로 출력됩니다.
문제는 메인에서 최근갤러리 스킨으로 출력시에만 최근에 옮겨온 글들이 나옵니다 ㅜㅜ
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<style>
.latset_main_wrap {width:236px; }
</style>
<div class='latest_main_wrap'>
<div style='cursor:pointer;' onclick="javascript:location.href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'">
<div class='clear'></div>
</div>
<? for ($i=0; $i<6; $i++) { ?>
<div style='float:left; width:100%;padding:3px 0;' title='by. <?=$list[$i]['wr_name']?>'>
<div style='float:left;'>
<?
if($list[$i]['subject']) {
echo $list[$i]['icon_reply'] . " ";
echo "<a href='{$list[$i]['href']}'>";
if ($list[$i]['is_notice'])
echo "<font style='font-family:돋움; font-size:9pt; color:#2C88B9;'><strong>{$list[$i]['subject']}</strong></font>";
else
echo "<font style='font-family:돋움; font-size:9pt; color:#6A6A6A;'>{$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; color:#9A9A9A;'>{$list[$i]['comment_cnt']}</span></a>";
echo " " . $list[$i]['icon_new'];
// if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
// if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }
} else {
echo "게시글이 없습니다.";
}
?>
</div>
<div style='float:right;'><?=$list[$i]['datetime2']?>
</div>
</div>
<? } ?>
<div class='clear'></div>
</div>
여기서 뭘 수정해야할까요....
댓글 전체
게시판 관리자에서 카운트조정 해보세요~
체크하고 확인누르란 말씀이신가요? ㅜㅜ그래도 메인에는 최근글이 아니고 최근에 옮겨온 글들이 나옵니다.....
lib/latest.lib.php 파일 22번째라인 datetime desc 으로 수정하고 나니 정상적으로 해결했네요 ^^