HiDeo
10-11-2005, 07:27 PM
Hello, I'm making a hack for vb3.5 but I have a problem.
I try to use the editor but there is a problem. To save information from the editor, I have to use the non-wysiwyg editor. I can't use the wysiwyg editor and I don't know why :s
My code:
if ($_REQUEST['do'] == 'add')
{
require_once(DIR . '/includes/functions_editor.php');
$editorid = construct_edit_toolbar();
}
if ($_REQUEST['do'] == 'doadd')
{
$vbulletin->input->clean_array_gpc('p', array(
'message' => TYPE_STR,
'wysiwyg' => TYPE_BOOL,
));
if ($vbulletin->GPC['wysiwyg'])
{
require_once(DIR . '/includes/functions_wysiwyg.php');
$description = convert_wysiwyg_html_to_bbcode($vbulletin->GPC['message'], 1);
}
else
{
$description = $vbulletin->GPC['message'];
}
}
Cam someone help me ?
Thanks in advance !
I try to use the editor but there is a problem. To save information from the editor, I have to use the non-wysiwyg editor. I can't use the wysiwyg editor and I don't know why :s
My code:
if ($_REQUEST['do'] == 'add')
{
require_once(DIR . '/includes/functions_editor.php');
$editorid = construct_edit_toolbar();
}
if ($_REQUEST['do'] == 'doadd')
{
$vbulletin->input->clean_array_gpc('p', array(
'message' => TYPE_STR,
'wysiwyg' => TYPE_BOOL,
));
if ($vbulletin->GPC['wysiwyg'])
{
require_once(DIR . '/includes/functions_wysiwyg.php');
$description = convert_wysiwyg_html_to_bbcode($vbulletin->GPC['message'], 1);
}
else
{
$description = $vbulletin->GPC['message'];
}
}
Cam someone help me ?
Thanks in advance !