이를 제로보드 5.0에서 네이버맵, 구글어스 지도를 넣을 수 있게 해보았습니다.


1) commonjszEdit.js를 열어 다음의 코드를 찾는다.

                        case "HTML" :
                                var x = (screen.availWidth - 400)/2;
                                var y = (screen.availHeight - 500)/2;
                                var editor_popup = window.open("./common/tpl/editor_popup/add_html.php", "_editorPopup","top="+y+",left="+x+",width=400,height=500,resizable=no,toolbars=no,scrollbars=no");
                                if(editor_popup) editor_popup.focus();
                                return;
                            break;


그 밑에 하기의 코드를 추가한다.
                        case "MAP" : // <- 이거 추가
                                var x = (screen.availWidth - 800)/2;
                                var y = (screen.availHeight - 600)/2;
                                var editor_popup = window.open( "http://kurapa.com/maps", "_editorPopup","top="+y+",left="+x+",width=800,height=600,resizable=yes,toolbars=no,scrollbars=no");
                                if(editor_popup) editor_popup.focus();
                                return;
                            break;

 

2) commontplrichtext_form.include.tpl를 열어 다음의 코드를 찾는다.
    <img src='{$path}html_add.gif' alt='{$lang->edit->help_add_html}' class="editor_icon" id="zEdit_HTML_{$srl}" />
   
그 밑에 하기의 코드를 추가한다.
    <img src='http://kurapa.com/common/images/edit/add_map.gif' alt='{$lang->edit->help_add_html}' class="editor_icon" id="zEdit_MAP_{$srl}" />


이제 에디터에서 네이버맵과 구글맵을 추가할 수 있는 버튼이 나타날 것입니다.

즐 블로깅 하십셔.


이것저것 다 귀찮으신 분은 하기의 URL에 접속하셔서 스크립트를 HTML로 받으 실 수 있습니다.

http://kurapa.com/maps

제대로 맵 설정하셨으면 아래와 같은 지도를 게시물로 넣으 실 수 있습니다.