별명(닉네임) 변경시 기존의 작성글에서도 전부 변경.. > 그누4 질문답변

그누4 질문답변

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

별명(닉네임) 변경시 기존의 작성글에서도 전부 변경.. 정보

별명(닉네임) 변경시 기존의 작성글에서도 전부 변경..

본문

팁 게시판에서 찾은건데요.
http://sir.co.kr/bbs/board.php?bo_table=g4_tiptech&wr_id=7308
관리자페이지에서 변경할 경우는 해당이 안되더라고요.

관리자페이지에서 변경해도 전체게시물의 닉네임이 한번에 싹 바뀌는 방법 없나요?
아래 소스를 찾았는데 실행이 안되네요.

admin_new_mb_name.php
<?
$admin_new_mb_name = addslashes("멋진관리자"); // 따옴표 안을 마음대로 설정
$admin_mb_id = "admin";
include_once("./_common.php");
$query = sql_query("select bo_table from `$g4[board_table]`");
while($row = sql_fetch_array($query)) {
  sql_query("update `{$g4[write_prefix]}{$row[bo_table]}` set wr_name='$admin_new_mb_name' where mb_id='$admin_mb_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 = '226098' 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