Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello,
I am willing to use disqus at a site made with drupal7 but in order to do so I need to import the existing comments to disqus. I know D6 version has a migration sub-module, but that's not the case in D7 version. Since there's an open issue about this #1095194: Disqus Migration module revamp which seems to be "forgotten", I'd like to ask if there's any workaround to solve this problem.
Additionally I'd like to know if there's a way to export comments from disqus and place them in the correct nodes as drupal comments (just in case)
Thanks
Comments
Comment #1
daco CreditAttribution: daco commented+1
I would also like to know more about this feature... it would be great to be able to migrate from drupal comments to disqus and from disqus to drupal comments.
Comment #2
Shane Birley CreditAttribution: Shane Birley commentedThe Disqus module has an import and export feature. When you are viewing the Disqus configuration page on your web site, you should see three tabs at the top marked General, Export, and Import.
Don't forget to activate the Disqus Migrate module.
Comment #3
c-c-m CreditAttribution: c-c-m commentedI'm afraid version 7.x-1.9 doesn't have Migrate module, so those tabs you're talking about doesn't show up. That's the reason about the question, since it seems that the issue regarding this topic (#1095194: Disqus Migration module revamp) is somewhat abandoned...
Comment #4
Shane Birley CreditAttribution: Shane Birley commentedAh! My apologies. I hadn't realized the migration module wasn't included. Looks like I should read fully before commenting or stop drinking beer, one or the other. I will close this ticket and refer to the other issue in the queue. We should keep all of the comments over there.
For further discussion, please visit: http://drupal.org/node/1095194.
Comment #5
c-c-m CreditAttribution: c-c-m commentedDear Shane,
If you don't mind I don't think that this is an exact copy of the already mentioned issue. On that issue (which has not received any progress sin April 2011) the topic was to include an import/export feature to drupal7.
This issue, however, is not about that, it's about asking if somenone knows how to achieve the same without that module, in case there's a workaround.
Regards
Comment #6
Shane Birley CreditAttribution: Shane Birley commentedThis would be true but I don't think there is a work around for the issue, hence why I closed it. I also think it isn't worth spending a huge amount of time of working around something that is already being worked on... helping out, etc.
I note there doesn't seem to be any activity here for a work around but were you successful?
Comment #7
c-c-m CreditAttribution: c-c-m commentedI have not yet solved the issue but I may be close. I am reading this disqus documentation page: http://docs.disqus.com/developers/export/
As far as I understand (I am not an expert on this, so be aware) we could export comments in xml format (maybe using feeds module) as far as we follow disqus guidelines: http://docs.disqus.com/developers/export/
However, I am not pretty sure how to achieve that.
Regards
Comment #8
dwkitchen CreditAttribution: dwkitchen commentedHere is a sandbox of a Disqus Migrate module developed for Dennis Publishing
http://drupal.org/sandbox/dwkitchen/1483518
Comment #9
c-c-m CreditAttribution: c-c-m commentedThank you very much, I was willing to have it migrated to d7!
However, I am new to git and I've just installed it into my server and executed the command:
git clone http://git.drupal.org/sandbox/dwkitchen/1483518.git disqus_migrate
and I see an empty folder (with hidden files and folders), am I missing something?Comment #10
dwkitchen CreditAttribution: dwkitchen commentedYou will need to use
git clone --branch 7.x-1.x git@git.drupal.org:sandbox/dwkitchen/1483518.git disqus_migrate
To get the Drupal 7 version
Comment #11
c-c-m CreditAttribution: c-c-m commentedThank you very much, I did as you said (replacing your username with mine) and it worked. However I have to admit that I don't understand how it's supposed to work. I've read the readme.txt file but its explanation is not very helpful (See below):
I have enabled disqus migrate module and then visited migrate tab in admin/config/services/disqus but I do not know what I am supposed to do now.
Hope you can guide me a little bit more.
Thank you
Comment #12
c-c-m CreditAttribution: c-c-m commentedOops, forget about it. I visited admin/content/comment/ and realized there's a new tab called "disqus export" so I can generate the xml file!
Comment #13
c-c-m CreditAttribution: c-c-m commentedDear dwkitchen,
I'm not sure, but it seems that the export does not work very well, since I get some errors when I try to open with my browser. Additionally I uploaded it to disqus 9 days ago and I still don't see any imported comment (and I am still waiting for a propper answer from disqus' support team)
Did you succeed in exporting comments and then importing to disqus site?
Regards
Comment #14
kenyan CreditAttribution: kenyan commentedHi all,
When I go to admin/content/comment/disqus_export and click on "export all comments to xml" it seems to be doing something then just stops. I was hoping I'd see a download start on my browser or something..
Please advice.
Comment #15
rerooting CreditAttribution: rerooting commentedIf you are having issues with disqus_export I would highly suggest creating an issue here on the Disqus Migrate sandbox:
http://drupal.org/project/issues/1483518?categories=All
Comment #16
rerooting CreditAttribution: rerooting commentedMore specifically, if you are having issues with the D7 diqus_export sandbox as mentioned above http://drupal.org/sandbox/dwkitchen/1483518 then you should report issues in the issue queue I mentioned above. It seems that the D6 version of this module includes its own disqus_migrate submodule. Just friendly advice to ensure folks get support!
Comment #17
Rosamunda CreditAttribution: Rosamunda commentedHi there,
I´m sorry but I have no idea of how to use "git clone --branch 7.x-1.x dwkitchen@git.drupal.org:sandbox/dwkitchen/1483518.git disqus_migrate".
Please, could someone post the module´s zip here so I can download it?
I´ve installed the git program for windows (Git-1.8.1.2-preview20130201), and try that at the command line, but couldn´t get anything downloaded...
Thanks!
Comment #18
dwkitchen CreditAttribution: dwkitchen commentedHi Rosamunda
You will need to change my username before the @ to yours to be able to download, missed that when I first added the comment.
Comment #19
Rosamunda CreditAttribution: Rosamunda commentedThanks for you reply!
But I don´t see any username before the @.
Isn´t this the working code?
git clone --branch 7.x-1.x git@git.drupal.org:sandbox/dwkitchen/1483518.git disqus_migrate
Or should I just type it this way?
git clone --branch 7.x-1.x git@git.drupal.org:sandbox/Rosamunda/1483518.git disqus_migrate
Thanks!!
Comment #20
Rosamunda CreditAttribution: Rosamunda commentedNope, I´ve tried that and it says:
I don´t have any git account nowhere... onec I get it right, where should download the zip?
Side note: Why isn´t this module into the D7 version anyway...?
Comment #21
dwkitchen CreditAttribution: dwkitchen commentedTry
git clone --branch 7.x-1.x http://git.drupal.org/sandbox/dwkitchen/1483518.git disqus_migrate
Comment #22
Rosamunda CreditAttribution: Rosamunda commentedThanks! It seems to work now, but where´s the downloaded file?
Comment #23
Rosamunda CreditAttribution: Rosamunda commentedNever mind... I´ve got it!
It was inside my users folder :)
Thanks!!
Comment #24
Rosamunda CreditAttribution: Rosamunda commentedHi again,
I´ve exported the comments of my test site, and disqus is in the process of importing it to their platform.
How may I import comments back to my Drupal site? And how about the "importing in regular intervals". Is that still applicable here?
I see the "migrate" link at "admin/config/services/disqus", but don´t know what to do with it as it only shows a textfield and this information "Overide the base URL. Usefull if generating XML file for a different domain from current (http://www.liganet.net). Use the full base url eg. http://www.somesite.co.uk"
Again, thanks for your help!!!
Rosamunda
Comment #25
sreynen CreditAttribution: sreynen commentedI'm marking this as fixed, as the original query is answered with disqus_migrate. Specific questions about using disqus_migrate should be raised in the disqus_migrate issue queue, not here, so others with the same questions can easily find them.