2015-06-18, 01:29:00
A quick fix for Pages and Comments 3.2, to make it compatible with News Manager 3.0 or later, with certain url structures.
[edited] In pages_comments.php pages_comments/pcmanager.php, change lines 486-494 by this:
[edited] In pages_comments.php 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;
}
}
}