게시판스킨/view_comment.skin.php 의 49번째줄 쯤
<!-- 댓글 출력 --> 아래쪽의
<?php echo $comment ?> 이부분을 아래의 코드로 변경
<?
$str = $list[$i][content];
$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);
$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)\".*\<\/a\>\]/i", "<img src='$1://$2.$3' id='target_resize_image[]' onclick='image_window(this);'>", $str);
echo $str;
?>
※중요!! 이미지를 업로드 시키는게 아니라 이미지를 보이게 나타내는 태그입니다.
[https://www.google.co.kr/images/srpr/logo11w.png] 이런식으로 이미지가 업로드된 경로가 필요합니다.
'그누보드 tip' 카테고리의 다른 글
그누보드5 에디터 이미지 업로더 크게 출력하기 (0) | 2018.08.13 |
---|---|
이클립스 Java was started but returned exit code=13 오류 발생시 대처방법 (0) | 2015.07.17 |
그누보드 G4에서 달라진 G5함수와 G5함수 링크 정리 (0) | 2015.07.16 |
게시글 삭제시 썸네일 삭제, 첨부파일 수정시 썸네일 교체하기 (0) | 2015.07.16 |
로그인후 5분동안 사용없으면 로그아웃 하기 (0) | 2015.07.16 |