MyBB Community Forums

Full Version: Quick reply loading doesn't disappear
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
(2012-06-26, 04:16 AM)Jazza Wrote: [ -> ]
(2012-06-26, 04:07 AM)Leefish Wrote: [ -> ]I had a similar problem a while ago - I had a mistake in my HTML and it did make the loading.gif hang.

Do you know what specifically you fixed?

Hmm, it was a while ago - but I think it was a dodgy spoiler mycode with bad html. That was why it took me a while to track down - it only happened on SOME browsers (mainly IE) and on some pages.

If you have a link to the board url I am willing to have a look at the HTML. If you like.
(2012-06-26, 04:30 AM)Ryan Loos Wrote: [ -> ]Do you mind posting your postbit template here then, so someone more technically minded than myself can see if they know what the problem is? Smile

<br />
<form method="post" action="newreply.php?tid={$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="{$tid}" />
	<input type="hidden" name="method" value="quickreply" />

	<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
		<thead>
			<tr>
				<td class="thead" colspan="2">
					<div class="expcolimage"><img src="{$theme['imgdir']}/collapse{$collapsedimg['quickreply']}.gif" id="quickreply_img" class="expander" alt="[-]" title="[-]" /></div>
					<div><strong>{$lang->quick_reply}</strong></div>
				</td>
			</tr>
		</thead>
		<tbody style="{$collapsed['quickreply_e']}" id="quickreply_e">
			<tr>
				<td class="trow1" valign="top" width="22%">
					<strong>{$lang->message}</strong><br />
					<span class="smalltext">{$lang->message_note}<br /><br />
					<label><input type="checkbox" class="checkbox" name="postoptions[signature]" value="1" {$postoptionschecked['signature']} />&nbsp;<strong>{$lang->signature}</strong></label><br />
					<label><input type="checkbox" class="checkbox" name="postoptions[disablesmilies]" value="1" />&nbsp;<strong>{$lang->disable_smilies}</strong></label>{$closeoption}</span>
				</td>
				<td class="trow1">
					<div style="width: 95%">
						<textarea style="width: 100%; padding: 4px; margin: 0;" rows="8" cols="80" name="message" id="message" tabindex="1"></textarea>
					</div>
					<div class="editor_control_bar" style="width: 95%; padding: 4px; margin-top: 3px; display: none;" id="quickreply_multiquote">
						<span class="smalltext">
							{$lang->quickreply_multiquote_selected} <a href="./newreply.php?tid={$tid}&amp;load_all_quotes=1" onclick="return Thread.loadMultiQuoted();">{$lang->quickreply_multiquote_now}</a> {$lang->or} <a href="javascript:Thread.clearMultiQuoted();">{$lang->quickreply_multiquote_deselect}</a>.
						</span>
					</div>
				</td>
			</tr>
			{$captcha}
			<tr>
				<td colspan="2" align="center" class="tfoot"><input type="submit" class="button" value="{$lang->post_reply}" tabindex="2" accesskey="s" id="quick_reply_submit" /> <input type="submit" class="button" name="previewpost" value="{$lang->preview_post}" tabindex="3" /></td>
			</tr>
		</tbody>
	</table>
</form>
When I first started working on a new theme for my forum, I decided to switch all users to postbit_classic since my new design looked very similar to it. I really should switch back to the original and customise that, but it's not really important.

Here's the postbit code:

{$ignore_bit}
<div class="post" style="{$post_extra_style} {$post_visibility}" id="post_{$post['pid']}">
<a name="pid{$post['pid']}" id="pid{$post['pid']}" class="directlink"></a>
	<div class="left">
		<div class="avatar">
			{$post['useravatar']}
		</div>
		<div class="post_user_details">

			<div class="row">
			<em>
<if $post['fid'] == '19' and $post['fid13'] != "" then>
				{$post['fid13']}
<else>
				{$post['profilelink']}
</if>
			</em>
			</div>
			<br /><br />
<!--
			<if $post['fid4'] != NULL then><div class="row">{$post['fid4']}</div></if>

<if $post['fid1'] != NULL or $post['fid4'] != NULL then>
	<div class="row">
		
		<if $post['fid1'] != NULL then>{$post['fid1']}</if>
		<if $post['fid15'] != NULL then> {$post['fid15']}</if>
	</div>
