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.
How can we've a Panels Integration, for replacing node with Panels, and display DisqUS in a Pane?
Comment | File | Size | Author |
---|---|---|---|
#22 | disqus-n928354-22.patch | 4.12 KB | DamienMcKenna |
#21 | disqus-n928354-21.patch | 2.07 KB | DamienMcKenna |
#19 | disqus-panels_integration-928354-19.patch | 2.14 KB | ziodave |
Comments
Comment #1
dvasquez CreditAttribution: dvasquez commentedXQSme, i only set it to Block display, jejeje!
Comment #2
toddwshaffer CreditAttribution: toddwshaffer commentedTo clarify:
in /admin/settings/disqus underneath the Visibility section, choose the Block option in the Location dropdown menu.
Then you just select the "Disqus Comments" block from within the panels interface under the Miscellaneous tab.
That's it, your disqus comments should now be displaying properly.
Comment #3
dvasquez CreditAttribution: dvasquez commentedExactly, thanks for clarify it, toddwshaffer.
Comment #4
Anonymous (not verified) CreditAttribution: Anonymous commentedNow when one can disable the Block module and only run with Panels, it makes sense to define a pane for the Disqus functionality.
Patch is coming soon.
Comment #5
Anonymous (not verified) CreditAttribution: Anonymous commentedattached
Comment #6
wiiiktor CreditAttribution: wiiiktor commentedWhat is the effect of this path?
I put this into the code, but i don't see option --Display Disqus comment box in a pane-- to switch on...
My colution is to use a Custom block and choose a block with a DISQUS code copy / pasted from the disqus.com site (only the html filtering needs to be switched off).
Comment #7
rickmanelius CreditAttribution: rickmanelius commentedI don't understand why we won't assume the block module is enabled but we do assume that ctools is present. Why not simply make a 'block' module dependency and therefore we can assume that the block will always be available to panels.
Comment #8
rickmanelius CreditAttribution: rickmanelius commentedAlso, the patch in #5 does apply cleanly (awesome!) but as the comment in #6 asks, it's unclear how it actually works. I tried finding it in the panel and I can't seem to locate where to enable, etc. Putting to 'needs work' so that testers can then give this a proper review.
Comment #9
valor CreditAttribution: valor commentedYou will find it under Disqus in Panels popup, try clearing your cache after applying the patch.
Comment #10
rickmanelius CreditAttribution: rickmanelius commentedHi Valor,
I flushed cache twice and revisited the panels pop up. I only see the following (see attachments). Now in miscellaneous, I do see 5 disqus blocks available, but those were already there prior to this patch.
If I'm missing something obvious, please let me know and I'll be glad to get this reviewed. But right now, I'm still not seeing it.
Comment #11
valor CreditAttribution: valor commentedHi @rickmanelius
Did you apply the patch against 7.x-1.9 release or 7.x-1.x-dev ?
Try to apply the patch on the dev version if you are running 1.9
Comment #12
rickmanelius CreditAttribution: rickmanelius commentedHi @Valor
The only differences between 7.x-1.9 and 7.x-1.x-dev are timestamps and the 1.9 versus dev label.
Comment #13
valor CreditAttribution: valor commentedJust so we can be sure try to run it against the DEV
Second make sure this files exists
/modules/disqus/plugins/content_types/comments/comments.inc
Are you passing any context to the panel ?
Comment #14
rickmanelius CreditAttribution: rickmanelius commentedHi Valor,
The thing I was over-looking (or making a mistake, depending on your perspective) was the context portion. While the issue summary did state that one of the intentions was replacing nodes with panels, it wasn't clear if the solution here was to provide the ability to add disqus comments to a generic panel. If I had more experiencing on the programmatic side of ctools plugins.
So I can validate that yes the patch in #5 does indeed work... and provides disqus integration without the need of the block system.
Now if there was a way to meet the use case where a disqus thread could be added to a generic pane, that would be sweet. I have a situation where a client wants to have a custom panels page with a thread present on the homepage, which is not associated with any particular node. But alas, we'll save that for another thread once this is committed.
Thanks for your patience! Setting to RBTC.
Comment #15
sillygwailoI noticed there was no "Settings" option for the pane when using this patch. Would it be possible to add that? Would love to add a title like "Comments" or "Join the Conversation".
Comment #16
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedThis no longer applies
Comment #17
ziodave CreditAttribution: ziodave commentedI adapted the patch to current HEAD.
Comment #18
slashrsm CreditAttribution: slashrsm as a volunteer commentedLooks OK. Can we add some comments to the actual plugin?
Comment #19
ziodave CreditAttribution: ziodave commentedComments added.
Comment #20
torgosPizzaComment #21
DamienMcKennaRerolled.
Comment #22
DamienMcKennaAdds the comment count plugin from #1857058: Create ctools pane for disqus comments.
Comment #26
DamienMcKennaAdding credit to the folks in #1857058: Create ctools pane for disqus comments.
Comment #27
DamienMcKennaCommitted.