Jump to the post that solved this thread.
Solved: 6 Months, 4 Weeks, 1 Day ago visible_replies is not defined after upgrading to 1.8.38
#1
Solved: 6 Months, 4 Weeks, 1 Day ago
Hi all,
I just upgraded my forum to 1.8.38, and in the Chrome console I see this error below

   

Anyone has this?
Reply
#2
Solved: 6 Months, 4 Weeks, 1 Day ago
I can't reproduce it here, nor in the German support board, nor in my two forums
support ended 
Reply
#3
Solved: 6 Months, 4 Weeks, 1 Day ago
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
Reply
#4
Solved: 6 Months, 4 Weeks, 1 Day ago
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/
support ended 
Reply
#5
Solved: 6 Months, 4 Weeks, 1 Day ago
perfect! Thanks for your help!
Reply
#6
Solved: 6 Months, 4 Weeks, 1 Day ago
(2024-05-07, 06:57 AM)bv64 Wrote: showthread template

Saved me, thanks!
Reply
#7
Solved: 6 Months, 4 Weeks, 1 Day ago
(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.
Reply
Jump to the post that solved this thread.


Forum Jump:


Users browsing this thread: 1 Guest(s)