2013-04-11, 16:22:45
@TeeJay
Another test. This should make NM 2.3.5 generate its permalinks the way it did until 2.2.6, i.e. default index.php?id=slug&post=title, fancy /parent/slug/post/title, with no support for custom permalink structure.
Edit news_manager/inc/functions.php and replace the whole nm_get_url function by:
Another test. This should make NM 2.3.5 generate its permalinks the way it did until 2.2.6, i.e. default index.php?id=slug&post=title, fancy /parent/slug/post/title, with no support for custom permalink structure.
Edit news_manager/inc/functions.php and replace the whole nm_get_url function by:
Code:
function nm_get_url($query=false) {
global $SITEURL, $PRETTYURLS, $NMPAGEURL, $NMPRETTYURLS, $NMPARENTURL;
$url = find_url($NMPAGEURL, $NMPARENTURL);
if ($query) {
if ($PRETTYURLS == 1 && $NMPRETTYURLS == 'Y')
$url .= $query . '/';
elseif ($NMPAGEURL == 'index')
$url = $SITEURL . "index.php?$query=";
else
$url = $SITEURL . "index.php?id=$NMPAGEURL&$query=";
}
return $url;
}