Overview Of The SMF SSI Script:
The included SSI script for SMF allows several of the forum modules to be displayed on non-forum related pages such as static pages and non-SMF generated dynamic pages. This way you could display whatever your forum news is on any or all pages on your website with just a few lines of code. This is a great way to make your forum really fit in your website. There are 2 ways to use the SSI.php script, the SSI method and the PHP method.
Using The Sever Side Includes (SSI) Method:
If you are adding the included function (module) to an HTML file then you need only do a couple of things to make it work.
First, add the following line of code into your html file where you want to display the SMF content:
CODE
<!--#include virtual="./SSI.php?ssi_function=news" -->
Be sure that your path is correct.
Second, rename your file's extention to .shtml - this will tell the server that you want to use the SSI feature with this file.
Using The PHP Method:
This requires a little more coding but works the same way. Easiest to use on php files because the file extention will not need to be changed.
First, add the following code to the top of the file, before the <html> tag:
CODE
<?php require("/home/username/public_html/forum/SSI.php"); ?>
This line needs only be added one time per file no matter how many SMF functions are used in the file.Second, add the following code in youe file where you want the SMF content to be displayed:
CODE
<?php ssi_news(); ?>
Third, change the file extention of your file to .php if it isn't already a PHP file.
For more information about which SMF functions can be displayed using the SSI.php script, point your browser to either www.domain_name.com/forum/ssi_examples.php or www.domain_name.com/forum/ssi_examples.shtml.
These files will display all of the included functions as well as the code required to display the content.
The only downside to these functions is that most links that they generate will lead back to the forum so trying to shout from your directory page will redirect you to the forum index where your shout will then be displayed.
Keep in mind that different versions of SMF usually have different versions of SSI.php.
Hope this help everyone out.
Happy Including.
vujsa

