marcato15 / disqus Goto Github PK
View Code? Open in Web Editor NEWDisqus EE Addon
Disqus EE Addon
*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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.