https://github.com/swichers/drupal-disqus_widgets
This module provides comment widgets, and xautoload integration for the official Disqus PHP library.
https://github.com/swichers/drupal-disqus_widgets
drupal drupal-7 drupal-module
Last synced: about 2 months ago
JSON representation
This module provides comment widgets, and xautoload integration for the official Disqus PHP library.
- Host: GitHub
- URL: https://github.com/swichers/drupal-disqus_widgets
- Owner: swichers
- Created: 2016-03-01T21:12:53.000Z (over 10 years ago)
- Default Branch: 7.x-1.x
- Last Pushed: 2016-03-03T01:30:09.000Z (over 10 years ago)
- Last Synced: 2026-01-01T15:09:44.367Z (6 months ago)
- Topics: drupal, drupal-7, drupal-module
- Language: PHP
- Size: 10.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This module provides comment widgets, and xautoload integration for the official
Disqus PHP library.
## Requirements
* [libraries][1]
* [xautoload][2]
* [Disqus PHP][3]
## Installation
1. Install as usual, see http://drupal.org/node/70151 for further information.
2. Download the Disqus PHP library from https://github.com/disqus/disqus-php and
install into sites/all/libraries/disqus-php.
`git clone git://github.com/disqus/disqus-php.git sites/all/libraries/disqus-php`
3. Add the following code to the start of the disqusapi.php file after the
initial opening php tag:
```php
namespace Disqus;
use \Exception;
```
4. Configure the module at admin/config/services/disqus
## Usage
Use `disqus_widgets_disqus()` to get a Disqus API object, or use the available
blocks as designed.
See http://disqus.com/api/docs/ for API information.
[1]: https://drupal.org/project/libraries
[2]: https://drupal.org/project/xautoload
[3]: https://github.com/disqus/disqus-php