MyBB Community Forums

Full Version: Quick reply make a reply go to the top instead of the bottom.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Can anyone possibly help me out here.

Quick reply when using makes a post just to the top of the thread instead of the bottom where it belongs.

Running 1.8.10, only happens after I edit certain areas of the postbit.

http://www.baraenor-rpg.com/
Most likely because of your edits to the postbit then, what did you change?
Quick Reply posts went to the wrong place in the thread before I fixed the inline moderation problem described elsewhere.
We're not having any problems with inline moderation, it works just fine so I'm not sure what I would need to 'fix' since it works.

@Matt
It likely seems a bit messy as I haven't cleaned it up yet, however there are no open tags/un closed tags as far as I can see:
{$ignore_bit}{$deleted_bit}
<a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
<div class="post {$unapproved_shade}" style="{$post_visibility}" id="post_{$post['pid']}">

<div class="trow1">
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td valign="middle"><span class="thead" style="text-transform: none;">{$post['profilelink']} <span class="smalltext" style="text-transform: uppercase;">&nbsp;{$post['fid11']}</span></span></td>
<td valign="middle" style="text-align: right;"><a href="private.php?action=send&amp;uid={$post['uid']}" title="{$lang->postbit_pm}" class="postbit_pm">Send PM</a> Plotter, Thread Log (character), Point Log, Studio (OOC)</td>
</tr>
</table>
</div>


<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td width="300px" valign="top">{$post['useravatar']}</td>
<td valign="top" class="tcat2"></td>
</tr>
</table>


<div class="post_author" style="display: none;">
	{$post['useravatar']}
	<div class="author_information">
			<strong><span class="largetext">{$post['profilelink']}</span></strong> {$post['onlinestatus']}{$post['authorchange']}<br />
			<span class="smalltext">
				{$post['usertitle']}<br />
				{$post['userstars']}
				{$post['groupimage']}{$post['fid4']}
			</span>
	</div>
	<div class="author_statistics">
		{$post['user_details']}{$post['newpoints_postbit']}{$post['attached_accounts']}
	</div>
</div>
<div class="trow1"><div class="post_content">
	<div class="post_head">
		{$post['posturl']}
		{$post['icon']}
		<span class="post_date">{$post['postdate']} <span class="post_edit" id="edited_by_{$post['pid']}">{$post['editedmsg']}</span></span>
		{$post['subject_extra']}
	</div>
	<div class="post_body scaleimages" id="pid_{$post['pid']}">
		{$post['message']}
	</div>
	{$post['attachments']}
	{$post['signature']}
	<div class="post_meta" id="post_meta_{$post['pid']}">
		{$post['iplogged']}
	</div>
</div></div>
<div class="post_controls">
	<div class="postbit_buttons author_buttons float_left">
		{$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}{$post['button_rep']}
	</div>
	<div class="postbit_buttons post_management_buttons float_right">
		{$post['button_edit']}{$post['button_quickdelete']}{$post['button_quickrestore']}{$post['button_quote']}{$post['button_multiquote']}{$post['button_report']}{$post['button_warn']}{$post['button_purgespammer']}{$post['button_reply_pm']}{$post['button_replyall_pm']}{$post['button_forward_pm']}{$post['button_delete_pm']}
	</div>
</div>
</div><br />
I'm having this problem too. Here's my postbit_classic template

{$ignore_bit}{$deleted_bit}
<a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
<div class="p_container {$unapproved_shade}" style="background: #fefefe; {$post_visibility}; border-bottom:4px solid #cf3030; margin-bottom:0px;" id="post_{$post['pid']}">
    <table width="100%">
    <tr>
        <td class="postbit_left" id="mobilehide">
        <div style="margin-bottom:5px;">{$post['useravatar']}</div>
        <span class="postbit_username">{$post['profilelink']}</span><br />
        <span style="font-size: 12px;">{$post['usertitle']}</span><br />
        <div style="">{$post['groupimage']}
        {$post['user_details']}</div>
    </td>

    <td class="post_content postbit_right">
        <div class="postbit_head" style="border-bottom: 1px solid #e6e6e6;">
            {$post['icon']} <span id="mobileshow"><span id="mobileimgshow" style="float:left;">{$post['useravatar']}</span> <span class="postbit_username">{$post['profilelink']}</span> - </span> <span class="grayp">{$post['postdate']} {$post['button_report']}</span>
            {$post['subject_extra']}
            <span class="smalltext">{$post['posturl']}</span>
        </div>
        
        <div class="post_body scaleimages" id="pid_{$post['pid']}">
            {$post['message']}
        </div>
        <span id="post_meta_{$post['pid']}" style="font-size:11px; opacity:0.6">{$post['iplogged']}</span>
        
        <div class="post_edit" id="edited_by_{$post['pid']}">{$post['editedmsg']}</div>
        
        <div style="display:none;">{$post['attachments']}</div>
        {$post['signature']}
        <div class="button_container" align="right">
            {$post['button_multiquote']}{$post['button_quote']}{$post['button_edit']}{$post['button_quickdelete']}{$post['button_quickrestore']}{$post['button_reply_pm']}{$post['button_replyall_pm']}{$post['button_forward_pm']}{$post['button_delete_pm']}{$post['button_warn']}{$post['button_purgespammer']}
        </div>
        </td>
    </tr>
