PDA

View Full Version : empty message value whene use "WYSIWYG" Mode


Almotmaiz.Net
05-31-2008, 12:47 PM
Hello evey body ,

I'm in the process of programming a new product, this product is used to add basic editor "WYSIWYG" if this enabled from AdminCP ,


But i have problem about that , evey thing come true with evey thing ,

if this textarea is "WYSIWYG" mode m whene post this value give me empty value ,

and if it Standart editor , insert this message :)


how can i fix this please :)

--------------- Added 1212243053 at 1212243053 ---------------

this is code :

if ($_REQUEST['do'] == 'newehdaa')
{
$NLP['Groups'] = explode(',', $vbulletin->options['nlp_ehdaa_exgroups']);
if(in_array($vbulletin->userinfo['usergroupid'], $NLP['Groups']))
{
$msg = construct_phrase($vbphrase['nlp_ehdaa_nop']);
$template = 'nlp_ehdaa_msg';
}elseif($vbulletin->options['nlp_ehdaa_minposts'] > $vbulletin->userinfo['posts'])
{
//eval(standard_error(fetch_error('nlp_ehdaa_minpost s', $vbulletin->options['nlp_ehdaa_minposts'])));
$msg = construct_phrase($vbphrase['nlp_ehdaa_minposts'], $vbulletin->options['nlp_ehdaa_minposts']);
$template = 'nlp_ehdaa_msg';
}else{
require_once(DIR . '/includes/functions_editor.php');
$show['wysiwyg'] = ($vbulletin->options['allow_bbcode'] ? is_wysiwyg_compatible() : 0);
$show['wysiwyg'] = false;
//$vbulletin->options['editormodes']['fe'] = 2;
//$vBeditJs[size_options_array] = '1, 2, 3';
$istyles_js = construct_editor_styles_js();
//$show['qr_require_click'] = 0;
$editorid = construct_edit_toolbar('', 0, 'nlp_ehdaa');
$messagearea = "
<script type=\"text/javascript\">
<!-- ehdaa
var require_click = false;
var threaded_mode = 1;
var is_last_page = false;
// -->
</script>
$messagearea
";
$template = 'nlp_ehdaa_newehdaa';
}
//eval('print_output("' . fetch_template('nlp_ehdaa_newehdaa') . '");');
}
if($_REQUEST['do'] == 'postehdaa')
{
$vbulletin->input->clean_array_gpc('p', array(
'message' => TYPE_STR,
'wysiwyg' => TYPE_BOOL,
'ehdaa_home' => TYPE_NOHTML,
));
if ($vbulletin->GPC['wysiwyg'] == 1)
{
if(!function_exists('convert_wysiwyg_html_to_bbcod e'))
{
require_once(DIR . '/includes/functions_wysiwyg.php');
}
$vbulletin->GPC['message'] = convert_wysiwyg_html_to_bbcode($vbulletin->GPC['message']);
}
if ($vbulletin->options['allowbbcode'])
{
if(!function_exists('convert_url_to_bbcode'))
{
require_once(DIR . '/includes/functions_newpost.php');
}
$vbulletin->GPC['message'] = convert_url_to_bbcode($vbulletin->GPC['message']);
}
//$vbulletin->GPC['message'] = str_replace(array('<br />', '"', '
//'), array(' ', "\'", ' '),$vbulletin->GPC['message']);
$vbulletin->db->query_write("INSERT INTO `" . TABLE_PREFIX . "nlp_ehdaa` (`username` ,`userid` ,`message` ,`country` ,`dateline`) VALUES
(
'" . $vbulletin->userinfo['username'] . "',
'" . $vbulletin->userinfo['userid'] . "',
'" . $vbulletin->db->escape_string($vbulletin->GPC['message']) . "',
'" . iif($vbulletin->options['nlp_ehdaa_home'], $vbulletin->db->escape_string($vbulletin->GPC['ehdaa_home'])) . "',
'" . TIMENOW . "'
)
");
$msg = construct_phrase($vbphrase['nlp_ehdaa_add_done']);
$template = 'nlp_ehdaa_msg';
}
eval('print_output("' . fetch_template($template) . '");');

Almotmaiz.Net
06-04-2008, 04:27 PM
!! nodody ?

Axor
09-26-2008, 07:22 AM
i get the same error... anyone help?

there is no message when i use the wysiwyg editor

before update to 3.7.3 it works in 3.6.2

Marco van Herwaarden
09-26-2008, 11:12 AM
Please start a new thread. Your question is not related to the issue in this thread.