Quote:
Originally Posted by sweeps78
Hi Steve,
Do you have any updates on this? I can't seem to get this to work with 4.1.5.
|
In your php near the beginning:
PHP Code:
define('GET_EDIT_TEMPLATES', true);
In your php file in your main script, you'll need:
PHP Code:
require_once(DIR . '/includes/functions_editor.php');
require_once(DIR . '/includes/functions_bigthree.php');
$editorid = construct_edit_toolbar(
'blah lbah fsdkjksd',
0,
0,
1,
1,
0,
'fe'
);
In your template <head>
HTML Code:
<script type="text/javascript" src="clientscript/vbulletin-editor.js?v={vb:raw vboptions.simpleversion}"></script>
In your template <body>
HTML Code:
<form class="vbform block" action="yourpage.php" method="post" name="vbform" onsubmit="return vB_Editor['{vb:raw editorid}'].prepare_submit(0, 0)">
<div class="blockbody formcontrols">
<div class="section">
{vb:raw messagearea}
</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="postsomething" />
<input type="submit" class="button" name="sbutton" id="{vb:raw editorid}_save" value="{vb:rawphrase submit}" accesskey="s" tabindex="1" />
<input type="submit" class="button" name="preview" value="{vb:rawphrase preview_post}" accesskey="r" tabindex="1" />
</div>
</div>
</form>