Giter Site home page Giter Site logo

caijimmy / disqus2wp Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 109 KB

๐Ÿ›ด A webpage that helps you migrating comments from Disqus to WordPress

Home Page: https://disqus2wp.netlify.app

License: GNU Affero General Public License v3.0

JavaScript 71.88% HTML 6.70% Vue 21.42%
disqus javascript vue wordpress migration

disqus2wp's Introduction

Disqus2WP

๐Ÿ›ด A webpage that helps you migrating comments from Disqus to WordPress. Built with Vue.

Idea

  1. Transform Disqus Exported Comments from XML format to JSON, using nashwaan/xml-js
  2. Render page
  3. From JSON to SQL command.

Requirements

  • Disqus Exported Comments (Community -> Export)
  • Be able to execute SQL command on your database (Using tools like PHPMyAdmin or Adminer)

Usage

When you get Disqus Exported Comments head to disqus2wp and select it. (The file won't be uploaded to anywhere, everything is done locally.)

Once the page finished processing XML, it will append a "Config" card, which has two sections:

Posts

This option lets you choose which post's comment you'd like to import.

It's necessary to know respective post ID from your WordPress blog.

Other stuffs

  • Table Name: Where you have your WordPress comments stored. By default, it's wp_comments.
  • Auto Increment: Same as AUTO_INCREMENT in MySQL. By default, it's 1. If you have more comments on your database already, find the latest one, and introduce it's ID + 1
  • Admin Email: This function is aimed to single-user WordPress site. If the script find comment made by a user with admin email, it will be imported as a comment created by user 1, which should be the admin of site.
  • Transform comment content from HTML to Markdown: Personally, I don't like those HTML tags from comment. Disabled by default.

Then click the button, and on the right side should appear a bunch of codes. Copy and run them on your database.

Fix Comment Count

You will notice that comment count of each post after import is not updated. Well, this tool doesn't handle that (yet).

You can fix it by following this post from WPBeginner: How to Fix Category and Comment Count After WordPress Import

Huge Thanks to

disqus2wp's People

Stargazers

 avatar Zohar avatar

Watchers

Jimmy Cai avatar  avatar

Forkers

skybbx

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.