23
           
            
                
     
    
    I have this code:
 if (defined("XOOPS_STARTPAGE_REDIRECTED") || (isset($GLOBALS['xoopsOption']['template_main']) && $GLOBALS['xoopsOption']['template_main'] == "db:system_homepage.html")) { 
            if (is_object($GLOBALS['xoopsTpl'])) { 
                $GLOBALS['xoopsTpl']->assign('homepage' ,true); 
            } 
        }  
The code in the module system:
 function eventCoreHeaderAddmeta($args) 
    { 
        if (!empty($_SESSION['redirect_message'])) { 
            if (defined("XOOPS_STARTPAGE_REDIRECTED") || (isset($GLOBALS['xoopsOption']['template_main']) && $GLOBALS['xoopsOption']['template_main'] == "db:system_homepage.html")) { 
            if (is_object($GLOBALS['xoopsTpl'])) { 
            $GLOBALS['xoopsTpl']->assign('homepage' ,true); 
            $GLOBALS['xoTheme']->addStylesheet('xoops.css'); 
            $GLOBALS['xoTheme']->addScript('browse.php?Frameworks/jquery/jquery.js'); 
            $GLOBALS['xoTheme']->addScript('browse.php?Frameworks/jquery/plugins/jquery.jgrowl.js'); 
            $GLOBALS['xoTheme']->addScript('', array('type' => 'text/javascript'), ' 
            (function($){ 
                $(document).ready(function(){ 
                $.jGrowl("' . $_SESSION['redirect_message'] . '", {  life:3000 , position: "center", speed: "slow" }); 
            }); 
            })(jQuery); 
            '); 
        } 
    } 
                } 
        }  
And I used this code in the theme
 <div id="news_box"> 
        <{if $homepage}> 
        <td>testtd> 
        <{/if}> 
        div>  
But it does not work
---------------------
I used this code
 <{if $SCRIPT_NAME == '/index.php' }>   
<div id="news_box"> 
        <td>testtd> 
        div>  
<{/if}>  
And
 <{if $xoops == '/index.php' }>   
<div id="news_box"> 
        <td>testtd> 
        div>  
<{/if}>  
But this code does not work