Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
It would be great if we could tie taxonomy terms to Disqus categories.
Comment | File | Size | Author |
---|---|---|---|
#2 | disqus-categories-964070.patch | 7.03 KB | a_c_m |
Comments
Comment #1
RobLoachInteresting........ Any idea how this would work?
Comment #2
a_c_m CreditAttribution: a_c_m commentedThis 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.
Comment #3
alex.skrypnykIt would be great if we would be able to at least specify category ID per node type.
Comment #4
chrisdfeld CreditAttribution: chrisdfeld commented+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).
Comment #5
RobLoachThink we should switch to the new v4 API for this? http://disqus.com/api/docs/
Comment #6
datawench CreditAttribution: datawench commentedI'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:
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.
Comment #7
ardnet CreditAttribution: ardnet commentedHi 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.
Comment #8
azinck CreditAttribution: azinck commentedThanks 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.