Giter VIP home page Giter VIP logo

allenarchive-commenting's Introduction

Allenarchive-commenting

Commenting Plugin Plugin files: In /src folder.

Before upload the files to modify the commenting function on our website, we need to do two configurations:

First, activate the ‘Commenting’ in ‘Plugins’ as a Omeka Admin, then modify the configuration by checking ‘Allows everyone, including non-registered users to comment. Using this without Akismet is strongly discouraged.’ Option to allow everyone to leave comments. However, anyone except the admin should register an account to comment since the unregistered users cannot pass Captcha to comment.

Second, set up Captcha according to the tutorial on this website, to make sure registration can work: https://omeka.org/classic/docs/Admin/Settings/ReCaptcha/

Then, upload the source files needed for implement sentiment analysis in the plugin

There are 4 parts we need to upload to the server: (use my address as a reference, can be replaced by other server address)

Comment section appearance:

scp /path/to/comment.php [email protected]:/var/www/omeka-2.7/plugins/Commenting/views/public

scp /path/to/commenting.css [email protected]:/var/www/omeka-2.7/plugins/Commenting/views/public/css

Comment database setting:

scp /path/to/CommentingPlugin.php [email protected]:/var/www/omeka-2.7/plugins/Commenting

Controller of Comments:

scp /path/to/controllers.zip [email protected]:/var/www/omeka-2.7/plugins/Commenting

Then:

-ssh [email protected]

-cd /var/www/omeka-2.7/plugins/Commenting

-sudo chown -R hlin374 /var/www/html/plugins/Commenting

-unzip controllers.zip

-A (replace all)

Controller of the setting of the Commenting box:

scp /path/to/CommentForm.php [email protected]:/var/www/omeka-2.7/plugins/Commenting

With this all set up, registered users can write comments, and admins call see each comment’s sentiment score after signing in:

By clicking ‘show sentiment’, we can make the sentiment scores show, and the children nodes will follow the parent node:

And we can also click again to hide it.

allenarchive-commenting's People

Contributors

humaslin avatar

Watchers

 avatar

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.