它在disqus中的不同页面上显示相同的注释

时间:2016-04-19 11:04:45

标签: javascript php disqus

我正在为我的网站制作论坛部分,根据用户提出的问题加载disqus评论。我尝试过设置页面图块,页面网址,页面标识符。但即便如此,它在所有页面上都显示相同的评论。不知道我哪里出错了? 这是我的代码

<script>
    var disqus_config = function () {
        this.page.url = "http://localhost:3000/forums_details.php?que=<?php echo $_GET['que']; ?>";
        this.page.identifier = "<?php echo $_GET['que']; ?>";
    };
    (function() { // DON'T EDIT BELOW THIS LINE
        var d = document, s = d.createElement('script');
        s.src = '//onlinestudymaterial.disqus.com/embed.js';
        s.setAttribute('data-timestamp', +new Date());
        (d.head || d.body).appendChild(s);
     })();
</script>

0 个答案:

没有答案
相关问题