</if>
-->
			<div class="row">{$post['usertitle']}</div>
			{$post['user_details']}
		</div>
	</div>
	<div class="right">
		<div class="arrow-border"></div>
		<div class="arrow"></div>
		<div class="post_content">
			<div id="pid_{$post['pid']}" class="post_body">
				{$post['message']}
			</div>
			{$post['attachments']}
		</div>
						<if $post['signature'] != NULL then>
						<div class="post_signature">
							{$post['signature']}
						</div>
						</if>

						<if $mybb->user['uid'] != NULL and $post['editedmsg'] != NULL then>
						<div id="edited_by_{$post['pid']}" class="post_details">
							{$post['editedmsg']}
						</div>
						</if>
						<div class="post_details">
							<div class="float_left" style="margin-right:16px">
								{$post['button_tyl']}
							</div>
							<div class="float_left" style="margin-right:16px">
								<a href="showthread.php?tid={$thread['tid']}&pid={$post['pid']}#post_{$post['pid']}" class="post_permalink">{$post['postdate']}, {$post['posttime']}</a>
							</div>
							<div id="tyl_{$post['pid']}" class="float_left post_buttons post_likes {$unapproved_shade}">
								{$post['thankyoulike_data']}
							</div>

							<div class="float_right">
								<a href="javascript:MyBB.reputation({$post['uid']});" alt="{$lang->rate_user}" title="{$lang->rate_user}">Rate User</a> [{$post['userreputation']}]
							</div>
						</div>
						<div class="post_details">
							<div class="float_left">{$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}</div>
							<div class="float_right">{$post['button_edit']}{$post['button_quickdelete']}{$post['button_quote']}{$post['button_multiquote']}{$post['button_report']}{$post['button_warn']}{$post['button_reply_pm']}{$post['button_replyall_pm']}{$post['button_forward_pm']}{$post['button_delete_pm']}</div>
						</div>
	</div>
</div>

As you can see, I pretty much re-wrote that template.
Yea, the template seems ok.

The thing is, the quick reply is in the showthread.php. You need to check the postbit and the showthread and the showthread quick reply. Maybe even multipage - there are a LOT of templates in there. The best way to do this is to run the page through the HTML validator and then fix any errors that show.
But there are so many errors D:

*pouts*
(2012-06-26, 06:15 AM)Jazza Wrote: [ -> ]But there are so many errors D:

*pouts*

Which definitely makes me think it is the HTML that is causing it Wink
I just had the same problem and just added this code at the end of my headerinclude template and it fixed the problem.

<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>

<script type="text/javascript">
jQuery.noConflict();

jQuery(document).ready(function() {
if (jQuery('.welcome-avatar').attr('src') === '') {
jQuery('.welcome-avatar').css('display', 'none');
}
});
</script>

{$newpmmsg}
I need help with this!

showthread_quickreply
<br />
<form method="post" action="newreply.php?tid={$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="{$tid}" />
	<input type="hidden" name="method" value="quickreply" />

	<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
		<thead>
			<tr>
				<td class="thead" colspan="2">
					<div class="expcolimage"><img src="{$theme['imgdir']}/collapse{$collapsedimg['quickreply']}.gif" id="quickreply_img" class="expander" alt="[-]" title="[-]" /></div>
					<div><strong>{$lang->quick_reply}</strong></div>
				</td>
			</tr>
		</thead>
		<tbody style="{$collapsed['quickreply_e']}" id="quickreply_e">
			<tr>
				<td class="trow1" valign="top" width="22%">
					<strong>{$lang->message}</strong><br />
					<span class="smalltext">{$lang->message_note}<br /><br />{$smilieinserter}
					{$option_signature}
					<label><input type="checkbox" class="checkbox" name="postoptions[disablesmilies]" value="1" />&nbsp;<strong>{$lang->disable_smilies}</strong></label>{$closeoption}</span>
				</td>
				<td class="trow1">
					<div style="width: 95%">
						<textarea style="width: 100%; padding: 4px; margin: 0;" rows="8" cols="80" name="message" id="message" tabindex="1"></textarea>
					</div>
					<div class="editor_control_bar" style="width: 95%; padding: 4px; margin-top: 3px; display: none;" id="quickreply_multiquote">
						<span class="smalltext">
							{$lang->quickreply_multiquote_selected} <a href="./newreply.php?tid={$tid}&amp;load_all_quotes=1" onclick="return Thread.loadMultiQuoted();">{$lang->quickreply_multiquote_now}</a> {$lang->or} <a href="javascript:Thread.clearMultiQuoted();">{$lang->quickreply_multiquote_deselect}</a>.
						</span>
					</div>
				</td>
			</tr>
			{$captcha}
			<tr>
				<td colspan="2" align="center" class="tfoot"><input type="submit" class="button" value="{$lang->post_reply}" tabindex="2" accesskey="s" id="quick_reply_submit" /> <input type="submit" class="button" name="previewpost" value="{$lang->preview_post}" tabindex="3" /></td>
			</tr>
		</tbody>
	</table>
</form>

Can anyone help me with this?? I don't see a fix on this topic?
Pages: 1 2