<script type="text/javascript" src="clientscript/vbulletin-editor.js?v={vb:raw vboptions.simpleversion}"></script> <link rel="stylesheet" type="text/css" href="{vb:var vbcsspath}vbulletin-formcontrols.css" /> <link rel="stylesheet" type="text/css" href="{vb:var vbcsspath}editor.css" /> <link rel="stylesheet" type="text/css" href="{vb:var vbcsspath}bbcode.css" /> <form class="vbform block" action="file.php" method="post" name="vbform" onsubmit="return vB_Editor['{vb:raw editorid}'].prepare_submit(this.inputname.value, {vb:raw vboptions.postminchars})"> <div class="wysiwyg_block"> <div class="blockbody formcontrols"> <div class="blockrow"> {vb:raw messagearea} </div> </div> </div> <div class="blockfoot actionbuttons"> <div class="group"> <input type="hidden" name="s" value="{vb:raw session.sessionhash}" /> <input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" /> <input type="hidden" name="do" value="mydo" /> <input type="submit" class="button" name="sbutton" id="{vb:raw editorid}_save" value="{vb:rawphrase myphrase}" accesskey="s" tabindex="2" /> </div> </div> </form>
require_once(DIR . '/includes/functions_editor.php');$editorid = construct_edit_toolbar('',1,'signature',1,1,($vbulletin->userinfo['userid']));In your $templater->register , add$templater->register('editorid', $editorid);$templater->register('messagearea', $messagearea);