Giter Site home page Giter Site logo

disqus's Introduction

*INSTALL*
Expressionengine 2 only.
Unzip the file and rename the folder to disqus. Then upload it to your third party directory to install it.  

*TAG USAGE*
This module provides you with 3 tags. 

{exp:disqus:link id="{entry_id}" link="{url}"}

{exp:disqus:comment id="{entry_id}"}

{exp:disqus:sync int="5"}


exp:disqus:link takes the entry_id parameter (required) and a possible link prefix (to link to other pages disqus section). This will load a link to the Disqus comments section as well as display the number of comments and reactiongs.

exp:disqus:comment takes the entry_id parameter (required) and outputs the proper Disqus js for comments section

exp:disqus:sync takes an int parameter (optional) and will sync your Disqus comments (configured in the CP) and turn them into EE comments. You can put this tag in a well visited template and it will only run once every 60 minutes. You can change this by putting in a number in the int parameter. This is the interval you want to synchronize comments. If you want to do it on every page load (NOT ADVISABLE) use the parameter int="NOW" .

You will also be provided a link to run the sync operation from a url so you can setup a cron job to do this automatically.

You will install the plugin and then setup your forum shortname for the javascript tags. In order to use the sync tag you will need to setup an Application in Disqus and input your Secret Key from Disqus. 

Example usage of Comments. For SEO purposes you may want to spit out comments in the HTML so Google can know they are there since DISQUS uses all JS. Just output your comments like normal from EE, and if JS is working, then hide the comment div and show the JS. 

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.