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.
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?
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
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. 😊
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.