관리 메뉴

Internet Media Trend

디스커스라는 소셜 답글을 설치관련하여 개발자 분들의 도움이 필요합니다. 본문

카테고리 없음

디스커스라는 소셜 답글을 설치관련하여 개발자 분들의 도움이 필요합니다.

DinoKim 2010. 7. 29. 16:41
티스토리는 아직 지원하지 않아서 직접 수동 설치해야 합니다.
크게 3가지 작업이 있습니다.

1. 페이지에 소스코드 심기
Copy and paste the following embed code anywhere into your page.

<div id="disqus_thread"></div>
<script type="text/javascript">
  /**
    * var disqus_identifier; [Optional but recommended: Define a unique identifier (e.g. post id or slug) for this thread] 
    */
  (function() {
   var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
   dsq.src = 'http://internetmediatrend.disqus.com/embed.js';
   (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
  })();
</script>
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript=internetmediatrend">comments powered by Disqus.</a></noscript>
<a href="http://disqus.com" class="dsq-brlink">blog comments powered by <span class="logo-disqus">Disqus</span></a>


2. 바디 태그 앞에 두번째 소스 심기
Copy the following comment count code and paste it right before the closing </body> tag.

<script type="text/javascript">
var disqus_shortname = 'internetmediatrend';
(function () {
  var s = document.createElement('script'); s.async = true;
  s.src = 'http://disqus.com/forums/internetmediatrend/count.js';
  (document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
}());
</script>


3. 치환자 처리하기
Append #disqus_thread to the end of permalinks. The comment count code will replace the text of these links with the comment count.

For example, you may have a link with this HTML:<a href="http://example.com/my_article.html#disqus_thread">Comments</a>The comment count code will replace the text "Comments" with the number of comments on the pagehttp://example.com/my_article.html


3번째 단계에선 소스코드를 어찌 처리할지 모르겠습니다.
전 개발자가 아니라서 감으로 대충 하고 있는데, 제 수준을 넘어갑니다.
개발자 분들의 도움이 필요합니다.
디스커스라는 곳의 주소입니다.