Well
Well, that was messy.
The reason it won't work is that the news plugin doesn't fire the content filters, so the replacement wan't happening. On top of that, the comment plugin uses the slug as a "unique identifier" which won't work with the news plugin as all the news articles have the same slug.
I've uploaded a new version of the external comment plugin to extend http://get-simple.info/extend/plugin/ext...enting/73/ that works (more or less) with the news plugin.
After installing the plugin, instead of using the tag:
in a page text or:
in your template you will have to edit the news plugin.....
Find the section:
and insert one new line to call get_external_comments and override the defaults:
This will call the external comments plugin and uniquely identify each news article so they can have separate comments.
Note This will NOT work with Disqus right now.... they might have a bug as I am following their API instructions exactly, as far as I can tell . I have reported it to Discus support so we will see what the result is..
-Rob A>
Mehk Wrote:Looks slick thanks alot for the suggestion, I just have a question.
I inserted the php code in my blog.php template
Code:<?php get_external_comments(); ?>
But blog.php is used as the blog mainpage and as the blog detailed pages, which now make the discus form appear on the blog page in general, I really only want them below the post.
And does this plugin show the comments relative to the blog post, cause to me it would seem its just one form that records the comments for all the blog posts on the site?
Hmm seems the tag doesnt work in News Manager on default.
Well, that was messy.
The reason it won't work is that the news plugin doesn't fire the content filters, so the replacement wan't happening. On top of that, the comment plugin uses the slug as a "unique identifier" which won't work with the news plugin as all the news articles have the same slug.
I've uploaded a new version of the external comment plugin to extend http://get-simple.info/extend/plugin/ext...enting/73/ that works (more or less) with the news plugin.
After installing the plugin, instead of using the tag:
Code:
(% external_comments %)
Code:
<?php get_external_comments(); ?>
Find the section:
Code:
<div class="article">
<h3 class="article_title">
<a href="<?php echo $url; ?>"><?php echo $title; ?></a>
</h3>
<p class="article_date">Posted on: <?php echo $date; ?></p>
<div class="article_content"><?php echo $content; ?></div>
<?php
if ($excerpt && !empty($data->excerpt))
echo "<p class=\"article_link\"><a href=\"$url\">Read more</a></p>";
elseif (!$excerpt)
echo "<p class=\"article_meta\"><b>Permalink:</b> <a href=\"$url\">$url</a></p>";
?>
</div>
and insert one new line to call get_external_comments and override the defaults:
Code:
<div class="article">
<h3 class="article_title">
<a href="<?php echo $url; ?>"><?php echo $title; ?></a>
</h3>
<p class="article_date">Posted on: <?php echo $date; ?></p>
<div class="article_content"><?php echo $content; ?></div>
<?php
if ($excerpt && !empty($data->excerpt))
echo "<p class=\"article_link\"><a href=\"$url\">Read more</a></p>";
elseif (!$excerpt)
get_external_comments($id, $url, $title);
echo "<p class=\"article_meta\"><b>Permalink:</b> <a href=\"$url\">$url</a></p>";
?>
</div>
This will call the external comments plugin and uniquely identify each news article so they can have separate comments.
Note This will NOT work with Disqus right now.... they might have a bug as I am following their API instructions exactly, as far as I can tell . I have reported it to Discus support so we will see what the result is..
-Rob A>