11
1. To solve this just add this row
$editor_configs["caption"] = $caption;
below these rows in functions.php
$editor_configs=array();
$editor_configs["name"] =$name;
$editor_configs["value"] = $value;
$editor_configs["rows"] = 35;
$editor_configs["cols"] = 60;
$editor_configs["width"] = "100%";
$editor_configs["height"] = "400px";
2. This one need two changes to be solved, first by adding this row
include_once( getLanguage( $this->getUrl() ) );
below this rows in the file formwysiwygtextarea.php
/**
* Prepare HTML for output
*
* @return string HTML
*/
function render()
{
// include files
include_once XOOPS_ROOT_PATH . '' . $this->getUrl() . '/include/functions.inc.php';
Then you also need to move this /* before the first function in the file include/functions.inc.php to right after the getLanguage function, so it looks like this instead
// 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)
*/