Simple Machines Community Forum

Customizing SMF => Bridges and Integrations => Topic started by: Zygaun on October 30, 2008, 02:58:33 AM

Title: SSI.php problems
Post by: Zygaun on October 30, 2008, 02:58:33 AM
I'm super new to smf/forums in general so take it easy on me O:)
I'm trying to display the most recent forum posts on my website using SSI, but when I try to use the code
<?php require("/path/to/forum/SSI.php"); ?>
it gives me an invalid path error. How can I change the directory and how do I find the directory that it needs to be? I also wanted to link my website members with the forum, I read a few posts about bridging and that's way over my head lol.

Thanks
Title: Re: SSI.php problems
Post by: Dragooon on October 30, 2008, 03:24:22 AM
Is your website on the same server as SMF?

EDIT : And do you use that piece of code only? That is, do you enter the correct path or just leave it like that?(To see the path to your boarddir - see Admin - > Server Settings.)
Title: Re: SSI.php problems
Post by: Zygaun on October 30, 2008, 03:31:15 AM
No I enter in the correct path. It's in the same server but uses a different database, not to sure if that matters.
The smf path in the server settings is set to "/home/zygaun/public_html/smf". I have no idea where the /home/zygaun part came from but the rest is correct. The path to the forums would be www.lethalplay.com/smf.

EDIT: Also forgot to mention it doesn't allow me to modify the path in the server settings. Once I save, the path reverts to what it originally was.
Title: Re: SSI.php problems
Post by: SlammedDime on November 05, 2008, 06:37:43 PM
A path is a server location to a file ("/home/zygaun/public_html/smf").  A location/url, is a way to get to the file from the outside world (www.lethalplay.com/smf).

If the path to SMF is as above, then to include SSI, you would use

require_once("/home/zygaun/public_html/smf/SSI.php");
Title: Re: SSI.php problems
Post by: Zygaun on November 05, 2008, 07:25:48 PM
Thanks a lot SlammedDime it's all working now.
Title: Re: SSI.php problems
Post by: Weerapat on November 06, 2008, 03:21:31 AM
I have a some problem too

http://www.asungharimmasub.com/