MyBB Community Forums

Full Version: Thread reload after quickreply
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
What is the mechanism by which the thread reloads after a quick reply? I have one theme that is intermittent on a desktop, works sometimes and sometimes not, and does not work on a mobile device.

Default and all other custom themes built on default work properly as expected.

Trying to troubleshoot.

Thanks.
Maybe it's the post merge feature.

When a reply is merged with a previous post by the same author, a page refresh will be triggered.
thread.js i guess.
Thanks Ashley1, thread.js appears to be where the action is. Comparing changes from 1819 to 1821, they seem to be functionally equivalent. Changes look to be related to moving from jquery version 1.12.4 to 3.3.1

Continuing to look.

I am curious what version community.mybb.com is running, and what is the significance of differences noted here.

Portion of headerinclude from community.mybb.com
<script type="text/javascript" src="https://community.mybb.com/jscripts/jquery.js?ver=1820"></script>
<script type="text/javascript" src="https://community.mybb.com/jscripts/jquery.plugins.min.js?ver=1820"></script>
<script type="text/javascript" src="https://community.mybb.com/jscripts/general.js?ver=1820"></script>

Portion of headerinclude from my updated to 1.8.21 forum
<script type="text/javascript" src="https://mydomain.com/forum/jscripts/jquery.js?ver=1821"></script>
<script type="text/javascript" src="https://mydomain.com/forum/jscripts/jquery.plugins.min.js?ver=1821"></script>
<script type="text/javascript" src="https://mydomain.com/forum/jscripts/general.js?ver=1821"></script>

The .js files are identical. What is the significance of different ver=1820 or ver=1821?
The ?1820 attached to the js file indicates the version last changed. mybb.com is presumably running ver 1821, but those files were last changed in ver 1820, so that's correct.

The attached ?1820 has no effect on the functionality of the forum and many people make the mistake of just changing the number and thinking that their forum is now updated. You could even just leave the query string portion off the URL if you wanted to.
The ?ver=xxxx string will notify user browser to reload the newest version (say 1821) of relevant CSS/JS instead of using cached old ones (1820 & older).