hello san DEEp
in php file put
PHP Code:
<?php
// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
//all-the-vb
// get special phrase groups
$phrasegroups = array('threadmanage', 'posting');
// get special data templates from the datastore
$specialtemplates = array(
'smiliecache',
'bbcodecache',
'attachmentcache'
);
// pre-cache templates used by all actions
$globaltemplates = array(
'newpost_attachment',
'newpost_attachmentbit',
'newthread'
);
// pre-cache templates used by specific actions
$actiontemplates = array();
// ######################### REQUIRE BACK-END ############################
require_once('./global.php');
require_once('./includes/functions_newpost.php');
require_once('./includes/functions_editor.php');
$textareacols = fetch_textarea_width();
$newpost['message'] = &$_POST['message'];
$bbuserinfo['showvbcode']=1;
construct_edit_toolbar($newpost['message'], 0, 0, 1,1);
eval('print_output("' . fetch_template('all_the_vb') . '");');
//all-the-vb
?>
and add a new template
template 'all_the_vb'
put in
Code:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vboptions[bbtitle] - $vbphrase[post_new_thread]</title>
$headinclude
</head>
<body$onload>
$header
$navbar
<form action="newthread.php" method="post" name="vbform"<if condition="!is_browser('webtv')"> onsubmit="return validatePost(this, this.subject.value, $vboptions[postminchars], $vboptions[postmaxchars]);" onreset="vB_RESET(this);"</if>>
$postpreview
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="panelsurround" align="center">
<div class="panel">
<div style="width:$stylevar[formwidth]" align="$stylevar[left]">
$usernamecode
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td>
<!-- message area -->
<div class="smallfont">$vbphrase[message]:</div>
$messagearea
<!-- / message area -->
</td>
</tr>
</table>
</div>
</div>
<div style="margin-top:$stylevar[cellpadding]px">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="add" />
<input type="submit" class="button" name="sbutton" value="$vbphrase[submit_new_thread]" accesskey="s" tabindex="1" />
<input type="submit" class="button" name="preview" value="$vbphrase[preview_post]" accesskey="p" tabindex="1" />
</div>
</td>
</tr>
</table>
$footer
</body>
</html>
Regards,
all-the-vb