Simple Machines Forum - Front End Integration
Posted: Wed 14. Dec 2005, 20:02
This is a front end integration which allows you to make use of the SSI functions avalable in SMF in any of the front end areas of your phpWCMS.
Getting it to work is simple, Just open up your index.php file and find:
require_once ('config/phpwcms/conf.inc.php');
require_once ("include/inc_lib/default.inc.php");
Just add another line directly below, pointing to the SSI.php file in your smf forum directory, for example:
require_once ("/home/username/public_html/forums/SSI.php");
Obviously the path to your file on your server will be different do make the appropriate adjustments.
Save and upload the modified file.
From now on you can implement the ssi functions in your articles and templates using the [PHP][/PHP] replacement tags.
For example to display the welcome mesasage to a registered user at the top of your page, just insert:
[PHP]ssi_welcome();[/PHP]
For more details on which ssi calls are avaiable check your forums directory for the ssi_exemples.php file.
http://www.yourdomain.com/yourforum/ssi_examples.php
Just remeber that rather than using <?php ?> tags you are using [PHP][/PHP]
Just thought I'd post this here for documentation purposes.
Feel free to visit my phpWCMS driven site http://flashfilmmaker.com if you need to see and example of this.
Getting it to work is simple, Just open up your index.php file and find:
require_once ('config/phpwcms/conf.inc.php');
require_once ("include/inc_lib/default.inc.php");
Just add another line directly below, pointing to the SSI.php file in your smf forum directory, for example:
require_once ("/home/username/public_html/forums/SSI.php");
Obviously the path to your file on your server will be different do make the appropriate adjustments.
Save and upload the modified file.
From now on you can implement the ssi functions in your articles and templates using the [PHP][/PHP] replacement tags.
For example to display the welcome mesasage to a registered user at the top of your page, just insert:
[PHP]ssi_welcome();[/PHP]
For more details on which ssi calls are avaiable check your forums directory for the ssi_exemples.php file.
http://www.yourdomain.com/yourforum/ssi_examples.php
Just remeber that rather than using <?php ?> tags you are using [PHP][/PHP]
Just thought I'd post this here for documentation purposes.
Feel free to visit my phpWCMS driven site http://flashfilmmaker.com if you need to see and example of this.