Im using phpbb and a mod for it that gets you a little quick reply down the bottom of the thread as opposed to that "post reply" button.
Im trying to add a couple of formatting buttuns. The file in question is quick_reply_body.tpl
The origional contents
</script>
<script language='javascript' type='text/javascript'>
function checkForm()
{
formErrors = false;
if (document.post.message.value.length < 2)
{
formErrors = "{L_EMPTY_MESSAGE}";
}
if (formErrors)
{
alert(formErrors);
return false;
}
else
{
return true;
}
}
</script>
<form action="{S_QUICK_REPLY_ACTION}" method="post" name="post" onsubmit="return checkForm(this)">
<span class="genmed"><b>{L_QUICK_REPLY}:<br />
<input type="button" class="button" accesskey="b" name="addbbcode0" value=" B " style="font-weight:bold; width: 30px" onClick="bbstyle(0)" onMouseOver="helpline('b')" /></b></span><br /><br />
<!-- BEGIN switch_user_logged_out -->
<span class="genmed">{L_USERNAME}:</span> <input type="text" class="text" name="username" size="24" maxlength="25" value="" /><br />
<!-- END switch_user_logged_out -->
{QUICK_REPLY_FORM}
<textarea class="post" name="message" rows="8" cols="42" wrap="virtual"></textarea><br /><br />
<input type="submit" class="mainoption" name="preview" value="{L_PREVIEW}" />
<input type="submit" class="mainoption" name="post" value="{L_SUBMIT}" />
</form>
Which i replaced with the contents of The regular post_body.tpl so that i could have all the formatting tags and such.
But, the submit and preview buttons dont work.
Any Help would be great. Thanks Alot.
:0)
(i wont post the contents of post_body.tpl unless you ask cos it will be quite big.)