rich content 적용 오류
1,647
2015.06.12 20:08
짧은주소
- - 짧은주소: http://v2.eyoom.net/bbs/?t=11E 주소복사
본문
http://sir.co.kr/bbs/board.php?bo_table=g5_tip&wr_id=2837
두번째 방법을 이윰에 적용해보았는데...
'off'라는 글자가 출력되네요.
뭔가 빠져서 그런 듯 한데... 모르겠네요. 까막눈이라...;;;
eyoom/core/board/view.skin.php
'rich content' 적용을 위해 수정해보았습니다.
// 파일 출력 $v_img_count = count($view['file']); if($v_img_count) { $file_conts = "<div id=\"bo_v_img\">\n"; for ($i=0; $i<=count($view['file']); $i++) { if ($view['file'][$i]['view']) { //echo $view['file'][$i]['view']; $file_conts .= get_view_thumbnail($view['file'][$i]['view']); } } $file_conts .= "</div>\n"; }를...
// 파일 출력 for ($i=0; $i<=count($view[file]); $i++) { if ($view[file][$i][view]) { $image_file="{$view[file][$i][view]}"; //<P>태그 삭제 $image_pos="<그림".($i+1).">"; $image_pos2="<그림".($i+1).">"; //추가 //수정 if( strstr($view[content],$image_pos) || strstr($view[content],$image_pos2) ){ $pattern="/($image_pos|$image_pos2)/"; $view[content]=preg_replace($pattern,$image_file,$view[content]); } else echo $view[file][$i][view] . "<p>"; } }로 수정
0
좋아요!

레벨 11
경험치 12,674
Progress Bar 77%
- 가입일 : 2015-02-07 19:40:40
- 서명 : 영원한 초보!!!
Home Page : internationale.kr
Eyoom Builder Test : liberta.kr - 자기소개 : SIR의 존재감 없는 회원입니다~^^
Home Page : internationale.kr
Eyoom Builder Test : liberta.kr - 자기소개 : SIR의 존재감 없는 회원입니다~^^
댓글목록
fm25님의 댓글
http://www.liberta.kr/bbs/board.php?bo_table=free&wr_id=4
그리고, 리치 컨덴츠로 불러오지않은 첨부 이미지는 본문 위로 올라가버리는 오류가 있습니다.
에디터 자체 이미지넣기로 넣은 이미지는 본문에 남습니다.
fm25님의 댓글
관심을 기울여 주시는 분이 없어서... 현재 rich content 적용은 취소한 상태입니다.