amykhar
06-27-2005, 05:53 PM
I don't know what I am doing wrong.
I am using
$editorid = construct_edit_toolbar($text, 0, 'nonforum', iif($vbulletin->options['privallowsmilies'], 1, 0));
to set up the editor. It appears in the template no problem.
In the source code, I see the textarea is named 'message'. So, I should be able to process the data in $_POST['message'] or run it through the clean array to validate it.
But, I am not receiving the text.
If I use
$editorid = construct_edit_toolbar("Hello", 0, 'nonforum', iif($vbulletin->options['privallowsmilies'], 1, 0));
to create the editor, then the editor shows up with "Hello" in it, and it passes through successfully. I can even change the word Hello to zzzz and have zzzz come through instead.
But if I use
$editorid = construct_edit_toolbar(" ", 0, 'nonforum', iif($vbulletin->options['privallowsmilies'], 1, 0));
Nothing passes through again.
I am banging my head on the wall. How in heck do I use this editor? I have been trying to mimic what I see in newreply.php and private.php - it's just not working right.
Any suggestions?
I am using
$editorid = construct_edit_toolbar($text, 0, 'nonforum', iif($vbulletin->options['privallowsmilies'], 1, 0));
to set up the editor. It appears in the template no problem.
In the source code, I see the textarea is named 'message'. So, I should be able to process the data in $_POST['message'] or run it through the clean array to validate it.
But, I am not receiving the text.
If I use
$editorid = construct_edit_toolbar("Hello", 0, 'nonforum', iif($vbulletin->options['privallowsmilies'], 1, 0));
to create the editor, then the editor shows up with "Hello" in it, and it passes through successfully. I can even change the word Hello to zzzz and have zzzz come through instead.
But if I use
$editorid = construct_edit_toolbar(" ", 0, 'nonforum', iif($vbulletin->options['privallowsmilies'], 1, 0));
Nothing passes through again.
I am banging my head on the wall. How in heck do I use this editor? I have been trying to mimic what I see in newreply.php and private.php - it's just not working right.
Any suggestions?