Would really love this feature to be included in xoops.
if (!class_exists('XoopsFormDhtmlTextArea')) {
require_once XOOPS_ROOT_PATH."/class/xoopsformloader.php";
}
Fatal error: Class 'XoopsFormDhtmlTextArea' not found in C:\xampp\htdocs\swayams\class\smarty\plugins\function.xoopsdhtmltarea.php on line 34
function smarty_function_xoopsdhtmltarea($params, &$smarty)
{
if (!class_exists('xoopsformelement')) {
require_once XOOPS_ROOT_PATH."/class/xoopsformloader.php";
}
$form=null;
if( ! empty( $params['name'] ) ) {
$name = trim($params['name']);
$rows = isset($params['rows']) ? intval($params['rows']) : 5;
$cols = isset($params['cols']) ? intval($params['cols']) : 50;
$value = isset($params['value']) ? $params['value'] : "";
$form = new XoopsFormDhtmlTextArea($name,$name,$value,$rows,$cols);
$rendered = $form->render();
print '<div id="'.$name.'_bbcode_buttons_pre" style="'.@$params['pre_style'].'">'.str_replace( array( '<textarea' , '</textarea><br />' ) , array( '</div><textarea' , '</textarea><div id="'.$name.'_bbcode_buttons_post" style="'.@$params['post_style'].'">' ) , $rendered ) . '</div>' ;
}
}
None All Errors (1) Queries (58) Blocks (3) Extra (23) Timers(8)
Errors
Warning: xoopsOption[template_main] should be defined before including header.php in file /footer.php line 62
XOOPS Version XOOPS 2.4.1
PHP Version 5.2.8
mySQL Version 5.1.30-community
D3downloads 1.47