MyBB Community Forums

Full Version: Quoting Posts Not Working
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

Whenever a user tries to quote a post on my site ( http://openmarketforums.co.uk ), the quoted message doesn't show up.

I know that this is a similar problem to the one here but I don't know how to fix it.

Here is the newreply template:
<html>
<head>
<title>{$lang->post_reply_to}</title>
{$headerinclude}

</head>
<body>
{$header}
{$preview}
{$maximageserror}
{$attacherror}
{$reply_errors}
<form action="newreply.php?tid={$tid}&amp;processed=1" method="post" enctype="multipart/form-data" name="input">
<input type="hidden" name="my_post_key" value="{$mybb->post_code}" />
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead" colspan="2"><strong>{$lang->post_new_reply}</strong></td>
</tr>
<tr>
<td class="tcat" colspan="2"><span class="smalltext"><strong>{$lang->reply_to}</strong></span></td>
</tr>
{$loginbox}
<tr>
<td class="trow2" width="20%"><strong>{$lang->post_subject}</strong></td>
<td class="trow2"><input type="text" class="textbox" name="subject" size="40" maxlength="85" value="{$subject}" tabindex="1" /></td>
</tr>
{$posticons}
<tr>
<td class="trow2" valign="top"><strong>{$lang->your_message}</strong><br />{$smilieinserter}</td>
<td class="trow2">
<textarea id="message" name="message" rows="20" cols="110" tabindex="2" ></textarea>
{$codebuttons}
{$multiquote_external}
</td>
</tr>
<tr>
<td class="trow1" valign="top"><strong>{$lang->post_options}</strong></td>
<td class="trow1"><span class="smalltext">
<label><input type="checkbox" class="checkbox" name="postoptions[signature]" value="1" tabindex="6"{$postoptionschecked['signature']} /> {$lang->options_sig}</label>
{$disablesmilies}
</span></td>
</tr>
{$modoptions}
{$subscriptionmethod}
{$captcha}
</table>
{$attachbox}
<br />
<div align="center"><input type="submit" class="button" name="submit" value="{$lang->post_reply}" tabindex="3" accesskey="s" />  <input type="submit" class="button" name="previewpost" value="{$lang->preview_post}" tabindex="4" />{$savedraftbutton}</div>
<input type="hidden" name="action" value="do_newreply" />
<input type="hidden" name="replyto" value="{$replyto}" />
<input type="hidden" name="posthash" value="{$posthash}" />
<input type="hidden" name="attachmentaid" value="" />
<input type="hidden" name="attachmentact" value="" />
<input type="hidden" name="quoted_ids" value="{$quoted_ids}" />
<input type="hidden" name="tid" value="{$tid}" />
{$editdraftpid}
</form>
{$forumrules}
{$threadreview}
{$footer}
</body>
</html>
Well, the fix is exactly the same.
<textarea id="message" name="message" rows="20" cols="110" tabindex="2" ></textarea>
should be:
<textarea id="message" name="message" rows="20" cols="110" tabindex="2" >{$message}</textarea>

You also seem to be missing:
<script type="text/javascript" src="jscripts/post.js?ver=1400"></script>
before </head>, not sure if it's removed by a plugin though.
(2014-07-05, 01:33 PM)Destroy666 Wrote: [ -> ]Well, the fix is exactly the same.
<textarea id="message" name="message" rows="20" cols="110" tabindex="2" ></textarea>
should be:
<textarea id="message" name="message" rows="20" cols="110" tabindex="2" >{$message}</textarea>

You also seem to be missing:
<script type="text/javascript" src="jscripts/post.js?ver=1400"></script>
before </head>, not sure if it's removed by a plugin though.

What does the script do when its there?

EDIT: I did what you said and I also found out that the replyto link was broken, so I fixed that as well and it works well now.