답댓글 표기 ... 도와주세요~~ > 그누4 질문답변

그누4 질문답변

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

답댓글 표기 ... 도와주세요~~ 정보

답댓글 표기 ... 도와주세요~~

본문

몇일전 질문올렸는데 해답을 못찾았어요 ㅠㅠ

A 작성자 2013-11-12
안녕하세요

 B 작성자 2013-11-13
  A 네 안녕하세요

이런식으로 a댓글에 b가 답댓글을 했을때 답댓글 내용 앞에 누구의 댓글을 작성한지 표기하려면

어찌 해야할지 ...

if($list[wr_comment_reply]) $cmt_replay="style=\"margin-left:".(5*$reply_size)."px;\"";

이부분이 댓글의 답댓글일때 들여쓰기부분이던데 여기서 손대면 될까요...

아래는 코멘트 내용 부분입니다

<div class="cmt_centent"><?php echo $comment_id?>
<?
if (strstr($list[wr_option], "secret")) echo "<span style='color:#ff6600;'>*</span> ";
                $str = $list[content];
                if (strstr($list[wr_option], "secret"))
                    $str = "<span class='small' style='color:#ff6600;'>$str</span>";

                $str = preg_replace("/\[\<a\s.*href\=\"(http|https|ftp|mms)\:\/\/([^[:space:]]+)\.(mp3|wma|wmv|asf|asx|mpg|mpeg)\".*\<\/a\>\]/i", "<script>doc_write(obj_movie('$1://$2.$3'));</script>", $str);
                // FLASH XSS 공격에 의해 주석 처리 - 110406
                //$str = preg_replace("/\[\<a\s.*href\=\"(http|https|ftp)\:\/\/([^[:space:]]+)\.(swf)\".*\<\/a\>\]/i", "<script>doc_write(flash_movie('$1://$2.$3'));</script>", $str);
                $str = preg_replace("/\[\<a\s*href\=\"(http|https|ftp)\:\/\/([^[:space:]]+)\.(gif|png|jpg|jpeg|bmp)\"\s*[^\>]*\>[^\s]*\<\/a\>\]/i", "<img src='$1://$2.$3' id='target_resize_image[]' onclick='image_window(this);' border='0'>", $str);
                echo $str;
?>
</div>

내용 앞에다 <?php echo $comment_id?> 넣으면 다 숫자만 들어가고 ㅠㅠ
  • 복사

( 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 = '281200' 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