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