2015-08-14, 17:17:39
(2015-06-18, 01:29:00)Carlos Wrote: A quick fix for Pages and Comments 3.2, to make it compatible with News Manager 3.0 or later, with certain url structures.
In pages_comments/pcmanager.php, change lines 486-494 by this:
PHP Code:if ($pcintegNM == 1 && $fich == $pcpageNM){
if (function_exists('nm_is_single')) { // NM 3.0+
if (nm_is_single()) {
$post = nm_post_slug(false);
$urlsearch = $post.'.NMG';
$idpret = nm_post_url(false);
}
} else {
$post = isset($_GET['post']) ? $_GET['post'] : '';
$urlsearch = isset($_GET['post']) ? $post.'.NMG' : $fich.'.xml';
if($PRETTYURLS =='') {
$idpret = isset($_GET['post']) ? $idpret.'&post='.$post : $idpret;
} else {
$idpret = isset($_GET['post']) ? $idpret.'post/'.$post : $idpret;
}
}
}
My pages_comments/pcmanager.php has only 120 lines and no code even remotely similar to this. :S