코멘트에 동영상, 플래쉬, 이미지 나오게 하기 정보
코멘트에 동영상, 플래쉬, 이미지 나오게 하기본문
skin/board/게시판스킨/view_comment.skin.php 파일의 코멘트가 출력되는 부분을 아래의 코드로 바꾸세요.
<?
$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;
?>
<?
$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;
?>
추천
4
4
댓글 24개
감사합니다.
감사합니다.
오랬만에 등수안에 들었습니다.
오랬만에 등수안에 들었습니다.
감사합니다....^^
고맙습니다
코멘트가 출력되는 부분 좀 고수님들이 좀 갈챠 주3..~~
좋아 보이는데.. 이것저것 대입하다.. 넋놓은 초보의 마음이..영 애닯군요,,ㅜ.ㅜ.//
좋아 보이는데.. 이것저것 대입하다.. 넋놓은 초보의 마음이..영 애닯군요,,ㅜ.ㅜ.//
감사합니다.
약 45-47번째줄 사이 <!-- 코멘트 출력 -->
<?=$list[$i][content]?>에 덮어 쓰시면 잘됩니다.
사용방법은 관리자님께서 자세하게 설명을...
http://sir.co.kr/bbs/board.php?bo_table=cm_free&wr_id=84326
<?=$list[$i][content]?>에 덮어 쓰시면 잘됩니다.
사용방법은 관리자님께서 자세하게 설명을...
http://sir.co.kr/bbs/board.php?bo_table=cm_free&wr_id=84326
^ 감사합니다.. 좋은 하루 되셔요..^^
감사합니다. 그누4가 점점 풍성해지는거 같아 행복합니다. ^^
볼것없이 스크랩
약 45-47번째줄 사이 <!-- 코멘트 출력 -->
<?=$list[$i][content]?>에 덮어 쓰시면 잘됩니다.
사용방법은 관리자님께서 자세하게 설명을...
http://sir.co.kr/bbs/board.php?bo_table=cm_free&wr_id=84326
<?=$list[$i][content]?>에 덮어 쓰시면 잘됩니다.
사용방법은 관리자님께서 자세하게 설명을...
http://sir.co.kr/bbs/board.php?bo_table=cm_free&wr_id=84326
감사합니다.
감사합니다.
스크랩 합니다.
코멘트
감사합니다~
스크랩하고 확인하겠습니다.^
감사합니다.
감사합니다.
코멘트에 동영상, 플래쉬, 이미지 나오게 하기
ㅁㄴㅇㅁㄴㅇ