我有一个动态页面,可以加载不同的想法.我正在使用disqus作为评论,但是disqus继续为每个想法加载相同的评论.
这是网站. http://tech-in.org/submitted_ideas/index.php.
这是我的代码
<script type="text/javascript"> /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */ if( typeof DISQUS != 'undefined' ) { DISQUS.reset({ reload: true,config: function () { this.page.identifier = '<?PHP echo $title; ?>'; this.page.url = 'http://tech-in.org/submitted_ideas/idea.PHP?id=<?PHP echo $idea_id; ?>'; } }); } var disqus_shortname = 'techinorg'; // required: replace example with your forum shortname var disqus_identifier = '<?PHP echo $title; ?>'; var disqus_url = 'http://tech-in.org/submitted_ideas/idea.PHP?id=<?PHP echo $idea_id; ?>'; var disqus_title = document.getElementById('disqus_post_title').innerHTML; var disqus_message = document.getElementById('disqus_post_message').innerHTML; /* * * DON'T EDIT BELOW THIS LINE * * */ (function() { var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js'; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); })(); </script>