Advertisement:

Author Topic: MKportal: A little hack --> Portal news taken by forum!  (Read 7916 times)

Offline Treviño

  • Newbie
  • *
  • Posts: 7
MKportal: A little hack --> Portal news taken by forum!
« on: February 08, 2005, 04:38:51 PM »
Hello, waiting for the mkportal M6, wich will allow to import news from thread, I've done a little hack to my MKportal wich lets you add simply the news in the portal, importing them from the forum.
You need to use (and, if you want, configure) your SSI.php file, and then to make this little modification to the news.php page that you can find in the mkportal\blocks dir.

I think you can add this code in every line you want (between the <? ?>) of your news.php file (i've found this hack without any php knowledge)

Anyway I've added it after this code and it works greatly!

Code: [Select]
LOOK FOR

$content = "<tr><td id=\"contents\">";
$content .= $output;
$content .= "</td></tr>";

Code: [Select]
AFTER ADD

$content=implode("", file("http://url.ext/forum/SSI.php?ssi_function=boardNews"));

Bye, bye! :D