2
I tested and find a solution to this, I put the XOOPS code in at the top and the bottom.
<?php
include("../../mainfile.php");
include(XOOPS_ROOT_PATH."/header.php");
$xoopsOption['show_rblock'] = 1;
?>
Myhtml...
<?php
include(XOOPS_ROOT_PATH."/footer.php");
?>
And saved the page as a php file and that fixed my problem.