2014-06-17, 07:23:11
2016-12-09, 05:00:22
Why, when I add (% external_comments %) to more than one post, the comments are the same for all posts? I mean, why it doesn't generate new comment form for new post? I use News Manager from Carlos.
2016-12-09, 05:25:54
That placeholder works for normal pages, and posts are all displayed in one page, so you get the form for that page.
2016-12-09, 05:29:47
A way to add support for External Comments to News Manager 3.0+ :
Create a component named e.g. post-comments with this content:
(where
Enable NM Custom Settings and insert this:
Create a component named e.g. post-comments with this content:
Code:
<?php
get_external_comments(
'news-manager-blog/'.nm_post_slug(0),
nm_post_url(0),
nm_post_title('','',0)
);
?>
news-manager-blog/
is a custom prefix for the post id - Change it to use your own preferred one, like blog/
, news/
, ...)Enable NM Custom Settings and insert this:
Code:
single componentAfterPost post-comments
2016-12-09, 05:57:05
(2016-12-09, 05:29:47)Carlos Wrote: [ -> ]A way to add support for External Comments to News Manager 3.0+ :Nice, thanks.
Create a component named e.g. post-comments with this content:
(whereCode:<?php
get_external_comments(
'news-manager-blog/'.nm_post_slug(0),
nm_post_url(0),
nm_post_title('','',0)
);
?>news-manager-blog/
is a custom prefix for the post id - Change it to use your own preferred one, likeblog/
,news/
, ...)
Enable NM Custom Settings and insert this:
Code:single componentAfterPost post-comments
2018-01-11, 20:34:52
A way to add support for News Manager plugin for GetSimple ver. 3.6
For VK plugin change in external_comments.php
Create a component named e.g. post-comments with this content:
Where YOUR_WEB_SITE_URL/ is a custom prefix for the post id - Change it to use your own preferred one.
Enable NM Custom Settings and insert this:
Example http://www.stoevro.by/?post=vzroslye-muz...ift-na-bmw
For VK plugin change in external_comments.php
PHP Code:
case 'vk':
/*$new_content .= "<script type='text/javascript'>VK.init({apiId: " . $external_comments_conf['shortname'] . ", onlyWidgets: true });</script>";
$new_content .= "<div id='vk_comments'></div>";
$new_content .= "<script type='text/javascript'>VK.Widgets.Comments('vk_comments', {page_id: '" . $PostID . "'}); </script>";
break;*/
$new_content .= "<script type='text/javascript' src='//vk.com/js/api/openapi.js?151'></script>";
$new_content .= "<script type='text/javascript'>";
$new_content .= "VK.init({apiId: " . $external_comments_conf['shortname'] . ", onlyWidgets: true});";
$new_content .= "</script>";
$new_content .= "<div id='vk_comments'></div>";
$new_content .= "<script type='text/javascript'>";
$new_content .= "VK.Widgets.Comments('vk_comments', {limit: 10, attach: false});";
$new_content .= "</script>";
break;
Create a component named e.g. post-comments with this content:
PHP Code:
<?php
get_external_comments(
'YOUR_WEB_SITE_URL/?post='.nm_post_slug(0),
nm_post_url(0),
nm_post_title('','',0)
);
?>
Enable NM Custom Settings and insert this:
Code:
single componentAfterPost post-comments
Example http://www.stoevro.by/?post=vzroslye-muz...ift-na-bmw