disqus

How can I add Disqus commenting to my Gollum wiki?

自古美人都是妖i 提交于 2019-12-12 13:26:03
问题 I would like to use my Gollum Wiki (using aws & github) for a book project. I want to give each chapter its own page and let a circle of friends (and anyone) leave comments. I was expecting there to be a dozen how to pages for this already out there. But I can't find anything. I realize this usually means what I'm trying to do is a bad idea or can more easily be accomplished some other way. 回答1: The way I added Disqus comments was to simply add a mustache partial template ( {{>comments}} )

How to get Disqus comment count for a page using Disqus PHP API?

梦想与她 提交于 2019-12-12 04:37:31
问题 How can we get Disqus comment count for a specific page using Disqus PHP? require_once('disqusapi/disqusapi.php'); $disqus = new DisqusAPI('sec_key'); Above snippet can be used to initialize the API object. What method to be called if a I have URL of a page in my website? All my search leads to JavaScript samples to get comment count. Thanks. 回答1: Just access any of the methods provided by the API: require_once('disqusapi/disqusapi.php'); $disqus = new DisqusAPI('sec_key'); $page_with

Disqus - subscribing author

孤人 提交于 2019-12-11 15:27:58
问题 How is it possible to subscribe the page/post/article author to new comments? 回答1: This blog post shows a pretty simple sollution: http://wpdailybits.com/blog/notify-post-author-for-new-comment-disqus/45 Making use of the wp_notify_author function: http://codex.wordpress.org/Function_Reference/wp_notify_postauthor That is if you are using WordPress of course. 回答2: In case the question was in the context of WordPress + Disqus: It's possible to solve the issue as described above by "hacking"

Disqus in Angular 2 application: Showing same discussion.

試著忘記壹切 提交于 2019-12-11 13:35:48
问题 I have Angular 2 app in there I use ng2-awesome-disqus component. On the page I have several items and for each item I have one discussion component : <disqus [shortname]="shortname" [identifier]="identifier"></disqus> shortname is same for each item identifier is unique for each item I would expect unique discussion for each item, but there are all the same. 回答1: By default, disqus only allows a single widget per page. I think (actually, I'm sure), your module can only deal with one disqus

How to change text color in Disqus comment textarea?

ε祈祈猫儿з 提交于 2019-12-11 03:41:11
问题 I'm using Disqus external comment system with Wordpress (as a WP plugin) and I'm trying to customize it with my custom CSS. Everything works great, but I have problems with replacing the default text color in the form textarea. I tried it with: #dsq-content .dsq-textarea .dsq-textarea-wrapper, #dsq-content .dsq-input-wrapper { color: red !important } but I was not successful, even when I targetet just "textarea" it not worked. It seems that javascript is playing together because there are 2

Disqus API create post error

被刻印的时光 ゝ 提交于 2019-12-10 23:57:28
问题 I have a problem using the Disqus API to try to comment on a publication made ​​in tumblr. This is the code: <?php ini_set('display_errors', 'on'); $thread="XXXXXXXXX"; // e.g., 455718495 — you'll need to also create a $forum and pass that if you know only the thread's URL or identifier rather than the ID $api="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"; // Generate one at http://disqus.com/api/applications/ -- Secret key is required for anonymous comment posting

How to enable only login from my site and disable other social login options in DISQUS? [closed]

好久不见. 提交于 2019-12-10 16:59:49
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed last year . I have enabled DISQUS SSO for my site. But I want to enable only login from my site and disable other social login options in DISQUS login dropdown options? 回答1: Elements that can't be edited or removed Disqus logo Social login buttons (Facebook, Twitter, Google, Disqus) Community

Disqus Loading the same comments for dynamic pages

邮差的信 提交于 2019-12-10 13:06:47
问题 I have a dynamic page that loads different ideas. I am using disqus for the comments, but disqus keeps loading the same comments for each idea. Here is the website. http://tech-in.org/submitted_ideas/index.php. Here is my code <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:/

Why does Disqus not use global CDN for it's comment code?

眉间皱痕 提交于 2019-12-10 10:18:56
问题 According to the Disqus comment code instructions, you're supposed to include their JavaScript as follows: (function () { var s = document.createElement('script'); s.async = true; s.type = 'text/javascript'; s.src = 'http://' + disqus_shortname + '.disqus.com/count.js'; (document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s); }()); The location of the JavaScript is based on a shortname that is specific to your site. Why does Disqus do that instead

Why are Chrome exceptions for third-party cookies not working (results in inability to use Disqus)? [closed]

情到浓时终转凉″ 提交于 2019-12-09 16:47:04
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . So Disqus has not been working for me for some time, and they finally, handily, added a little notification that it's due to third party cookies being blocked. Great, I said, let's take care of that. So I added an exception for disqus.com to Chrome's preferences, but it does not seem to be working. I did this