It would be great if we could tie taxonomy terms to Disqus categories.

CommentFileSizeAuthor
#2 disqus-categories-964070.patch7.03 KBa_c_m
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

RobLoach’s picture

Interesting........ Any idea how this would work?

a_c_m’s picture

Status: Active » Postponed
FileSize
7.03 KB

This is as far as i got, but its seems the categories functionality is only for 'partners' and or not yet complete. Still, i've done a lot of the work required to get it working when / if they release the functionality.

Marking as postponed, till Disqus get around to supporting it.

In the mean time, for this client we are going to go a with a 'hack' approach, to have a Disqus account for each of the categories. Please PM me if your found this thread and are interested in this.

alex.skrypnyk’s picture

It would be great if we would be able to at least specify category ID per node type.

chrisdfeld’s picture

+1. The module would need to maintain a mapping of Drupal terms and/or content types to Disqus category IDs, then send the appropriate parameter to Disqus when initializing each thread. The Disqus API does provide a call to get a list of categories (an API key is required, obviously).

RobLoach’s picture

Think we should switch to the new v4 API for this? http://disqus.com/api/docs/

datawench’s picture

I've been working with this patch and I was able to get disqus to accept the category assignment by using the variable disqus_category_id instead of disqus_category:

$output .= 'var disqus_category_id = '. drupal_to_js($disqus['category']) .';';

on your line 432.

We found this out by dumping the disqus embed.js and looking at the names of the vars it was actually picking up and processing.

ardnet’s picture

Hi guys, sorry, so this feature of adding category to Disqus, is it already been added in the module?
I've also interested with this, and just checked the disqus.js from latest version module, seems there's no variable for disqus_category_id yet.
So I assume it hasn't been implemented yet?

I'm gonna need this Disqus category for the project I'm currently working on.
To be specifically, I need to pull all of the comments from particular content type.
So in order to workaround with this, I'll take each content type as a category in Disqus, therefore, I'll map the category that I created in Disqus into Drupal content type.

Guess I have to do bit of hacking in order to this.

azinck’s picture

Thanks for working on this, a_c_m.

I'm not sure if I'll get a chance to work on this or not, but I'd love to be able to assign a taxonomy vocabulary to "drive" the categories in Disqus. Then have the Disqus module automatically keep the Disqus categories in sync with terms in that vocabulary. A Disqus category could then be automatically assigned to a node's thread based on the node's assigned terms. Obviously if a node is tagged with multiple terms from your Disqus-synced vocabulary then we'd have to just use the first term.

Hmm, I just noticed that there appears to be no way to delete categories via the API. Very odd and if true, it would rather skewer this idea. That said, I'm not convinced the Disqus documentation is wholly reliable in this area.