13
           
            
                
     
    
    Very interesting Blueteen 

On my website, I use the following code added in the header.php file (yes, I know, hacking core files is not a good idea):
 $toppage = false; 
 
    if (isset($xoopsModule) && is_object($xoopsModule)) { 
 
        if (preg_match("/index.php$/i", xoops_getenv('PHP_SELF')) && $xoopsConfig['startpage'] == $xoopsModule->getVar('dirname')) { 
 
            $toppage = true; 
 
        } 
 
    } else { 
 
        if (!empty($xoopsOption['show_cblock'])) { 
 
            $toppage = true; 
 
        } 
 
    $xoopsTpl->assign('xoops_istoppage',$toppage); 
 
    }  
So, in any theme.html file, I can use:
 <{if $xoops_istoppage}> 
some code here 
<{/if}>  
Cheers