Coder Social home page Coder Social logo

Comments (5)

jacobwb avatar jacobwb commented on August 26, 2024 1

This is planned.

IP addresses can be stored by setting the $ip_addrs variable in settings.php to 'yes'

from hashover.

jacmoe avatar jacmoe commented on August 26, 2024

I have imported comments from Disqus using the following (dirty) code:

https://gist.github.com/jacmoe/e9d1ffdbd10c6022f71e394458c46da6

I assumes that the body of the comments is clean - which it should be, since it is from Disqus.
The script saves the comments as xml files named after the timestamp - then it is a small matter of sorting them and renaming them 1, 2, 3, ..

I hope it will serve as a starting point :)

from hashover.

jacmoe avatar jacmoe commented on August 26, 2024

Also, a proper encryption key (from settings) should be inserted into it :)
I am running the script in the shell.

from hashover.

jacmoe avatar jacmoe commented on August 26, 2024

The script does not check if the thread url is wrong - which it can be, if you accidentally use the Disqus code on localhost or other sites (forgot to change the script) - I just went through the exported xml and removed the erroneous threads.

If a thread url is wrong, it usually means that there are duplicate thread id's, which will (maybe) create problems.

Anyway: I hope this helps.

from hashover.

jacobwb avatar jacobwb commented on August 26, 2024

Thank you for the code @jacmoe!

There will be a way to import Disqus comments into HashOver eventually, but the format of the HashOver comment files/database needs to be finalized before the import code can/should be written.

In HashOver 2.0 some progress has been made in allowing a script to "emulate" posting a comment, so as long as there is a way to sort the Disqus comments than they will automatically be imported in the proper 1, 2, 3 naming scheme. This work isn't done, though, it needs to be made easier to allow importing comments from any other kind of comment system.

from hashover.

Related Issues (20)

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.