-
Website
http://seanreiser.com -
Original page
http://seanreiser.com/node/1336 -
Subscribe
All Comments -
Community
-
Top Commenters
-
seemsArtless
6 comments · 3 points
-
sreiser
49 comments · 21 points
-
Shey
6 comments · 43 points
-
webomatica
2 comments · 5 points
-
dbodoff
2 comments · 1 points
-
-
Popular Threads
please let me know so we can add it in!
--
Rob
I'm curious... does your module back up the comments into Drupal's comment system. This might be useful as a fall back position should Disqus go down.
2) Daniel Ha Already Posted this on the Disqus Blog (I mentioned it in their forums). I'll post something over in Drupal Land later today.
3) I'm curious, was it much different under 6.2?
I had already used method 1 but would prefer the 'block' solution.
I tried different settings for 'Page Visibility' (blog/*) but still no joy. Any pointers ?
If that isn't it try this in the validation (note that I have added a block type of blog):
<?php
$match = FALSE;
$types = array('story' => 1, 'page' => 1, 'blog'=>1);
if (arg(0) == 'node' && is_numeric(arg(1))) {
$nid = arg(1);
$node = node_load(array('nid' => $nid));
$type = $node->type;
if (isset($types[$type])) {
$match = TRUE;
}
}
return $match;
?>
Good Luck and let me know!
However, I would probably include 'blog' as a node type in the example as I am sure this will be pretty common.
Couple of minor typo-ettes: 12. 'Past' -> 'paste' and on /edit 'to content' -> 'the content'
Well, welcome to Drupal!
I'll mention that it works for version 6.x as well then and correct the minor typos tonight (Blogging at 1AM is never a good idea).
If I get 10 mins I'll try and write a proper module instead of this hack, and merge it with the comments module. The nice thing about that approach is that we can backup the disqus comments into the current comment infrastructure so if disqus isn't around I don't lose my content history.
screen only gives me the option to add it to the left sidebar. Which
makes me wonder if either this is specific to the theme you are using,
or if I am missing a module. How were you able to add "content" to
that particular drop down?
And by the way, this how-to was awesome. Exactly what a new guy like
me needs. Really appreciate.
Why write from scratch? Take a good look at some of the photo gallery type modules in drupal. you might find a solution to what you want without the work.
And I started the blog for two reasons, to force myself to learn more about photography, but also as a project to learn more about PHP and MySQL, etc... 979 unique photos later, it is safe to say that I've got the hang of things... ;-)
Thanks for sharing the " Correct Way " ... : )