2011-09-12, 07:00:00
Thanks for this cool plugin.
The News Manager plugin has some new code so this post is keep the forum current. To utilize the External Comments in the News Manager insert 2 lines in the site.php file:
These 2 lines were added:
The News Manager plugin has some new code so this post is keep the forum current. To utilize the External Comments in the News Manager insert 2 lines in the site.php file:
Code:
<?php
# print tags, if any
if (!empty($post->tags)) {
echo '<p class="nm_post_meta"><b>' . i18n_r('news_manager/TAGS') . ':</b>';
$tags = explode(',', $post->tags);
foreach ($tags as $tag) {
$url = nm_get_url('tag') . $tag;
echo " <a href=\"$url\">$tag</a>";
}
echo '</p>';
}
# added to display a comment box via the External Comments Plugin
get_external_comments($slug, $url, $title);
# show "go back" link, if required
if (strstr($_SERVER['QUERY_STRING'], "post=$slug")) {
echo '<p class="nm_post_back"><a href="javascript:history.back()"><< ';
i18n('news_manager/GO_BACK');
echo '</a></p>';
}
?>
These 2 lines were added:
Code:
# added to display a comment box via the External Comments Plugin
get_external_comments($slug, $url, $title);