<a href="http://www.calibernation.com" target="_blank"><img src="http://www.calibernation.com/img/cn_feed-1.png" height="15" width="80" alt="Caliber Nation" title="Caliber Nation" border="0" /></a>
<a href="http://www.z55.biz" target="_blank"><img src="http://www.calibernation.com/img/z55_feed-1.png" height="15" width="80" alt="Z55 Hosting" title="Z55 Hosting" border="0" /></a>
<?php
if (file_exists("mainfile.php")) {
include("mainfile.php");
}
elseif(file_exists("../mainfile.php")) {
include("../mainfile.php");
}
else {
include("../../mainfile.php");
}
include(XOOPS_ROOT_PATH . "/header.php");
$xoopsTpl->assign('xoops_showrblock', 0); // 1 display right blocks
$xoopsTpl->assign('xoops_showlblock', 0); // 1 display right blocks
?>
///////
Your code in html
///////
<?php
include(XOOPS_ROOT_PATH . "/footer.php");
?>
<?php
if (file_exists("mainfile.php")) {
include("mainfile.php");
}
elseif(file_exists("../mainfile.php")) {
include("../mainfile.php");
}
else {
include("../../mainfile.php");
}
include(XOOPS_ROOT_PATH . "/header.php");
$xoopsTpl->assign('xoops_showrblock', 0); // 1 display right blocks
$xoopsTpl->assign('xoops_showlblock', 0); // 1 display right blocks
echo "Your code";
include(XOOPS_ROOT_PATH . "/footer.php");
?>