</table>
</div>
    
</div>
Can you post your showthread template? The element to look for is <div id="posts">, I can't look myself as the forum is closed.
I did a quick ctrl+f search for that id and couldn't find it in showthread template. So I must have removed it somewhere along the way (lesson learned to not remove things without knowing what they do).

I went ahead and copied the default templates for showthread back into my new templates and it works like a charm now. Thank you for pointing that out! Smile
Here's my showthread template


<html>
<head>
<title>{$thread['subject']}</title>
{$headerinclude}
<script type="text/javascript">
<!--
var quickdelete_confirm = "{$lang->quickdelete_confirm}";
var quickrestore_confirm = "{$lang->quickrestore_confirm}";
var allowEditReason = "{$mybb->settings['alloweditreason']}";
lang.save_changes = "{$lang->save_changes}";
lang.cancel_edit = "{$lang->cancel_edit}";
lang.quick_edit_update_error = "{$lang->quick_edit_update_error}";
lang.quick_reply_post_error = "{$lang->quick_reply_post_error}";
lang.quick_delete_error = "{$lang->quick_delete_error}";
lang.quick_delete_success = "{$lang->quick_delete_success}";
lang.quick_delete_thread_success = "{$lang->quick_delete_thread_success}";
lang.quick_restore_error = "{$lang->quick_restore_error}";
lang.quick_restore_success = "{$lang->quick_restore_success}";
lang.editreason = "{$lang->postbit_editreason}";
// -->
</script>
<!-- jeditable (jquery) -->
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/report.js?ver=1804"></script>
<script src="{$mybb->asset_url}/jscripts/jeditable/jeditable.min.js"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/thread.js?ver=1804"></script>
<script type="text/javascript" src="jscripts/reply_mod.js"></script></head> 
</head>
<body id="forum">
{$header}
{$threadnotesbox}
{$pollbox}

<div style="padding:10px;"> 
<div style="float: left;">
<span class="forum_title">{$thread['threadprefix']}{$thread['subject']}</span><br />
<span class="forum_desc" style="font-size:13px; opacity: 0.6;"><if $forum['fid'] != 6 then>Started<else>Reviewed</if> by {$thread['username']}</span>
</div>

<div style="float: right; padding-top:25px;">
{$newreply}
</div>
</div>

<br class="clear" /><br />
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder tfixed clear">
<tr>
<td class="lightblue" colspan="">{$multipage}</td>
</tr>
<tr>
<td id="posts_container">
<div id="posts" class="postbit_container" style="padding-top:10px;">
{$posts}
</div>
</td>
</tr>
<tr>
<td class="lightblue clearfix">
<span style="float: left;">{$multipage}</span>
<span style="float: right; margin: 6px 8px 0px 0px;">{$search_thread}</span>
</td>
</tr>
</table>
<br class="clear" />
{$quickreply}
{$threadexbox}
{$similarthreads}
<br />

<div style="padding:5px;">
<div class="float_right" style="text-align: right;">
{$moderationoptions}
{$forumjump}
</div>
</div> 
<br class="clear" />
{$footer}
<div id="thread_modes_popup" class="popup_menu" style="display: none;"><div class="popup_item_container"><a href="showthread.php?mode=linear&amp;tid={$tid}&amp;pid={$pid}#pid{$pid}" class="popup_item">{$lang->linear}</a></div><div class="popup_item_container"><a href="showthread.php?mode=threaded&amp;tid={$tid}&amp;pid={$pid}#pid{$pid}" class="popup_item">{$lang->threaded}</a></div></div>
<script type="text/javascript">
// <!--
if(use_xmlhttprequest == "1")
{
$("#thread_modes").popupMenu();
}
// -->
</script>
<script type="text/javascript">
$(".author_avatar img").error(function () {
$(this).unbind("error").closest('.author_avatar').remove();
});
</script>
</body>
</html>