Log in

View Full Version : Editor


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 !

Andreas
10-11-2005, 07:29 PM
Watch out for JavaScript errors ;)

HiDeo
10-11-2005, 07:39 PM
I have :

Erreur : fetch_object("currentPost") has no properties

but don't understand

I'm not a pro in js

No idea ??????

albibak
10-12-2005, 11:48 AM
I have exactly the same problem.
Someone have an idea ?

HiDeo
10-27-2005, 07:20 PM
No Idea please ??

HiDeo
10-29-2005, 11:21 PM
Up the thread !

Alan @ CIT
11-03-2005, 11:59 AM
Edit: Adding enctype="multipart/form-data" to the <form> tag in my template fixed it for me. It now submits the message correctly every time.