I did a lot of changes today in JS on my forum. After several saves, JS stopped working even in JS files that were working before. There are currently no script changes working. I found a similar problem to mine in this topic: https://help.forumotion.com/t156325-javascript-codes-don-t-work#1078608
I cleared the cache and history. I did re-synchronization. None of these solutions worked.
Does anyone know if there is anything else I could do? Or maybe this error will fix itself in few hours/days? Or did I mix it up too much?
Forum details
Forum version: #ModernBBPosition: Administrator
Browsers: Google Chrome, Internet Explorer, Microsoft Edge
Forum link: http://teomachia.forumpolish.com/
Scripts that don't work
Toolbar avatar
JS
- Code:
$(function(){$(function(){$('#fa_welcome').prepend('<span class="toolbar-av">'+_userdata.avatar+'</span>')})});
Left panel username
JS
- Code:
$(function(){
 $(".panel-user").html(_userdata.username);
});
- Code:
<span class="panel-user"> </span>
Left panel avatar
JS
- Code:
$(function(){
 $(".panel-av").html(_userdata.avatar);
});
- Code:
<span class="panel-av"> </span>
Toolbar translation
JS
- Code:
$(function() {
 var toolbar_alias = {
  Share : 'Udostępnij',
  Login : 'Zaloguj się',
  Register : 'Zarejestruj się',
  Welcome : 'Witaj,',
  Notifications : 'Alerty',
  See_my_profile : 'Zobacz profil',
  Edit_profile : 'Edytuj profil',
  All_Topics : 'Moje tematy',
  All_Messages : 'Moje posty',
  js_topics_followed : 'Przeczytane tematy',
  Admin_panel : 'Panel Administracyjny',
  Logout : 'Wyloguj się',
  Notif_see_all : 'Zobacz wszystkie alerty',
  Notif_priv_msg : 'Otrzymałeś <a href="/privmsg?folder=inbox&nid=%(nid)s">prywatną wiadomość</a> od <a href="/u%(id)d">%(name)s</a>',
  Notif_report : '<a href="/u%(id)d">%(name)s</a> zgłosił <a href="/report?nid=%(nid)s">wiadomość</a>',
  Notif_friend_req : 'Otrzymałeś <a href="/profile?mode=editprofile&nid=%(nid)s&page_profil=friendsfoes">zaproszenie do przyjaciół</a> od <a href="/u%(id)d">%(name)s</a>',
  Notif_group_req : '<a href="/u%(id)d">%(name)s</a> złożył prośbę o dołączenie do grupy <a href="/g%(group_id)d-%(group_url_name)s?nid=%(nid)s">%(group_name)s</a>',
  Notif_friend_con : '<a href="/u%(id)d">%(name)s</a> zalogował się',
  Notif_wall_msg : '<a href="/u%(id)d">%(name)s</a> napisał wiadomość na <a href="/u%(self)dwall?nid=%(nid)s">twoimp rofilu</a>',
  Notif_abuse : 'Zostało zgłoszone <a href="/admin/index.forum?mode=active&nid=%(nid)s&part=misc&sub=support">nadużyne</a>',
  Notif_topic_watch : '<a href="/u%(id)d">%(name)s</a> napisał/a wiadomość w <a href="/t%(topic_id)d-%(topic_name)s?nid=%(nid)s#%(post_id)d">śledzonym temacie</a>',
  Notif_topic_watch_p : '<a href="/u%(id)d">%(name)s</a> napisał/a wiadomość w <a href="/t%(topic_id)dp%(start)d-%(topic_name)s?nid=%(nid)s#%(post_id)d">śledzonym temacie</a>',
  Notif_topic_watch_guest : 'Gość napisał wiadomość w <a href="/t%(topic_id)d-%(topic_name)s?nid=%(nid)s#%(post_id)d">obserwowanym temacie</a>',
  Notif_topic_watch_p_guest : 'Gość napisał wiadomość w <a href="/t%(topic_id)dp%(start)d-%(topic_name)s?nid=%(nid)s#%(post_id)d">obserwowanym temacie</a>',
  Notif_mention : '<a href="/u%(id)d">%(name)s</a> oznaczył Cię w <a href="/t%(topic_id)dp%(start)d-%(topic_name)s?nid=%(nid)s#%(post_id)d">temacie</a>',
  Notif_hashtag : 'Hasło <a href="/tags/%(tag)s">#%(tag)s</a> zostało oznaczone w <a href="/t%(topic_id)dp%(start)d-%(topic_name)s?nid=%(nid)s#%(post_id)d">temacie</a>.',
  All_PMs : 'Brak prywatnych wiadomości',
  No_assigned_rank : 'Brak przydzielonego zadania',
  Posts : 'Posty',
  PMs : 'PW',
  Reputation : 'Reputacja'
 },i;
 if (window._lang) for (i in toolbar_alias) window._lang[i] = toolbar_alias[i];
});')})});
All of these worked before few more changes. Now I deleted everything and saved again without the codes from below, after which JS stopped working:
Last edited by LeChat on December 15th 2019, 9:48 pm; edited 1 time in total