MyBB Community Forums

Full Version: visible_replies is not defined after upgrading to 1.8.38
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all,
I just upgraded my forum to 1.8.38, and in the Chrome console I see this error below

[attachment=46909]

Anyone has this?
I can't reproduce it here, nor in the German support board, nor in my two forums
Okay so I compared my forum with mybb.com and I see that in my Showthread template, I'm missing these two variables
	var thread_deleted = "";
	var visible_replies = "";

I tried to improvise with these but they didn't work


	var thread_deleted = "{$mybb->settings['thread_deleted']}";
	var visible_replies = "{$mybb->settings['visible_replies']}";

Does anyone have the correct value for these so I can update my forum?

Thanks in advanced
showthread template

insert
var thread_deleted = "{$thread_deleted}";
	var visible_replies = "{$thread['replies']}";

behind
var quickdelete_confirm = "{$lang->quickdelete_confirm}";
	var quickrestore_confirm = "{$lang->quickrestore_confirm}";
	var allowEditReason = "{$mybb->settings['alloweditreason']}";

second change on this template:
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/thread.js?ver=1827"></script>
to
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/thread.js?ver=1838"></script>

for all template changes to check, if they are done on your board, visit: https://www.mybb.de/doku/sonstiges/geaen...1838/1837/
perfect! Thanks for your help!
(2024-05-07, 06:57 AM)bv64 Wrote: [ -> ]showthread template

Saved me, thanks!
(2024-05-07, 06:57 AM)bv64 Wrote: [ -> ]showthread template

insert
var thread_deleted = "{$thread_deleted}";
	var visible_replies = "{$thread['replies']}";

behind
var quickdelete_confirm = "{$lang->quickdelete_confirm}";
	var quickrestore_confirm = "{$lang->quickrestore_confirm}";
	var allowEditReason = "{$mybb->settings['alloweditreason']}";

second change on this template:
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/thread.js?ver=1827"></script>
to
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/thread.js?ver=1838"></script>

for all template changes to check, if they are done on your board, visit: https://www.mybb.de/doku/sonstiges/geaen...1838/1837/

You are saved me. Thanks.
(2024-05-07, 06:57 AM)bv64 Wrote: [ -> ]showthread template

insert
var thread_deleted = "{$thread_deleted}";
	var visible_replies = "{$thread['replies']}";

behind
var quickdelete_confirm = "{$lang->quickdelete_confirm}";
	var quickrestore_confirm = "{$lang->quickrestore_confirm}";
	var allowEditReason = "{$mybb->settings['alloweditreason']}";

second change on this template:
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/thread.js?ver=1827"></script>
to
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/thread.js?ver=1838"></script>

for all template changes to check, if they are done on your board, visit: https://www.mybb.de/doku/sonstiges/geaen...1838/1837/

If the loading spinner does not disappear after posting a quick reply successfully, this is the solution.