All,
I have successfully integrated the WYSIWYG Editor on a page outside of vBulletin however I cannot get the text typed into the editor in my INSERT query.
Here is some of the code used:
PHP Code:
require_once('./includes/functions_newpost.php');
require_once('./includes/functions_wysiwyg.php');
$post['message'] = convert_wysiwyg_html_to_bbcode($_POST['WYSIWYG_HTML'], 1);
unset($_POST['WYSIWYG_HTML']);
$addquery = "INSERT INTO diary (id, username, userid, useremail, title, comment, timestamp) VALUES ('', '$_POST[username]', '$_POST[userid]', '$_POST[useremail]', '$_POST[title]', '$post[message]', NOW())";
The problem is when the text is inserted, all I get is <p></p> which is the default text shown in the WYSIWYG_HTML <div> tag.
Like I mentioned I got the editor working I just can't get the text to insert. Anyone have any ideas?
Thanks!