Closed (won't fix)
Project:
Disqus
Version:
6.x-1.x-dev
Component:
Documentation
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
9 Sep 2010 at 12:22 UTC
Updated:
30 May 2013 at 02:26 UTC
What is the code for including Disqus in a custom theme, that dows not output any "drupal content"?
Comments
Comment #1
robloachYou'd have to update to the development snapshot, and choose to output Disqus as a variable ;-) . Let me know if it works and I'll make a 1.7 release.
Comment #2
espenmoe commentedHow do i insert the variable?
I can't find any documentation.
is this the one?
http://drupal.org/node/580900#comment-2092008
Comment #3
robloachIn your node tpl file, you should be able to use:
You'd need Disqus 6.x-1.x-dev though. If you report success, then I'll make a 1.7 release.
Comment #4
espenmoe commentedAs far as I can see (quick testing), it does pull out the Disqus comment form.
You can see for yourself here:
http://beta.journalisten.no/story/62420
Comment #5
thepaul commentedCan't get this to work in a custom theme.
That code in the node.tpl results in nothing being output. I did upgrade to the 6.x-1x-dev version.
Comment #6
robloachDid you change it to Variable output in the configuration settings? Try this:
It should be in there somewhere.
Comment #7
thepaul commentedThanks for the quick response Rob, I ran print_r and see the following:
But nothing outputs...
... the comments aren't even showing when I try to display them as a block so I probably have bigger problems.
Comment #8
carlhinton commentedSame problem here - what is really needed is for the function render($values) found in disqus.views.inc to be converted so that it outputs to .tpl.php files - this would give themers complete control over the comment output. We have a particularly difficult accessibility problem as some of our comments are in Arabic and others in English. We need to tell the CSS whether to align right / left and apend language identifiers at appropriate points.
Comment #9
futbol724 commentedThis is the first time I work on my own custom theme for a content-type and #6 definitely works. You just have to set the module to use INJECTED VARIABLE (in /admin/settings/disqus/general) and then place the variable in your custom template file wherever you want the comments displayed.
Such as
echo $node->disqus_comments;Thanks Rob!
Comment #10
marcingy commented