MyBB Community Forums

Full Version: quickreply at forumdisplay thread
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,


I have make little modification to run "quickreply" from "forumdisplay thread" (this idea is strange for a basic forum but i use xthreads plugin and custom templates...) , work well but i have little problem...i don't understand why this one work for all topics list but give me error (no message) only on the first subject at threadlist, any idea ?

<form method="post" action="newreply.php?tid={$thread['tid']}&amp;processed=1" name="quick_reply_form" id="quick_reply_form">
	<input type="hidden" name="my_post_key" value="{$mybb->post_code}" />
	<input type="hidden" name="subject" value="RE: {$thread['subject']}" />
	<input type="hidden" name="action" value="do_newreply" />
	<input type="hidden" name="posthash" value="{$posthash}" id="posthash" />
	<input type="hidden" name="quoted_ids" value="" id="quoted_ids" />
	<input type="hidden" name="lastpid" id="lastpid" value="{$last_pid}" />
	<input type="hidden" name="from_page" value="{$page}" />
	<input type="hidden" name="tid" value="{$thread['tid']}" />
	<input type="hidden" name="method" value="quickreply" />
		
<thead>
<div class="expcolimage"><img src="{$theme['imgdir']}/collapse{$collapsedimg['unique_id']}.gif" id="unique_{$thread['tid']}_img" class="expander" alt="[+]" title="[+]" /></div>
					<div><strong>{$lang->quick_reply}</strong></div>
				</td>
			</tr>
		</thead>
		<tbody style="{$expdisplay}" id="unique_{$thread['tid']}_e">
			<tr>
				<td class="trow1" colspan="2">
					<div style="width: 95%">
						<textarea style="width: 100%; padding: 4px; margin: 0;" rows="8" cols="80" name="message" id="message" tabindex="1"></textarea>
					</div>
				
				</td>
			</tr>
			
			<tr>
				<td colspan="4" align="center" class="tfoot"><input type="submit" class="button" value="{$lang->post_reply}" tabindex="2" accesskey="s" id="quick_reply_submit" /> </td>
			</tr>
		</tbody>
	
</form>