Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Quick Reply form won't show posted message
So, here is the problem.
I write message in Quick Reply field in thread, and when I click "Submit" I get that spinner image that is loading short period of time, and than it's gone. Until that point everything is good, but my message isn't displayed. I need to refresh page in order to see my message.
This is happening only in Linear thread mode.

URL of my forum:
Test account (You can login even if forum is closed):
Username: test 
Password: mybb123

EDIT: I tried to revert showthread_quickreply to original and it's still doesn't work.
EDIT2 I figure it out why this is happening. It's because of showthread template.  But I didn't managed to fix it yet.
(I know this because when I reverted this template to original it worked)


<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}";
lang.post_deleted_error = "{$lang->post_deleted_error}";
lang.softdelete_thread = "{$lang->soft_delete_thread}";
lang.restore_thread = "{$lang->restore_thread}";
// -->
<!-- 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=1813"></script>

<div id="konu_bilgi_cubugu">
<div class="konu_avatar">
<i class="fas fa-comment-dots fa-4x"></i>
<div class="konu_baslik"><h1>{$thread['threadprefix']} {$thread['subject']}</h1><p>posted by {$thread['username']}</p></div>
<div class="konu_istatistik">
<dl><dt><i class="far fa-eye fa-fw" title="Views"></i></dt><dd>{$thread['views']}</dd></dl>
<dl><dt><i class="far fa-comment fa-fw" title="Replies"></i></dt><dd>{$thread['replies']}</dd></dl>

<div class="sayfaLinkGrubu">
<div class="float_left"> 
<div class="LinkGrubu">
<a href="javascript:void(0)" id="thread_modes">Topic Mode</a>
<a href="javascript:void(0)" id="thread_tools">Thread Tools</a>

<div id="post">

<br class="clear" />
<br />

<div class="float_right" style="text-align: right;">
<br class="clear" />

<div id="thread_tools_popup" class="popup_menu" style="display: none;">

<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")
// -->
<script type="text/javascript">
// <!--
if(use_xmlhttprequest == "1")
// -->
<script type="text/javascript">

var thread_deleted = "{$thread_deleted}";
if(thread_deleted == "1")
$("#quick_reply_form, .new_reply_button, .thread_tools, .inline_rating").hide();
$("#moderator_options_selector option.option_mirage").attr("disabled","disabled");
iAndrew & NickGHQ - Respect!!
have you checked quickreply issue by switching to MyBB's Stock theme ?

have you tried it by temporarily disabling the plugins ?
forum admin panel >> configuration [settings] >> general configuration >> Disable All Plugins
(2020-03-23, 01:54 PM).m. Wrote: have you checked quickreply issue by switching to MyBB's Stock theme ?

have you tried it by temporarily disabling the plugins ?
forum admin panel >> configuration [settings] >> general configuration >> Disable All Plugins

Yes, I forgot to say that.
It works in MyBB's Stock theme, and I looked qoucikreply template there, most of the code looks the same like in my template and I am not sure what to add/change so I posted this thread.
Also, tested with disabled plugins, and the issue is stil there.
I tried to add

and in MyFunction:

but that didn't worked at all.
iAndrew & NickGHQ - Respect!!
would you like to PM me temporary access to forum admin panel to check the issue ...
[you may have to wait for my free time - I can check later today or tomorrow]
Sounds like an issue with your postbit templates. The element containing your postbit is probably lacking the correct ID. The quick reply function relies on the following to display the post after you submit it:

Make sure the element containing your postbit has that. (postbit templates > postbit and postbit_classic)

While we're at it, make sure it also has this:
This is fixed now thanks to the NickGHQ 
His is awesome, he came to my forum, registered and fixed issue in less than 2 minutes Big Grin
Anyway, the issue was that I had to replace <div id="post"> with <div id="posts"> in showthread template.
iAndrew & NickGHQ - Respect!!
^ good to know it Smile somehow I overlooked your posted code !
Personally I solved this issue with copying code from postbit_classic template to postbit
and then rewrite it to look similarly to postbit (because I like its look much more), but using div-s from postbit_classic,
after this it's working OK for me (it show new post after sending it via quick reply).
[Image: YZ84XVq.gif]

Forum Jump:

Users browsing this thread: 1 Guest(s)