Simple Machines Forum - Front End Integration

Post custom hacks and enhancements for phpwcms here only. Maybe some of these things will be included in official release later.
Post Reply
Ibis Fernandez
Posts: 67
Joined: Tue 22. Jun 2004, 19:54
Contact:

Simple Machines Forum - Front End Integration

Post by Ibis Fernandez »

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.
Ibis Fernandez
Cinestar Filmworks
http://flashfilmmaker.com
http://cinestarfilmworks.com
Author of Macromedia Flash Animation and Cartooning: A Creative Guide
LPWV
Posts: 34
Joined: Mon 19. Dec 2005, 04:31

[RESOLVED] Thanks and a Question

Post by LPWV »

Thanks...I had been fighting with that and could not figure it out...

Do you know how I can call SimpleMachines into my CONTENT area...or into a template so it appears integrated into my site...

I am getting this error everytime I try it?

Code: Select all

Parse error: parse error, unexpected '<' in /usr/local/4admin/apache/vhosts/lpwv.org/httpdocs/include/inc_front/front.func.inc.php(2459) : eval()'d code on line 1

Thanks,
Last edited by LPWV on Fri 30. Dec 2005, 15:33, edited 1 time in total.
Michael S. Wilson
Ibis Fernandez
Posts: 67
Joined: Tue 22. Jun 2004, 19:54
Contact:

Post by Ibis Fernandez »

You're going to have to be a bit more specific in your request. Have you applied the integration as I have described above?

If you have, the all you have to do is apply the approprite ssi call in your content area using the [PHP][/PHP] tags.
Ibis Fernandez
Cinestar Filmworks
http://flashfilmmaker.com
http://cinestarfilmworks.com
Author of Macromedia Flash Animation and Cartooning: A Creative Guide
Post Reply