1
           
            
                
     
    
    hi'
I'm still fighting against Xoops search forms 

Now I would like to adapt a plugin coded by Dugris and called {xoSearchForModule}.
 function smarty_function_xoSearchForModule( $params, &$smarty ) { 
    global $xoopsModule, $xoopsConfig; 
    if ( is_object($xoopsModule) && $xoopsModule->getVar('hassearch') == 1 ) { 
        include_once(XOOPS_ROOT_PATH . "/language/". $xoopsConfig['language'] . "/search.php"); 
 
        $config_handler =& xoops_gethandler('config'); 
        $xoopsConfigSearch =& $config_handler->getConfigsByCat(XOOPS_CONF_SEARCH); 
 
        $mid = $xoopsModule->getVar('mid'); 
        $modules[$mid] = $xoopsModule; 
        $queries = array(); 
        include_once XOOPS_ROOT_PATH . "/include/searchform.php"; 
 
        $new_search_form = new XoopsThemeForm(_SR_SEARCH, "search", XOOPS_URL . "/search.php", 'get'); 
 
        foreach ( $search_form->getElements() as $key => $ele ) { 
            if ( $ele->getCaption() != _SR_SEARCHIN ) { 
                $new_search_form->addElement( $search_form->_elements[$key] ); 
            } 
        } 
       $new_search_form->addElement(new XoopsFormHidden("mids[]", $mid )); 
        $new_search_form->display(); 
        $GLOBALS['xoopsLogger']->addExtra("plugin smarty for xoops => xoSearchForModule", "Loaded"); 
    } 
} 
?>  
What it does ? With this plugin you can add Xoops search form where you want on your page, just adding this smarty {xoSearchForModule}
What I would like it do ? Instead of Xoops global search form, I would like to display into my theme the Oledrion search form.
Is it possible using this kind of smarty plugin ?
Thanks in advance
    
        Still learning CSS and... english 
