disqus

How can an iFrame that has content, have an undefined contentDocument object?

亡梦爱人 提交于 2020-01-07 02:13:07
问题 I've been trying to develop a browser extension that needs to inject event handlers into all iFrames on a page. I have found that some iFrames, like those used for the Disqus commenting system, have content but no contentDocument. How is this possible, and how can I access the event handlers for an iframe without a contentDocument? Check out the comment section at the bottom of this page for an example. If you inspect the comment text area, you will see it is in an iFrame that has no

load disqus comments on single pages based on the scroll event

橙三吉。 提交于 2020-01-06 06:57:52
问题 I have applied disqus comments on my single blog page which consists of many posts on one page. <div> <article class='post hentry' expr:data-id='data:post.id' expr:data-url='data:post.url'> ............. </article> <div class='showDisqus' data-title='MyTitle' expr:data-id='data:post.id' expr:data-url='data:post.url'>Show Comments</div> </div> <div> <article class='post hentry' expr:data-id='data:post.id' expr:data-url='data:post.url'> ............. </article> <div class='showDisqus' data

Remove Disqus comment box from main Tumblr page, but keep comment boxes for each post's page?

三世轮回 提交于 2019-12-25 02:57:44
问题 I haven't found a solution to my problem on StackOverflow or Google, so I figured I'd ask. I added Disqus to my custom theme Tumblr blog, but I want to change where the Disqus comment box/system appears. In particular, I do not want it to show up on the main Tumblr page, but I'd like it to appear on the page for each post. So, if you go to my Tumblr's main page you will see the Disqus system at the bottom - I want to remove it from there. But, I would like the Disqus system to appear on each

Using Disqus for ajax loaded Modal

烂漫一生 提交于 2019-12-25 02:22:39
问题 I'm having a modal that loads different content (imagine different profiles for products), and I want to add a review section for a product in the modal. I thought about making it by myself, but the HTML markup, PHP backend handling, comment reply, and image upload all that are just very complicated (and time consuming). So I decide to use Disqus. I've used Disqus before. I know it works pretty fine with stand alone pages. What I'm not sure if how it will work with ajax loaded Modal? For

How can I notify content creator of new Disqus comment on her page?

ぐ巨炮叔叔 提交于 2019-12-24 21:45:56
问题 I have a site with user profile pages, that users can add content to, e.g. Anne. Other users (e.g. Bob) can comment on these pages using Disqus. When a Bob comments on Anne's page, I'd like to notify Anne of the new comment. Currently Disqus emails the site moderator to notify the new comment. Can it be made to notify Anne as well? I'm not using Wordpress (see related question here for discussion when using WP), this is a Django site. I've seen that you can get a Javascript callback from

How to enable SSL support on DISQUS?

柔情痞子 提交于 2019-12-24 16:41:14
问题 How do I enable HTTPS/SSL support for DISQUS? I'm aware that it has been implemented, but I'm unable to find out how to enable it in WordPress. 回答1: We updated the Disqus plugin for WordPress in version 2.71 (change log) to support SSL. There's nothing you need to do other than load your itself via SSL — if the page is loaded via HTTPS, Disqus will load via HTTPS. Specifically, the embed (embed.js) and the comment counts on your site's front page (count.js) will load via HTTPS, which

Disqus and retrieving logged in user

好久不见. 提交于 2019-12-24 11:34:52
问题 I creating a system, which could be considered a wiki, and I am going to use either Disqus or Intense debate to display comments on the articles on the site. Is it possible using Disqus or Intense debate to ask their api to retrieve the username/userid of the user viewing the page, so I can log which users are editing my articles? I could manually ask the Facebook API, Open Id, Twitter etc. for the userId, but it would be a lot simpler if there was just one API to request the Id of the user..

Getting Disqus html code to show in source for SEO purposes

限于喜欢 提交于 2019-12-24 01:37:13
问题 Recently started using Disqus on a site & was wondering if there was any way possible to have it so the actual html code will show up in the source page? I noticed this site is doing it.. http://adamkaras.com/blog/2009/06/24/disqus-custom-css-styling-in-3-easy-steps/ But I'm not sure how? 回答1: The WordPress Disqus plugin and Drupal's plugin use the Disqus API to mirror all comments into their local databasees. There may be equivalent plugins for other CMSes, and it'd be fairly easy to

Why are disqus comments not loading over https?

江枫思渺然 提交于 2019-12-23 12:27:09
问题 The disqus comments are loading here: http://www.oddprints.com/help but not here: https://www.oddprints.com/help any ideas? All resources appear to be secure (protocol relative urls) so I don't think it's that. 回答1: It because disqus was treating the two urls as different and therefore loading different threads. If you want both http and https urls to have the same comments thread on it, you need to supply a canonical url in the disqus config. This is how I did it: <div id="disqus_thread"><

Disqus Comment Count Always 0 Comments

一曲冷凌霜 提交于 2019-12-23 12:26:34
问题 I think I've set up Disqus as instructed for universal code. Trouble is that it always says that a post has 0 comments. Take this post: http://tx0rx0.com/retropie-and-the-raspberry-pi/ which discus says has 11 comments, and then compare to the front page http://tx0rx0.com I thought all you needed was a link to the page with the disqus comments with #disqus_thread appended to it. Like so: <a href="tx0rx0.com/retropie-and-the-raspberry-pi#disqus_thread>Comments</a> and the javascript with