최근 코멘트 있으면 코멘트 숫자 굵게... 정보
최근 코멘트 있으면 코멘트 숫자 굵게...본문
http://sir.co.kr/bbs/board.php?bo_table=g4_tiptech&wr_id=11258
위 팁을 적용했는데...
최근 게시물에서는 잘 되는데 실제로 게시물 목록에서는 안되네요...
그누 최신버전이구요...
팁에 나온 부분만 고쳤는데(4.1) 위에 '당일인 경우 시간으로 표시함' 여기도 고쳐 줘야 하는 건가요?
코드가 약간 달라서 어떻게 바꿔야 할지 ㅠㅠ
// 당일인 경우 시간으로 표시함
$list['datetime'] = substr($list['wr_datetime'],0,10);
$list['datetime2'] = $list['wr_datetime'];
if ($list['datetime'] == $g4['time_ymd'])
$list['datetime2'] = substr($list['datetime2'],11,5);
else
$list['datetime2'] = substr($list['datetime2'],5,5);
// 4.1
$list['last'] = substr($list['wr_last'],0,10);
$list['last2'] = $list['wr_last'];
if ($list['last'] == $g4['time_ymd'])
{
$list['last2'] = substr($list['last2'],11,5);
if($list['comment_cnt']!=null) $list['comment_cnt'] = "<b>".$list['comment_cnt']."</b>";
}
else
{
$list['last2'] = substr($list['last2'],5,5);
}
위 팁을 적용했는데...
최근 게시물에서는 잘 되는데 실제로 게시물 목록에서는 안되네요...
그누 최신버전이구요...
팁에 나온 부분만 고쳤는데(4.1) 위에 '당일인 경우 시간으로 표시함' 여기도 고쳐 줘야 하는 건가요?
코드가 약간 달라서 어떻게 바꿔야 할지 ㅠㅠ
// 당일인 경우 시간으로 표시함
$list['datetime'] = substr($list['wr_datetime'],0,10);
$list['datetime2'] = $list['wr_datetime'];
if ($list['datetime'] == $g4['time_ymd'])
$list['datetime2'] = substr($list['datetime2'],11,5);
else
$list['datetime2'] = substr($list['datetime2'],5,5);
// 4.1
$list['last'] = substr($list['wr_last'],0,10);
$list['last2'] = $list['wr_last'];
if ($list['last'] == $g4['time_ymd'])
{
$list['last2'] = substr($list['last2'],11,5);
if($list['comment_cnt']!=null) $list['comment_cnt'] = "<b>".$list['comment_cnt']."</b>";
}
else
{
$list['last2'] = substr($list['last2'],5,5);
}
Fatal error: Uncaught TypeError: mysqli_fetch_assoc(): Argument #1 ($result) must be of type mysqli_result, null given in /home/kagla/new-sir/old/lib/common.lib.php:2339 Stack trace: #0 /home/kagla/new-sir/old/lib/common.lib.php(2339): mysqli_fetch_assoc() #1 /home/kagla/new-sir/old/skin/board/v16/view.skin.php(795): sql_fetch_array() #2 /home/kagla/new-sir/old/bbs/view.php(403): include_once('...') #3 /home/kagla/new-sir/old/bbs/board.php(300): include_once('...') #4 {main} thrown in /home/kagla/new-sir/old/lib/common.lib.php on line 2339