After seeing Disqus in action on Keith Elder’s blog, I decided to incorporate it in my Veritas Blog Engine redesign. Setting up Disqus is pretty easy. If you’re using a more standard blog engine (Wordpress, Blogger, etc) than they have plugins and very easy to use integration methods. If you’re writing your own site, you just need to drop some javascript onto your page and replace a few values. Specifically, you have to put in your account name, the blog entry url, and the unique page title (or disqus identifier). There are a couple caveats to using Disqus. Prior to using it, a viewer could comment on any entry shown on the home page without having to go to the entry’s unique page (so the comments for multiple entries were viewable on the same page). Unfortunately, Disqus can’t handle this. You can only show the “disqus comments” for one entry at a time. So now, viewers have to click and go to the unique page to add comments (or even just view the comments). I think that with the ease of use of Disqus for administering comments as well as users logging in with their info to add comments makes this trade off worth it. Importing is another issue though.
When I first started looking at Disqus, I saw that you could import comments and figured that as long as I could import, I could figure things out and make it work. This did prove to be true, however, there were a few hoops to jump through. If you checkout Disqus and want to import from WordPress or Blogger, then they have an easy to use format for importing your comments. If, however, you’re using your own format, they do provide a generic format (WXR) to import your comments. You can read about and checkout this format here. The format is documented, though not as well as it could be. Both the Content:Encoded and the comment_content are shown using CDATA for the content. Presumably so you don’t have to bother encoding the html of your blog entry and the comment. In the course of running into issues I ended up just encoding my html and not using CDATA at all.
Another issue I ran into while getting my xml ready was the link to the blog entries. I had a few links that had apostrophes in them. While this seemed to work fine in several browsers, it ended up being very problematic after I imported my comments (this was my own fault and not Disqus’). Just make sure your urls are properly encoded (i.e. replace your apostrophes with %27).
The last issue I ran into, I will blame on Disqus. Their import example has the following in the xml:
1: <!-- sso only; see docs -->
2: <dsq:remote>
3: <!-- unique internal identifier; username, user id, etc. -->
4: <dsq:id>user id</dsq:id>
5: <!-- avatar -->
6: <dsq:avatar>http://url.to/avatar.png</dsq:avatar>
7: </dsq:remote>
Now I don’t know if there are some docs (as in “see docs”) that I didn’t see but I assumed (incorrectly) that I should send over my ID for the commenter. That was a bad assumption. This section caused my comments and threads to not be imported at all. Furthermore, the import process doesn’t really give you any information about why your xml does or does not work. I did send a couple tweets back and forth with Disqus, though I don’t think they actually looked at the xml I was trying to import (and presumably they would have seen the DSQ Remote section and told me to drop it right away). Once I dropped that section from all of my item elements, the import worked great (besides the URL encoding issue I mentioned above). Below you can see an example of the xml I ended up importing. There is one Item element in this xml where my full import had one item for each comment.
1: <?xml version="1.0" encoding="UTF-8"?>
2: <rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dsq="http://www.disqus.com/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:wp="http://wordpress.org/export/1.0/">
3: <channel>
4: <item>
5: <title>re: Detroit Restaurant Week: My First Android App</title>
6: <link>http://chrisrisner.com/Detroit-Restaurant-Week--My-First-Android-App</link>
7: <content:encoded><p><My Encoded Html<p></content:encoded>
8: <dsq:thread_identifier>Detroit-Restaurant-Week--My-First-Android-App</dsq:thread_identifier>
9: <wp:post_date_gmt>2011-03-20 23:32:00</wp:post_date_gmt>
10: <wp:comment_status>open</wp:comment_status>
11: <wp:comment>
12: <wp:comment_id>188</wp:comment_id>
13: <wp:comment_author>MyName</wp:comment_author>
14: <wp:comment_author_email>[email protected]</wp:comment_author_email>
15: <wp:comment_author_url>http://www.chrisrisner.com</wp:comment_author_url>
16: <wp:comment_author_IP>24.145.221.93</wp:comment_author_IP>
17: <wp:comment_date_gmt>2011-03-27 18:00:35</wp:comment_date_gmt>
18: <wp:comment_content>Now to port it to WinPhone7!</wp:comment_content>
19: <wp:comment_approved>1</wp:comment_approved>
20: <wp:comment_parent>0</wp:comment_parent>
21: </wp:comment>
22: </item>
23: </channel>
24: </rss>
UPDATE: Dex informed me (below in comments) that if you go to http://import.disqus.com and click on the "All Imports" tab, you can see the status of your import as well as if an error occurred and on which line it occurred. Thanks Dex!
44 Comments
Joomla Developers
Nice to hear about disqus updating. I like disqus and I am satisfied with it. I gain lot of knowledge by reading your article. Thanks for sharing it.
Chris
Happy to hear the article helped you out.
izmir escort
thanks..
Trade4target
Hey, very nice site. I came across this on Google, and I am stoked that I did. I will definitely be coming back here more often. Wish I could add to the conversation and bring a bit more to the table, but am just taking in as much info as I can at the moment.
Thank You.
trade4target
Stock Market
I really appreciate your post and you explain each and every point very well.Thanks for sharing this information.And I’ll love to read your next post too.
Regards
Stock Market
Generic Viagra
Nice to hear about updates Disqus. I like Disqus and I am happy with it. I get a lot of knowledge by reading your article. Thank you for sharing it.
Kamagra
Kamagra
web development services
true that
Vektorgrafik erstellen
and do you have any idea about importing those to html webiste ?
disney vacation home
nice one here...........
vacation homes near disney
Thanks for sharing the Idea there would be some apprehensions from segment but i am up for it
chaoduyu520
The characteristic and intricate pattern with the cheap burberry may be found on stars and celebrities all around the sleeves on the tattoo-like burberry on sale.When you consider burberry outlet store is very costly, you might be pretty a lot misguided.burberry for women are the fact is really inexpensive so nearly anyone can decide on 1 up for himself. It is actually quite simple for any one to go get an burberry Shawl as they are so readily obtainable and reasonably low-priced. People today can use burberry scarves all of the year spherical. it is possible to dress in Ed hardy boots to keep your ft and legs warm,you could see burberry scarves on sale outlets right here and there. Even E-shops can provide customers high quality burberry handbags on sale accessories.
vanity sink
Wow!This is a cool screen idea ! It is very interesting indeed.Thank you for your info.i love to read all info.Keep update this well collection.
pressure cookers for canning
Hi,
Thanks for sharing information about installation of Disqus Comment System at blog, very useful and helpful information….Keep this update.
diploma of management
Ya!I have no doubt on this nice feedback and interesting post you have shared, it adds up another knowledge on improving blog comments.
swimming pool supplies
I love this sweet script.I think
discuss the javascript code used by the Disqus comment system.
Data reading circuit
Hello, This is really awesome and informative posting. I like your page very much. Thanks for nice posting.
Chris
Happy to hear it helped!
online suggestion box
Hello friend!!
I got here a good script.I still use Disqus commenting system and also like because it has many features like social interaction and handling all comments from admin and less spammy or low time consuming from every perspective.
cleaning service chicago
Hello friend!!
Please let me know if you're looking for a article writer for your site. You have some really good posts and I feel I would be a good asset.
Luke Foust
Wow, this really helped me out. Thank you for documenting the problems you ran into and how you solved them. As you know, when something goes wrong with the Disqus import you have no way of knowing what went wrong and how to fix it. The documentation and support are not very useful for this.
I don't think this information is available anywhere else on the internet! I wish I would have found this earlier.
Chris
Happy it helped Luke.
Miguel Castorini
This is the best system of comment disqus is more used in all webs around the world
celinahex
having trouble with this now. why would i want to include my entire blog posts content in this xml file? I've left it out but included the tags in my xml and thought it would work; something isn't wokring though.
<content:encoded>
Chris
Hello Celinahex,
It's been quite a while since I wrote this so I can't specifically recall why the content was included (or if it was actually necessary). That being said, if you've tried to do the import and it's not working, I would try with the content encoded as well. Outside of that, it would be difficult to tell what the issue might be without looking at the full xml you're trying to import.
Chris
Dex
Hi ChrisThanks for this EXCELLENT post. Importing custom comments is poorly documented in Disqus and their support is also not useful, but I guess I am trialling the free version of Disqus.I have tried a few imports and got zero comments imported. Could not guess why. Agree with your observations above.
What I eventually discovered on Google is http://import.disqus.com . If you log in to your Disqus account, then go to http://import.disqus.com and select your forum, you can see two tabs, one of which is 'All Imports'. If you click on that, you will see the error message and line of your XML that broke.Hope this helps someone else.
dex
And as a side benefit, on http://import.disqus.com you can follow the progress of your import realtime and see when it's done. In my case, about a minute. Better than seeing it's still in progress after 24h!
Chris
Wow, thanks Dex! I'm going to put an update on the post so that anyone reading it has the info. Thanks a ton passing this on!
For Everything
nice
Guillaume Erard
Thanks for this article. I am now in the painful process of manually importing comments from jcomments and I wonder about comment id. Should I make one up for each comment? What if it overlaps with an existing one? I would leave it ut but when there are replies to comments, you need the parent comment id. Any advice would be most welcome! Thanks
Chris
Hi Guillaume,
If I recall correctly, I just put in the comment ID I had in my original database. If that's the case, you should be able to put in any IDs you want. I would go through the (also painful) process of making up IDs and then figuring out where to put the appropriate parent ID. I imagine jcomments has some method of tracking what's attached as a reply so I'd think you could script it to add IDs for each one and a parent where appropriate. Hope that helps.
Chris
Guillaume Erard
Hi Chris, thans a lot for that, I will give it a go with dummy IDs, hoping that I don't end up with overlaps. All the best
Gino | Pordoy Palaboy
i tried to import my previous comments in blogger and it says 100% complete now, however, i can not see the imported comments on the post.
Tina
Hi Gino, I have the same issue. Have you solved this problem yet?
Bali Hotels
Travel to Bali is very good to booking from Bali Hotels Accommodation. You will find something natural around the island. Exploring the island of Bali, and Best deal of hotels. Check also special deals on Bali Resorts in Kuta Hotels, Seminyak Hotels, Legian Hotels , Nusa Lembongan Hotels,
Nusa Dua Hotels ,and Sanur Hotels. Or if you want to get holiday in Phuket, you can book from Phuket Hotels , Patong Hotels booking online,and Istanbul Hotels Turkey for Istanbul Turkey Online reservation.. Thank You.
German Motors & Imports
Thanks, for discussing. It is so
much benifited for me. I get much information about your discussion i have
another topics pregnancy at 40. I thing it is very important for us. If don’t
mind discuss about this topics.
http://germanmotorsandimpor...
Shruti Patel
Hey ! I just installed Disqus on my http://www.resultplanet.in site; but i'm fairly disappointed to see that Disqus doesn't recognize my old comments : all my older comments are marked as posted by a guest. Did I miss a step ? Is there a way to have my old comments linked to my Disqus profile ? (my Disqus user mail is the exact same as my wordpress admin-user email, I would have thought it would have been automaticly recognized).
Mona Ali
نقل أثاث
بالرياض
nile7seo
nile7
nile7
nile7
xeberyeni
Karnal: CBI arrests BSNL GM for taking bribe
xeberyeni
KC-390: A força na aeronáutica
jasmine nile
it is very important
http://chrisrisner.com/
Preet Sharma
I am unable to apply this code :( :( can anybody tell me how to apply this code??
Samuel Woodbury
Thanks for this content. I am now in the agonizing procedure of personally publishing feedback from jcomments and I wonder about opinion id. Should I create one up for each comment? What if it overlaps with an current one? I would keep it ut but when there are responses to feedback, you need the mother or father opinion id. Any guidance would be most welcome! Thanks
Spybubble Gratis
Keith Jones
Mathew 24 Christ returns with the clouds of heaven for the
desolation of the Earth following a lunar & solar eclipse (sun darkened,
moon turned to blood), says prepare:
42 Watch therefore: for ye know not what hour your Lord doth come.43 But
know this, that if the goodman of the house had known in what watch the thief
would come, he would have watched, and would not have suffered his house to
be broken up.
Attack
Warning!
According to biblical accounts the desolation of the Earth
is triggered by a provocative nuclear detonation (abomination of desolation)
without the usual build up to war, scriptures have first strike from the East.
Power failure:
A distant detonation blows circuitry
Mobile & Land line down: switched off to conserve power
Heat: a visible
detonation quickly causes 3rd degree burns up to 12km away
Shield: Concrete,
dirt, charcoal.
Preparation: Bulk
store cheap cereals e.g flour, rice, oats, store dried slicing sausage &
water somewhere shielded, NO TINS OR METALIC PACKAGING.
FLOODING: SHELTER AT HIEGHT
Isaiah 28:2 Behold,
the Lord hath a mighty and strong one, which as a tempest of hail and a
destroying storm, as aflood of mighty waters
overflowing, shall cast down to the earthwith the hand.
Isaiah 28:17Judgment
also will I lay to the line, and righteousness to the plummet: and the hail
shall sweep away the refuge of lies, and thewaters shall overflow the hiding place.
Isaiah 28:18And your covenant with death shall be disannulled, and
your agreement with hell shall not stand; when the overflowing scourge shall pass through, then ye shall
be trodden down by it.
Isaiah 28:19From the time that it goeth forth it shall take you: for morning by morning shall it pass over, by day and by night: and it shall be a vexation only to
understand the report.
Habakkuk 3:10The
mountains saw thee, and they trembled: the overflowing of the water passed by:
thedeep uttered his voice, and lifted
up his hands on high.
Nahum 1:8But with an
overrunning flood he will make an utter end of the
place thereof, and darkness shall pursue his enemies.
Amos 5:8 Seek him that maketh the seven stars and
Orion, and turneth the shadow of death into the morning, and maketh the day
dark with night: that calleth for the waters of the sea,
and poureth them out upon the face of the earth: The LORD is his name:
Amos 9:5 And the Lord GOD of hosts is he that toucheth the land,
and it shall melt, and all that dwell therein shall mourn: and it shall rise up wholly like a flood; and shall be drowned, as by the flood of Egypt.
Daniel 9:26 And after threescore and two weeks shall Messiah be cut
off, but not for himself: and the people of the prince that shall come shall
destroy the city and the sanctuary; and the end thereof shall be with a flood, and unto the
end of the war desolations are determined.
Daniel 11:22 Andwith the arms
of a flood shall they be overflown from before him, and shall be broken; yea, also
the prince of the covenant.
Jeremiah 47:2 Thus saith the LORD; Behold, waters rise up out of the north, and shall be an
overflowing flood, and shall overflow the land, and all that is therein; the city, and them that dwell
therein: then the men shall cry, and all the inhabitants of the land shall
howl.
Ezekiel 26:19 For thus saith the Lord GOD; When I shall make thee a
desolate city, like the cities that are not inhabited; whenI shall bring up the deep upon thee, and great waters
shall cover thee;
The appearance of a stratospheric missile within blast
radius (Topol 800kt, 6.5km, 5psi (buildings destroyed)). 3rd degree
burns up to 12km. Sighting gives seconds to obscure with a suitable barrier.
Has a circular trail, missile itself not visible.
Gary Davis
Thanks for the link to http://import.disqus.com - it showed my import failed and I was not aware until I saw this site with the details.