We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Expression Engine Forum/Comments export to Disqus

Development and Programming

Jason Hamilton-Mascioli's avatar
Jason Hamilton-Mascioli
38 posts
15 years ago
Jason Hamilton-Mascioli's avatar Jason Hamilton-Mascioli

I just released a small php tool (based on the Ruby version) to convert EE 1.x/2.x comments to Disqus

https://github.com/hamiltonmascioli/EE-Blog-Export-To-Disqus–PHP-

Wasn’t able to find something like this so hopefully this helps someone else 😊

       
Greg Aker's avatar
Greg Aker
6,022 posts
15 years ago
Greg Aker's avatar Greg Aker

Awesome stuff! :: watches on GitHub ::

Thanks!

       
narration's avatar
narration
773 posts
14 years ago
narration's avatar narration

A very nice contribution, Jason - thanks!

Regards, Clive

       
Sean C. Smith's avatar
Sean C. Smith
3,818 posts
14 years ago
Sean C. Smith's avatar Sean C. Smith

I’ve just tried this, but it’s not working for me as expected.

In the config area I see:

// CONFIG $user_api_key = ”; // GET FROM DISQUS // PROD $forum_api_key = ”; // GET FROM DISQUS

but when I go to the API for Disqus I see a Public Key and a Secret Key, not a user key and forum key. In any case I tried various combinations but got the following error (replaced my key with ***********) repeating when I loaded ee_disqus_exporter.php

Array ( [message] => Key ********************* could not be converted to ForumKey object <pre><code> => input-invalid [succeeded] => ) Array ( [message] => Key ************************ could not be converted to ForumKey object <pre><code> => input-invalid [succeeded] => )

please advise.

       
Macrike's avatar
Macrike
137 posts
14 years ago
Macrike's avatar Macrike

I’m trying to import EE comments into Disqus with this script, but when I run it from the browser it just keeps loading, and loading… and loading. Not sure what to do here.

Also, as Sean mentioned above, I’m kinda confused on what I should put in forum_api_key, since I have only got a secret and a public key.

Edit: Actually, scratch that last bit. I just realised that this script uses the pre-3.0 Disqus API, and that Secret and Public keys are from the new API. Any chance of getting this updated?

       
ChrisClark's avatar
ChrisClark
60 posts
14 years ago
ChrisClark's avatar ChrisClark

I, too, would really like to be able to use this tool. Will this one be updated, or has anyone found something similar? I tried exporting the comments to a template using the specs Disqus provides, but that’s not getting me very far; it’s timing out on me.

       
Kevin Gerich's avatar
Kevin Gerich
213 posts
14 years ago
Kevin Gerich's avatar Kevin Gerich

This is great.

Does anyone know of a script that exports the data to the Disqus xml schema into a file for import. ref http://docs.disqus.com/developers/export/

The Disqus API only allows 1000 comments per hour.

I have 155,000 to import. Disqus recommends importing via file.

Thanks,

Jim

       
digitalformula's avatar
digitalformula
176 posts
14 years ago
digitalformula's avatar digitalformula
I just released a small php tool (based on the Ruby version) to convert EE 1.x/2.x comments to Disqus https://github.com/hamiltonmascioli/EE-Blog-Export-To-Disqus–PHP- Wasn’t able to find something like this so hopefully this helps someone else 😊

Hi,

I couldn’t get your script on Github to work so I used your code as the basis for a small PHP site to accomplish the same thing. It uses your Disqus API code and the ConvertCharacters/resourceCurl methods but I modified the overall format to do some more error checking (especially on the database side), use PDO for the database access (which I prefer) and do most things the OO-way (which I also prefer).

Full credit to you for the original PHP (my site makes that clear) but just wanted to make a quick post to say thanks for making this available - I just used my site to export all my comments and so far it’s running well with no errors.

Thanks again. 😊

       
Jason Hamilton-Mascioli's avatar
Jason Hamilton-Mascioli
38 posts
13 years ago
Jason Hamilton-Mascioli's avatar Jason Hamilton-Mascioli

The script is out of date based on the new API requirements for Disqus … When I get some time I will circle back and look at a new update.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.