PDA

View Full Version : having some problems with quickreply code


AN-net
08-18-2005, 01:13 AM
ok well i looked at this:
https://vborg.vbsupport.ru/showthread.php?t=74718

well their template doesnt work at all>_>

so with the original template code it works. basically im trying to get rid of the signature and option stuff under the message area but for some reason it breaks when i remove this:

<label for="qr_quickreply"><input type="checkbox" name="quickreply" value="1" id="qr_quickreply" accesskey="w" tabindex="4" />$vbphrase[quote_message_in_reply]</label>


the php code is

if($can['comment'])
{
require_once('./includes/functions_editor.php');
$WYSIWYG = 1;
$istyles_js = construct_editor_styles_js();
$showsig=0;
$threadedmode = 0;
$qrpostid = 'who cares';
$QRrequireclick = 0;
if (!$QRrequireclick AND $WYSIWYG >= 1)
{
$onload .= " editInit();";
}

$headinclude .= "
<!-- set up CSS for the editor -->
<link rel=\"stylesheet\" type=\"text/css\" href=\"clientscript/vbulletin_editor.css\" />
<style type=\"text/css\">
<!--
#vBulletin_editor {
background: {$istyles[pi_button_normal][0]};
padding: $stylevar[cellpadding]px;
}
#controlbar, .controlbar {
background: {$istyles[pi_button_normal][0]};
}
.imagebutton {
background: {$istyles[pi_button_normal][0]};
color: {$istyles[pi_button_normal][1]};
padding: {$istyles[pi_button_normal][2]};
border: {$istyles[pi_button_normal][3]};
}
-->
</style>
";
eval('$addcommentform .= "' . fetch_template('journal_addcomment') . '";');
}

Andreas
08-18-2005, 01:18 AM
Might be caused by JavaScript trying to access this field.
Did you try to make it a hidden input?