Jump to content


[Tutorial] SMF SSI.php functions in MKportal Blocks


  • You cannot reply to this topic
No replies to this topic

#1 visiblesoul

  • Administrators
  • 551 posts
  • Location:Earth
  • Texas

Posted 26 November 2004 - 08:19 PM

Here is an example of how to use the SMF SSI.php functions for creating new MKportal blocks. This example displays board news but the principle should work for other ssi functions too.

You can configure the options using these variables:

board=1;
limit=5;
length=290

<?php



$content=implode("", file("http://www.YourSite.com/forums/SSI.php?ssi_function=boardNews;board=1;limit=5;length=290"));



?>

Of course you need to change the URL to the correct one for your forum.

Have fun. ;)

-=DKC=-


Please note that I offer free support on this forum in my free time. Depending on how much work I have backlogged it may take me a week or more to answer questions. I am not ignoring you. I answer everyone but please be patient. Thanks.

Disclaimer: All forum posts, including code examples, on this forum are offered for free in the hope that they will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Use code examples at your own risk.

"If at first you don't succeed, keep on suckin' til you do succeed." -Curly Howard





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users