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
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.)
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.
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");
Thanks a lot SlammedDime it's all working now.
I have a some problem too
http://www.asungharimmasub.com/