Simple Machines Community Forum

Customizing SMF => Bridges and Integrations => Topic started by: Kiori on August 06, 2016, 06:31:32 PM

Title: Integrating smf inside regular website
Post by: Kiori on August 06, 2016, 06:31:32 PM
So what i want is for smf to exist inside a certain part of the website.
Namely i need the header and footer to be independent so when and action reloads the page, it doesnt have to reload everything else, only the content proper.

My original idea was to include the main page inside a <iframe> and go from there. Also i wanted smf' login to be accessible and persistent in another section, so maybe another iframe would come into play.

I've looked into SSI, integration hooks, and theming. And this seems to be feasible.

My question is: is there a better way to do this, is there any optimal way to approach this?

Any recommendations are appreciated. Thanks!
Title: Re: Integrating smf inside regular website
Post by: Kindred on August 06, 2016, 08:59:31 PM
iframes are bad....   and, as far as I know, SMF will not run in an iframe, because it is a security risk.

integrating your forum into your site (for example, like we do here) can be done by making a header and footer and using them as an include in index.template.php

SSI is for using parts of SMF (like the permissions system or various SMF content within your other pages -- but not as an iframe... as actual includes inside the page code
Title: Re: Integrating smf inside regular website
Post by: Kiori on August 13, 2016, 02:05:50 PM
Hi, i've been looking into it, but the docs are scarce. I'm gonna post on the coding section and hope for the best. :D

Posted here: http://www.simplemachines.org/community/index.php?topic=547938.0