I was trying to use this with the Display Suite module, and it is not compatible. Has anyone figured out how to use them together?
| Comment | File | Size | Author |
|---|---|---|---|
| #23 | disqus_ds_support_as_submodule-863122-23.patch | 2.46 KB | osman |
| #18 | 863122-disqus-ds-integration-18.patch | 2.27 KB | jlyon |
| #16 | 863122-disqus-ds-integration-16.patch | 1.75 KB | jlyon |
| #13 | 863122-disqus-ds-integration-13.patch | 1.93 MB | jlyon |
Comments
Comment #1
dcomfort commentedIt is compatible with Display Suite. It just takes a little work to do so
1) Under admin/settings/disqus, set Location to "Block"
2) Add a new block field at admin/build/ds/nd/fields
a) Enter field key
b) Enter Field Title
c) Under "Block" select Disqus Comments
d) Under BLock Render", select "render through block template"
3) Your new block should now appear in the display suite list of blocks (for instance, admin/build/ds/layout/blog) and then you can position it where you would like.
I hope this helps
Comment #2
zawaj commentedMerci pour votre précieuse aide.
Comment #3
robloachYay!
Comment #4
BarisW commentedThanks for sharing!
Comment #5
humanaut commentedI originally had this working on a site that I've been working on and off for the past 2 months.
The options are a bit different now compared to the above, but I chose the most appropriate options (or so I thought);
1) add a block field
2) node entity checked was "node"
3) block was disqus: comments
4) layout was default
I moved the block field into a display suite region in the Full Content display. The end result is a Disqus block that just has login options and a message that says "comments for this page are closed". Any node from that content type has the same message. I checked the Disqus config options, the content type has been selected. I also checked individual nodes and under the comments tab and the "Disqus comments" checkbox is selected.
I have uninstalled / reinstalled the module and recreated the block.
edit: I am not convinced that it is still a display suite problem. A bunch of nodes were imports and from 2-3 years ago. Those ones seem to be showing the comment box from disqus, but newer ones either created through this install of drupal, automatically say comments are closed still.. will have to keep investigating.
I am on Drupal 7.14.
Comment #6
krisahil commentedExcellent. @dcomfort, your suggestion works for me on Drupal 7.16 and Display Suite 1.2 and Disqus 1.9.
Comment #7
rajmataj commentedHere is what worked for me using:
Create a Display Suite block-field (admin/structure/ds/fields/manage_block), create your label and then set:
In the Disqus admin screen (admin/config/services/disqus), select your Node Type, and set the Location to: Block. It won't work for this scenario if you have the Location set to 'Content Area'.
You don't need this block assigned to a region in the normal Drupal blocks admin page, but instead, assuming you are using a Display Suite layout for the content type that you want to show the comments, place this custom field-block into whatever region suits you - typically the bottom of your content area.
Comment #8
maxmendez commentedThanks for the help, very usefull
Comment #9
slashrsm commentedComment #10
jay.lee.bio commentedFor me it just eventually starting working, although maybe some specific steps I took (https://drupal.org/node/1159690, #46 & #47) somehow helped too.
Comment #11
GroovyMotion commentedWhat worked for me is to force the
<? print render($content['disqus']); ?>inside the node.tpl to be in the links div...that made disqus appear below the content. :)Only issue left is the teaser, it will show on the teaser only if it's default drupal comments but not with disqus.
I solved it!
In Views/Field you can add a disqus comment count! And it works in teaser! :)
*edit* it stopped working today!
If I have both Read more and disqus fields in display disqus disappears even if I put the readmore and disqus in separate regions
Comment #12
geeproud commentedThanks for this information about this.
I have a working website with comments already (they use a different content type). I want to add Disqus to different content type (that uses Display Suite). I understand that I have to go into Disqus and choose "Block".
What is my risk here of screwing everything up? Do I basically have to switch it to Block and then go through all my content types and arrange the block to where i want it (even existing Disqus comments on existing content types)?
I am a novice with Drupal (just enough to be dangerous) so I want to make sure I have sufficiently planned this out before I do it.
Thanks!
Comment #13
jlyon commentedThis patch implements hook_ds_fields_info() to add Display Suite fields for Disqus comments and Disqus comment counts.
Comment #14
BarisW commentedWow, we don't need the Ckeditor library I guess? :)
Comment #15
BarisW commentedComment #16
jlyon commentedHeh, sorry about that...moving too fast I guess! Here's a better patch.
Comment #17
jlyon commentedComment #18
jlyon commentedThis patch fixes two issues with the previous version:
1. Comment count field now uses a render array to add js assets. Using
drupal_add_jswasn't always working.2. Won't display comments or comment count when Disqus comments are turned off for the node.
Comment #19
robloachThis looks great, and I'm so glad to have more support for Disqus across a number of different systems.
While I think it's great to add Display Suite support to Disqus, it might be good to split it into its own module, depending on both Display Suite and Disqus. This would encourage low coupling, and would keep a smaller Disqus module. Thoughts? It also means if you don't want/need Display Suite support for Disqus, then you'd simply make sure the
disqus_ds(or whatever module name) is disabled.Might be able to use
#attachedhere as well ;-) .Comment #20
alemadleiHey guys,
I recently ran into this issue. However I fixed it a little different. On a custom module I implemented hook_field_extra_fields. This allowed me to set in UI the location of the disqus widget.
The patch mentioned should also work. but for those who can't patch it for some reason, this is an alternative.
Hope this helps someone.
Comment #21
kclarkson commentedthe Patch in 18 works great!! I now have a Disqus Comments field in Display Suite and it is now visible.
Would be great to either commit or separate as a Disqus Sub-Module but it shouldn't be another contrib module.
Comment #22
slashrsm commentedI agree with @RobLoach. Let's make this a sub-module of the main one.
Comment #23
osmanI simply converted @jlyon's patch to create a sub-module to expose those disqus blocks as Display Suite fields. Thanks @jlyon.
Comment #24
kclarkson commentedGreat job to @jlyon for the first patch. And Thanks to @osman for making it a sub module.
Patch
-Just Applied Patch Cleanly from the most recent dev git version
-Module page now shows Disqus DS
-Enabled Disqus DS module
-Went to Article Content Type manage Display and Boom!!! Disqus Comments and Disqus Comment Count
-Disqus Comments Field Works Gret
ERROR:
After Adding Disqus Comment Count I get the following error:
Notice: Undefined index: html in theme_link() (line 1646 of includes/theme.inc).
Comment #25
kclarkson commentedComment #27
robloachFixed up the bug @krisahil noted in #25 and pushed up to 7.x-1.x. Thanks a lot, guys! This looks great.