nhn의 오픈소스(autosourcing.js)를 이용한 글 복사 소스인데
그누5에 적용할땐 어디에 적용해야하나요?
db도 수정해야하는건지.
Copy
<body><script type="text/javascript" src="해당폴더/autosourcing.js"></script> // 링크는 맞게 바꿔야겠지요?<style>DIV.autosourcing-stub { display:none }DIV.autosourcing-stub-extra { position:absolute; opacity:0 }</style><? $acc_url = "이동 url 주소"?> // php 를 사용해서 php 변수 선언되는 부분입니다 이부분도 맞게 교체해주시면 됩니다.<script type="text/javascript">AutoSourcing.setTemplate("<br>출처 : <a href='<?=$acc_url?>' target='_blank'>링크</a><br>기사링크 : <a href='<?=$acc_url?>' target='_blank'><?=$acc_url?></a>");AutoSourcing.setString("<?=$id?>" ,"", "", "");AutoSourcing.init( 'post_%id%' , true);</script><div id='post_<?=$id?>'> 복사시 붙이고 싶은 부분</div></body>
|
답변 1개
채택된 답변
+20 포인트
대략적인 구조를 보았을때
사용하는 게시판 스킨의 view.skin.php 파일을 수정하면 될 듯 합니다.
답변을 작성하려면 로그인이 필요합니다.