disqus

“Your API key is not valid on this domain” when calling Disqus from WP7

混江龙づ霸主 提交于 2019-12-23 04:24:16
问题 I'm trying to access the REST Disqus API using the following url: http://disqus.com/api/3.0/threads/listPosts.json ?api_key=myKey &forum=myForum &thread:ident=myIdent When I go to the url in Chrome, it works fine. When I try to download it in WebClient , I have difficulty: WebClient data = new WebClient(); Uri queryUri = new Uri(DisqusQuery + ident, UriKind.Absolute); data.DownloadStringCompleted += new DownloadStringCompletedEventHandler(onDownloadCompleted); data.DownloadStringAsync

How do I get most commented posts in disqus?

流过昼夜 提交于 2019-12-22 17:55:08
问题 I was looking into disqus api for most commented posts but it leads me to nowhere. Can somebody share with me how to get thread/posts ordered comment count? Something like this: listPosts.json?orderby=comment_count&order=desc 回答1: The Disqus API seems not to support this directly. But threads/list has a posts element for each response . 回答2: I was dealing with the same issue and the answer is on: http://disqus.com/api/docs/threads/listPopular/ You can set these parameters...and more... $api

Disqus API - Post -> What does highlight do?

流过昼夜 提交于 2019-12-22 12:43:10
问题 I'm currently comparing commenting systems and try to find out which comment system allows anything close to "editors picks" - that is admins can flag a post/comment as valuable and once a discussion is closed the valuable posts can be fetched via API. So far the only system that seems to do it is disqus though it seems to be not clear because I find no explanations for the following method: http://disqus.com/api/docs/posts/highlight/ Does anybody know what exactly highlighting in disqus

“Cannot read property 'appendChild' of null” with Disqus on Backbone website

有些话、适合烂在心里 提交于 2019-12-22 05:40:49
问题 I have a website on Backbone. When I try to execute Disqus code i get Uncaught TypeError: Cannot read property 'appendChild' of null How can I fix it? Why is this happening? var disqus_shortname = 'mysite'; /* * * DON'T EDIT BELOW THIS LINE * * */ (function() { var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')

Retrieving all comments from Disqus with PHP script

核能气质少年 提交于 2019-12-22 00:55:22
问题 I have a PHP script I found and I am trying to use to get comments from a blog thread, it seems to all be there, but I can't work out why it's not working correctly. I keep getting this error Warning: Invalid argument supplied for foreach() in /Applications/MAMP/htdocs/AP-Get.php on line 33 Here's the script: <?php ini_set('display_errors', 'on'); $key="KEY-OMITTED"; $forum="amandapalmer"; $thread = '1009158814'; $limit = '100'; $endpoint = 'http://disqus.com/api/3.0/threads/listPosts.json

How to Remove Disqus footer from webpage

心不动则不痛 提交于 2019-12-21 03:54:25
问题 I want to remove the footer of Disqus plugin. Disqus works fine, but the footer looking a little iterating. I want to remove the footer so that I can only see the relevant comments. You can see the footer at the end of the image. <div class="well"> <div id="disqus_thread"></div> <script type="text/javascript"> /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */ var disqus_shortname = 'destinationcompk'; // required: replace example with your forum shortname function

Disqus on an amp page inside an amp-iframe

你离开我真会死。 提交于 2019-12-18 16:59:48
问题 I try to implement Disqus on an amp document. My idea is to use an amp-iframe which loads a small document which only contains Disqus. I used this amp frame <amp-iframe width="300" height="300" layout="responsive" sandbox="allow-forms allow-modals allow-popups allow-popups-to-escape-sandbox allow-scripts" resizable frameborder="0" seamless src="/disquss/name-of-blog-post"> <div overflow tabindex=0 role=button aria-label="Read more">more!</div> </amp-iframe> However, chrome throws a content

adding tracking parameter is treating url as differnt

守給你的承諾、 提交于 2019-12-13 06:36:10
问题 I am using Disqus for comments management.But the problem is its treating below link as different http://gpuzzles.com/mind-teasers/logical-age-riddle/ http://gpuzzles.com/mind-teasers/logical-age-riddle/?source=tracking1 as a result comments in one post is not reflecting in other post. Please suggest a solution 回答1: By default Disqus will identify a unique thread by its unique URL in the window. This is a very easy way to integrate, but isn't too reliable as you're seeing. To prevent this you

Difficulty with DisqusSharp

穿精又带淫゛_ 提交于 2019-12-13 06:05:28
问题 I am playing around with DisqusSharp: using System; using System.Collections.Generic; using System.Linq; using System.Text; using WWB.DisqusSharp.Model.DisqusService; using WWB.DisqusSharp.Infrastructure.Hammock; namespace DisqusSharpTest { class Program { static void Main(string[] args) { Console.Out.WriteLine("foo"); Console.In.ReadLine(); IDisqusService disqus = new HammockDisqusService("myKey"); IEnumerable<string> names = disqus.GetThreadList("myForumId", new StartLimitArgs { Start = 0,

Jekyll and Disqus: cannot get disqus to appear on site

99封情书 提交于 2019-12-12 19:13:19
问题 I am using Github Pages' Jekyll integration. I added the Disqus configuration today but Disqus does not appear on my posts. I have added the Disqus script to a file _includes/disqus.html and added {% include disqus.html %} to _layouts/default.html. You may view this work at my https://github.com/shaneoston72/shaneoston72.github.io Thank you for any help you can offer. 回答1: Ok, we'll need to do a few things here: At the end of your file _layouts/default.html what I see is: </div> {% include