smf.mkportal.it/forum/index.php?topic=50.msg150#msg150 (broken link)
Here is an example of how to use the SMF SSI.php in a MKP module. I tested this one and it works.
<?php
if (!defined("IN_MKP")) {
die ("Sorry !! You cannot access this file directly.");
}
if(!$mkportals->member['id']) {
$message = "You are not authorized to access the New Module.";
$mklib->error_page($message);
exit;
}
$output = implode("", file("http://www.YourSite.com/forums/SSI.php?ssi_function=boardNews;board=1;limit=5;length=290"));
$mklib->printpage("1", "1", "New Module", $output);
?>
Change the 2 occurrences of "New Module" with whatever you want to title your page.This section of code prevents guests from viewing the module. If you want guests to be able to access the module then you should delete it or comment it out...
if(!$mkportals->member['id']) {
$message = "You are not authorized to access the New Module.";
$mklib->error_page($message);
exit;
}
-=DKC=-













