정보2006/09/18 09:29
[url]http://blog.hooriza.com/721[/url]를 참조하자.

설치하고 나서 에러코드 0... 제대로 동작하지 않는것이다. -_-;
이것저것 해보다가.. js 인클루드하는 게 제대로 되지 않는듯하여 플러그인의 index.php를 수정했다.

php를 잘 몰라서 다른 소스들 보면서 대충 감으로 때려 잡았는데...
ob_start(); 를 남발해도 별 문제 없는지 모르겠군. :)

여하튼 그렇게 index.php를 수정하고 나니 잘 작동하더라. ^^
아래와 같이 수정했다.

index.php
<?
    function HoorizaCH_AddPostEditorToolbox($target, $mother) {
       
        global $pluginURL, $service;

        ob_start();
?>
<script type="text/javascript" src="<?=$pluginURL?>/scripts/ch_main.js"></script>
<script language="javascript">
    CH.initialize("<?=$pluginURL?>");
</script>
<?
        $target = ob_get_contents();
        ob_end_clean();

        return $target;
    }
?>
 
Posted by jami

TRACKBACK http://www.jami.name/trackback/102 관련글 쓰기

댓글을 달아 주세요