How to make a customised html home page in Xoops

Requested and Answered by Carnuke on 2004/12/11 20:23:51

How to make a customised html home page in Xoops

One way to do this is to modify your file 'index.php' as follows

/**
 * redirects to installation, if xoops is not installed yet
 **/
include "mainfile.php";

//check if start page is defined
if ( isset($xoopsConfig['startpage']) && $xoopsConfig['startpage'] != "" && $xoopsConfig['startpage'] != "--" ) {
    
header('Location: '.XOOPS_URL.'/modules/'.$xoopsConfig['startpage'].'/');
    exit();
} else {
    
$xoopsOption['show_cblock'] =1;
    include 
"header.php";
    include 
"footer.php";
}


Put your own content between these lines

include "header.php";
(your own content here)
include "footer.php";

This Q&A was found on XOOPS Web Application System : https://xoops.org/modules/smartfaq/faq.php?faqid=304