257
eventspeak, my previous post was addressed to dslchart.
Yogurt will not run in your XOOPS version unless you assign css and js to xoopsTpl instead of xotheme.
You will have to do something like this in all files:
Search:
/**
* Adding to the module js and css of the lightbox and new ones
*/
$xoTheme->addStylesheet(XOOPS_URL.'/modules/'.$xoopsModule->getVar('dirname').'/include/yogurt.css');
$xoTheme->addStylesheet(XOOPS_URL.'/modules/'.$xoopsModule->getVar('dirname').'/css/jquery.tabs.css');
// what browser they use if IE then add corrective script.
if(ereg("msie", strtolower($_SERVER['HTTP_USER_AGENT']))) {
$xoTheme->addStylesheet(XOOPS_URL.'/modules/'.$xoopsModule->getVar('dirname').'/css/jquery.tabs-ie.css');
}
$xoTheme->addStylesheet(XOOPS_URL.'/modules/'.$xoopsModule->getVar('dirname').'/include/jquery.lightbox-0.3.css');
$xoTheme->addScript(XOOPS_URL.'/modules/'.$xoopsModule->getVar('dirname').'/include/jquery.js');
$xoTheme->addScript(XOOPS_URL.'/modules/'.$xoopsModule->getVar('dirname').'/include/jquery.lightbox-0.3.js');
$xoTheme->addScript(XOOPS_URL.'/modules/'.$xoopsModule->getVar('dirname').'/include/yogurt.js');
Replace:
$includeIE = '';
if(ereg("msie", strtolower($_SERVER['HTTP_USER_AGENT']))) {
$includeIE = '.XOOPS_URL.'/modules/'.$xoopsModule->getVar('dirname').'/css/jquery.tabs-ie.css" />';
}
$xoopsTpl->assign( 'xoops_module_header' ,
'.XOOPS_URL.'/modules/'.$xoopsModule->getVar('dirname').'/include/yogurt.css" />
.XOOPS_URL.'/modules/'.$xoopsModule->getVar('dirname').'/css/jquery.tabs.css" />
.XOOPS_URL.'/modules/'.$xoopsModule->getVar('dirname').'/include/jquery.lightbox-0.3.css" />
'.$includeIE.'
'.$xoopsTpl->get_template_vars("xoops_module_header")
);
And i did not test this, it may have some bug there, but you got the ideia.