I'm still in the process of developing my free lycos website. I've been trying to use the SSI.php file to get my homepage to display the forum 'welcome - login or register'. Using the SSI file outside of the forum folder has a number of problems. (yabbse 1.5.1B44)
My homepage is of course in the root directory and is the default page for the website - this is why the yabbse forum is in a sub-directory, to prevent conflict with yabbse/index.php becoming the default page.
Following the instructions supplied with ssi_examples.php I get the following error:
Fatal error:call to undefined function clicklog() in SSI.php on line 59
Clicklog() is the first function call in SSI.php so if you get this error it indicates a problem with SSI locating the appropriate code for the function definition. The problem is associated with all of the 'include_once' code instructions in SSI.php at:
line 49 include_once($full_yabbse_path .'/Settings.php')
line 54 include_once($sourcedir . '/Errors.php')
line 55 include_once($sourcedir . '/Subs.php')
line 56 include_once($sourcedir . '/Load.php')
line 87 include_once($language)
line 92 include_once($language)
The only way I could get SSI to work with my homepage sitting above the yabbse forum directory was as follows:
1.Make a copy of SSI.php and store it in my root directory (same as my homepage).
2. Hard code the actual forum path into the above lines in SSI.php, as opposed to using the predefined variables ,
e.g.
line 49 include_once('./yabbse/Settings.php')
line 54 include_once('./yabbse/Sources/Errors.php')
line 87 include_once('yabbse/english.lng')
The first line of the homepage remains as per the example in ssi_example.php.
Of course, SSI works OK without any changes if my homepage sits in the same directory as yabbse. But as I said, this causes a conflict with making my homepage the default.
I hope this info helps anybody else who has been struggling with this.
regards, smiler