News Scripting for SMF 1.0
Copyright (C) 2002-2004 Simple Machines Team. All Rights Reserved.

1. Setup the include statement on the page you wish your news to appear on according to the type of file you will be using. (either PHP or SHTML) For this case, we are going to show you how to do it through PHP includes. Add the include to point to SSI.php in your root SMF directory.

Eg. <? include(""); ?>

2. Add the ?ssi_function=boardNews;board=n to the end of the URL above. Make sure you replace the n with the board number you want news to appear from.

Eg. <? include(";board=9"); ?>

That is all you need to do to get your basic script running. You can add any of the following to the end of that, but make sure you put a semilcolon (;) at the end of each variable. These variables aren't needed, but provide better versatility.

Limits the amount of news items to show. (the default is 5)

Limits the length of each post to n characters. (the default is to impose no limit)

Starts the news items at a certain offset. (the default is 0)

Eg. <? include(";board=9;limit=7"); ?>
This shows an example of how one might change the limit on the news items.