Hi Mike,
Normally patches are applied with "patch" utility available on unix/linux systems or from Cygwin toolkit on Windows platform. If you don't have it you can do it manually (the format of the patch files is very easy to interpret). Or if you feel comfortable accepting PHP files from strangers, you can also use files patched by myself, see attachment. If you only want to patch "empty page" problem, you only need to get "action.showblog.php" file and place it into modules/Blogs directory. You need to remove .txt extension, I have added it because forum does not allow attaching files with .php extensions.
Here are the basic instructions how to interpret the content of the patch files:
1) Find file to apply the patch to, action.showblog.php in subdirectory modules/Blogs in your cmsms file tree (file name to patch can be found in "---" or "+++" lines of the patch file).
2) Look around line number 28 (line number can be found in "@@ -28,6 +28,7 @@" line in the patch file). you will find a chunk of text resembling
array_push($entries, $onerow);
}
$this->smarty->assign_by_ref('items', $entries);
3) Right after this file, add a patch (lines starting from + in the patch file are ones which has to be added, you may also find ones prefixed with "-" those you have to remove). In our example you need to add just this line:
$this->smarty->assign('itemcount', count($entries));
the resulting text will look like
array_push($entries, $onerow);
}
$this->smarty->assign_by_ref('items', $entries);
$this->smarty->assign('itemcount', count($entries));
Cheers,
Alex
--
www.scanit.be
[gelöscht durch Administrator]