아몬2

코멘트 부분에 지에디터 적용시 링크 새창으로 뜨게하기?

· 2009-12-31 (목) 00:31:52 · 1603
배추스킨 쓰는데요....
코멘트 쓰기 부분에 지에디터를 사용할때 글내용에 포함된 주소를 누르면 기존창에 뜨네요...
지에디터를 안쓰면 새창으로 뜹니다.

지에디터 사용시에도 새창으로 뜨게 하려면 어디를 손봐야 할까요?


                <!-- 코멘트 출력 -->
                <div id=view_<?=$list[$i][wr_id]?>>
                <?
                $str = $list[$i][content];
                if (strstr($list[$i][wr_option], "secret")) {
                    $str = "<span class='mw_basic_comment_secret'>* $str</span>";
                }
                $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)\"\s*[^\>]*\>[^\s]*\<\/a\>\]/i", "<img src='$1://$2.$3' id='target_resize_image[]' onclick='image_window(this);'>", $str);
                echo $str;
                ?>
                </div>
                <? if ($list[$i][trackback]) { echo "<p>".$list[$i][trackback]."</p>"; } ?>
                <? if ($mw_basic[cf_source_copy]) { // 출처 자동 복사 ?>
                <? $copy_url = set_http("{$g4[url]}/{$g4[bbs]}/board.php?bo_table={$bo_table}&wr_id={$wr_id}#c_{$list[$i][wr_id]}"); ?>
                <script type="text/javascript">
                AutoSourcing.setString(<?=$list[$i][wr_id]?> ,"<?=$config[cf_title]?>", "<?=$list[$i][wr_name]?>", "<?=$copy_url?>");
                </script>
                <? } ?>


이부분에서 고쳐야 하나요?
댓글을 작성하시려면 로그인이 필요합니다.

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

+
제목 글쓴이 날짜 조회
09-12-31 조회 1,079
09-12-31 조회 1,609
09-12-31 조회 1,169
09-12-31 조회 1,049
09-12-31 조회 2,346
09-12-31 조회 972
09-12-31 조회 1,951
09-12-31 조회 1,029
09-12-31 조회 1,307
09-12-31 조회 1,035
09-12-31 조회 1,044
09-12-31 조회 1,810
09-12-31 조회 1,604
09-12-30 조회 1,591
09-12-30 조회 1,774
09-12-30 조회 1,536
09-12-30 조회 1,603
09-12-30 조회 2,429
09-12-30 조회 1,071
09-12-30 조회 1,042