2011-11-10, 04:43:16
allienato Wrote:no luck even if I increase memory limit up to 64/128M, maximum execution time always exceed :\
Just tried it myself - this produced an infinite recursion :-(
If you are lucky and I18N Gallery executes after News Manager, it should work without the described patch.
But if you want to make sure:
The line in site.php/nm_show_post should be:
Code:
if ($excerpt) $content = nm_create_excerpt($content); else $content = exec_filter('content',$content);
Additionally add the following lines to the beginning of news_manager.php/nm_site to prevent recursion:
Code:
global $nm_in_filter;
if (@$nm_in_filter) return $content;
$nm_in_filter = true;
The code in the template should be:
Code:
<?php
$page = return_page_slug();
if($page == 'nm' && isset($_GET['post'])) {
$newscontent = nm_get_post(@$_GET['post']);
get_i18n_gallery_header_from_content($newscontent);
}
?>
That's it, quick and dirty.