그누보드5 disqus
본문
<div id="disqus_thread"></div>
<script>
var disqus_config = function () {
this.page.url = "https://example.com/bbs/board.php?bo_table=notice&wr_id=3";
this.page.identifier = "notice&wr_id=3";
};
(function() { // DON'T EDIT BELOW THIS LINE
var d = document, s = d.createElement('script');
s.src = 'https://example.disqus.com/embed.js';
s.setAttribute('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
disqus 자체의 로딩방식이 this page url 에서 받아들인 댓글을 쏴주는건데!-->
그누보드의 경우에는 저 부분을 html 처럼 하나하나 url 수정할수 없어서 php 로 넣고 싶은데
<?php echo G5_URL ?> 이걸 써도 안되고 g5_url 이걸 써도 안되네요
뭘 this.page.url = "이 부분"; 과 this.page.identifier = "이 부분에"; 넣어야할까요?
!-->답변 2
안녕하세요 php에서는 변수 앞에 $를 붙이셔야합니다.
<?php echo $G5_URL; ?> 이런식으로 다시 시도해보시는게 어떨까요?
위에 disqus 소스가 현재 view.skin.php 인가요? view_comment.skin.php 인가요?
this.page.url = "여기";
this.page.identifier = "여기";
위에 두군데에 정확하게 들어가야 하는 값이 뭔가요?
답변을 작성하시기 전에 로그인 해주세요.