Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
External Comments Plugin
#81
A way to add support for News Manager plugin for GetSimple ver. 3.6
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)
);
?>
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:
Code:
single componentAfterPost post-comments

Example http://www.stoevro.by/?post=vzroslye-muz...ift-na-bmw
Reply


Messages In This Thread
External Comments Plugin - by RobA - 2011-01-12, 07:21:17
RE: External Comments Plugin - by Nillerz - 2013-09-05, 07:22:27
RE: External Comments Plugin - by RobA - 2013-09-09, 03:04:25
RE: External Comments Plugin - by Angryboy - 2013-09-13, 00:08:56
RE: External Comments Plugin - by shawn_a - 2013-09-13, 01:55:50
RE: External Comments Plugin - by MicroCAD - 2014-06-16, 21:04:34
RE: External Comments Plugin - by Timbow - 2014-06-17, 07:23:11
RE: External Comments Plugin - by Artur - 2016-12-09, 05:00:22
RE: External Comments Plugin - by Carlos - 2016-12-09, 05:25:54
RE: External Comments Plugin - by Carlos - 2016-12-09, 05:29:47
RE: External Comments Plugin - by Artur - 2016-12-09, 05:57:05
RE: External Comments Plugin - by Piercer - 2018-01-11, 20:34:52
External Comments Plugin - by n00dles101 - 2011-01-12, 07:55:06
External Comments Plugin - by getsimplethemes - 2011-01-12, 15:49:46
External Comments Plugin - by RobA - 2011-01-13, 00:28:28
External Comments Plugin - by Oleg06 - 2011-01-13, 01:06:36
External Comments Plugin - by RobA - 2011-01-13, 03:07:18
External Comments Plugin - by Oleg06 - 2011-01-13, 04:07:27
External Comments Plugin - by Oleg06 - 2011-01-13, 04:44:57
External Comments Plugin - by Carlos - 2011-01-13, 05:24:24
External Comments Plugin - by RobA - 2011-01-13, 05:28:17
External Comments Plugin - by samrocksc - 2011-01-13, 05:28:35
External Comments Plugin - by RobA - 2011-01-13, 05:32:44
External Comments Plugin - by Oleg06 - 2011-01-13, 05:47:23
External Comments Plugin - by RobA - 2011-01-13, 06:02:45
External Comments Plugin - by RobA - 2011-01-13, 07:08:43
External Comments Plugin - by Oleg06 - 2011-01-13, 18:13:11
External Comments Plugin - by RobA - 2011-01-14, 00:28:02
External Comments Plugin - by Oleg06 - 2011-01-14, 01:38:33
External Comments Plugin - by RobA - 2011-01-14, 02:32:17
External Comments Plugin - by Oleg06 - 2011-01-14, 03:33:56
External Comments Plugin - by n00dles101 - 2011-01-14, 04:13:07
External Comments Plugin - by Oleg06 - 2011-01-14, 06:15:42
External Comments Plugin - by samrocksc - 2011-02-09, 05:29:39
External Comments Plugin - by RobA - 2011-02-09, 07:37:17
External Comments Plugin - by Oleg06 - 2011-04-12, 18:19:09
External Comments Plugin - by Mehk - 2011-04-12, 23:14:30
External Comments Plugin - by RobA - 2011-04-13, 01:36:06
External Comments Plugin - by RobA - 2011-04-13, 01:39:23
External Comments Plugin - by Mehk - 2011-04-13, 02:19:10
External Comments Plugin - by Oleg06 - 2011-04-13, 05:46:08
External Comments Plugin - by RobA - 2011-04-14, 01:27:52
External Comments Plugin - by RobA - 2011-04-14, 03:11:58
External Comments Plugin - by yojoe - 2011-04-14, 22:51:45
External Comments Plugin - by RobA - 2011-04-16, 06:43:42
External Comments Plugin - by RobA - 2011-04-18, 03:12:42
External Comments Plugin - by Oleg06 - 2011-04-18, 04:05:13
External Comments Plugin - by cradio - 2011-04-27, 20:05:53
External Comments Plugin - by RobA - 2011-04-27, 22:37:35
External Comments Plugin - by RobA - 2011-04-30, 04:35:41
External Comments Plugin - by Angryboy - 2011-06-06, 03:31:12
External Comments Plugin - by RobA - 2011-06-06, 06:20:32
External Comments Plugin - by Angryboy - 2011-06-06, 06:57:32
External Comments Plugin - by RobA - 2011-06-09, 12:43:43
External Comments Plugin - by Oleg06 - 2011-06-12, 05:20:49
External Comments Plugin - by RobA - 2011-06-12, 10:27:48
External Comments Plugin - by Oleg06 - 2011-06-13, 04:33:35
External Comments Plugin - by RobA - 2011-06-13, 05:06:11
External Comments Plugin - by Oleg06 - 2011-06-13, 05:42:44
External Comments Plugin - by Viggo - 2011-08-28, 09:02:50
External Comments Plugin - by RobA - 2011-08-28, 12:06:07
External Comments Plugin - by DonR - 2011-09-12, 07:00:00
External Comments Plugin - by polyfragmented - 2011-09-16, 20:37:54
External Comments Plugin - by Robzilla - 2011-10-06, 07:42:36
External Comments Plugin - by RobA - 2011-10-08, 10:41:36
External Comments Plugin - by Connie - 2011-10-08, 18:11:16
External Comments Plugin - by Robzilla - 2011-10-15, 01:10:31
External Comments Plugin - by RobA - 2011-10-15, 07:22:14
External Comments Plugin - by DonR - 2011-10-15, 07:35:22
External Comments Plugin - by cumbe - 2011-10-15, 20:43:49
External Comments Plugin - by szili - 2011-10-18, 03:40:16
External Comments Plugin - by RobA - 2011-10-18, 07:13:47
External Comments Plugin - by szili - 2011-10-18, 16:13:34
External Comments Plugin - by Janky - 2012-01-20, 09:15:05
External Comments Plugin - by draic_kin - 2012-02-16, 11:41:06
External Comments Plugin - by RobA - 2012-02-17, 05:23:42
External Comments Plugin - by draic_kin - 2012-02-17, 06:37:30
External Comments Plugin - by mandrav - 2012-03-13, 00:54:16
External Comments Plugin - by Kovalj - 2012-03-22, 01:23:17
External Comments Plugin - by RobA - 2012-03-22, 01:34:39
External Comments Plugin - by Kovalj - 2012-03-30, 03:58:13



Users browsing this thread: 2 Guest(s)