8
I am trying to get my html pages to show up inside of Xoops. I found this code to add to the html pages:
<?php
include("../mainfile.php");
include(XOOPS_ROOT_PATH."/header.php");
$xoopsOption['show_rblock'] = 1;
?>
The content of your original html file goes here!!
<?php
include(XOOPS_ROOT_PATH."/footer.php");
?>
I am getting these errors:
Warning: main(xoops/mainfile.php): failed to open stream: No such file or directory in /home/mmannie/public_html/uffle/xoops/greasyweasels.php on line 2
Warning: main(): Failed opening 'xoops/mainfile.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mmannie/public_html/uffle/xoops/greasyweasels.php on line 2
Warning: main(XOOPS_ROOT_PATH/header.php): failed to open stream: No such file or directory in /home/mmannie/public_html/uffle/xoops/greasyweasels.php on line 3
Warning: main(): Failed opening 'XOOPS_ROOT_PATH/header.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mmannie/public_html/uffle/xoops/greasyweasels.php on line 3
I think It has something to do with the my path to the mainfile.php. I can't figure out what the path should be.