and /class/xoopseditor/koivi/functions.inc.php which i proposed in my last post for the second problem?
These changes should solve the problem with language files not being included.
/**
* Prepare HTML for output
*
* @return string HTML
*/
function render()
{
// include files
include_once XOOPS_ROOT_PATH . '' . $this->getUrl() . '/include/functions.inc.php';
// Project: The XOOPS Project //
// ------------------------------------------------------------------------- //
function getMainfile($url)
{
$mpath='';
for ($i=0;$i<strlen($url);$i++)
{
if ($url[$i]=='/')$mpath.='../';
}
return $mpath.'mainfile.php';
}
function getLanguage($url)
{
global $xoopsConfig;
if(file_exists(XOOPS_ROOT_PATH.''.$url.'/language/'.$xoopsConfig['language'].'.php'))
return ''.XOOPS_ROOT_PATH.''.$url.'/language/'.$xoopsConfig['language'].'.php';
else return ''.XOOPS_ROOT_PATH.''.$url.'/language/english.php';
}
/*
function CheckBrowser($get_isie=true)
if (!($xoopsUser->getVar('name'))) {
$xoopsTpl->assign('playername',$xoopsUser->getVar('uname'));
}
$xoopsTpl->assign('playername',$xoopsUser->getVar('name'));