에디터 이미지 썸네일 문제 > 그누4 질문답변

그누4 질문답변

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

에디터 이미지 썸네일 문제 정보

에디터 이미지 썸네일 문제

본문

복사해온 소스가 아래처럼 되어있으면 에디터 썸네일을 못만드네요.
<IMG onclick="View('http://naver.com/1.jpg', '100', '100');" src="http://naver.com/1.jpg">

아래처럼이면 썸네일이 잘 만들어집니다.
<IMG src="http://naver.com/1.jpg">

썸네일 소스중 아래에서 에러가 나네요.
$file = '../' . $tmp[0]; // 파일명

파일명에서 인식을 아래처럼하는것 같은데요.
http://naver.com/1.jpg', '100', '100'

아래는 에디터 이미지 썸네일소스중 일부입니다.
} else { //게디터에서 삽입한 이미지 뽑자ㅠㅠ
$edit_img = $list[$i]['wr_content'];
if (eregi("data/cheditor4[^<>]*\.(gif|jp[e]?g|png|bmp)", $edit_img, $tmp)) { // data/cheditor------
$file = '../' . $tmp[0]; // 파일명
$size = getimagesize($file);
if ($size[2] == 1)
$src = imagecreatefromgif($file);
else if ($size[2] == 2)
$src = imagecreatefromjpeg($file);
else if ($size[2] == 3)
$src = imagecreatefrompng($file);


이거 해결할 방법이 없을까요?

썸네일을 못 만드는것도 문제지만
회원들이 저렇게된 소스 이미지를 글쓰기 하면 게시판 리스트가 에러나서 사용을 못하네요.

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