2011-06-30, 21:44:31
Got same problem with comments with news. Same comments on every news.
In extended_news_manager.php at line 919
title of news goes to last parametr.
in
external_comments.php
so I change line:
that makes combination return_page_slug() and return_page_title().
This modyfication will be a problem only when You change page title. Then comments will dissapire.
For me it does the job.
Maby it will be good to make changes in extended_news_manager for that purpose.
BTW. when I put
<?php get_external_comments($id, $url, $title); ?>
in template, and called function:
<?php echo $id.' url:'.$url.' title:'.$title; ?>
it showed me:
news url:news title:news
In extended_news_manager.php at line 919
Code:
return_external_comments($plugin_settings->news_page.'-', $url, $title)
in
external_comments.php
Code:
in function:
return_external_comments($PostID='', $PageURL='', $PageTitle='')
$PageTitle isn't putted nowhere in
case 'ID':
$new_content .= '<script>';
$new_content .= "var idcomments_acct = '" . $external_comments_conf['shortname'] . "';";
$new_content .= "var idcomments_post_id = '" . $PostID . "';";
$new_content .= "var idcomments_post_url = '" . $PageURL . "';";
$new_content .= "</script>";
$new_content .= '<span id="IDCommentsPostTitle" style="display:none"></span>';
$new_content .= "<script type='text/javascript' src='http://www.intensedebate.com/js/genericCommentWrapperV2.js'></script>";
break;
so I change line:
Code:
$new_content .= "var idcomments_post_id = '" . $PostID . "';";
to:
$new_content .= "var idcomments_post_id = '" . $PostID ."-" . $PageTitle . "';";
that makes combination return_page_slug() and return_page_title().
This modyfication will be a problem only when You change page title. Then comments will dissapire.
For me it does the job.
Maby it will be good to make changes in extended_news_manager for that purpose.
BTW. when I put
<?php get_external_comments($id, $url, $title); ?>
in template, and called function:
<?php echo $id.' url:'.$url.' title:'.$title; ?>
it showed me:
news url:news title:news