ХаоС
Ну начнем с того, что у Вас куча ошибок и дублей скриптов, к примеру вот этот в HTML верх дублируется(второй удалите)
<!-- Запрет редактирования постов в определенных форумах -->
<script type="text/javascript">
/* Запрет редактирования первого поста */
var FirstPost_NoEdit = {
//ID форума //Группы с запретом
66: [2,4] //!Последний элемент без запятой
}
var DisallowOnlyFirst = 0 ; // Запрет редактирования: 0 - всех постов, 1 - только первых постов
</script><style id="HideEdit1">.post .pl-edit,#pun-edit #post{display:none!important}</style>
<script type="text/javascript" src="https://forumstatic.ru/files/0015/c4/3f/81542.js"></script>
Эти в HTML низ - с разрывами строк( поправьте или выкиньте - сейчас все равно не работает) - Поправил переносы тут: (красным)
<script type="text/javascript">
Offcategor("База данных", new Array("Мастер Игры", "Хромой", "Рейн Риг"))
function Offcategor(categor,myarray){
var a = 1
if(GroupTitle =="Гость"||GroupTitle =='Гости'){UserLogin = " ";}
st = document.getElementById("pun-crumbs1").innerHTML;
if (st.indexOf(categor)!= -1){
var a = 0
for(q=0;q<myarray.length;q++){
if (myarray[q]== UserLogin){
a = 1}}
if (a != 1){document.getElementById("pun-main").innerHTML = "<div id=\"pun-main\" class=\"main\" style=\"margin-top: -25px!important;\"><h1><span>Вы нарвались на вышибалу</span></h1><div class=\"info\"><div class=\"container\"><b><span style='font-size:14px;'>- Эй, ты не из наших. Брызнул-ка отсюда! </span><b></div></div></div>"}
}
}
</script>
<script>
var str='<img src="/i/blank.gif" title="Выделение реплик" onclick="changeVisibility(\'meny_My_replic\')"/>';
if(document.URL.indexOf("/viewtopic.php?id")!=-1 || document.URL.indexOf("/post.php?fid")!=-1 || document.URL.indexOf("/post.php?tid")!=-1 || document.URL.indexOf("/edit.php?id")!=-1)$("#form-buttons #button-underline").after("<td id=My_replic_meny>"+str+"</td>")
$("#keyboard-area").after($("div.#Hide").html())
$('#meny_My_replic p').click(function(){
var L=$(this).find("span").html();
var P=L.split(',');
bbcode(P[0],P[1])
return false;
});
</script>
<script>var a,L,epl=$("#main-reply"),str='<small id="plng" style="border:1px solid;padding:2px 3px;margin:0 20px 0 10px;">Написано символов: <b>00</b> </small>';epl.parents("fieldset").find("legend").prepend(str);function epl3(){a=epl.val().length;if(a>9){L=''}else{L='0'};$("#plng b").text(L+a)};epl3();$(".pl-quote").click(function (){setTimeout('epl3()',100)});epl.bind('mouseout mousemove keydown keypress keyup',function(e){epl3()});</script>
<!--Всплывающее окно цитирования--><div id="Bubble" style="display:none;position:absolute;z-index:100000"><span></span></div><script>function PopUpPL_Quote(){var fresh=false,SSsq='<img src="https://forumstatic.ru/files/000f/44/08/27182.png">';$("#Bubble").prependTo("body");$('.post').mouseup(function(pos){var theSelection='';if(window.getSelection&&!$.browser.opera){theSelection=window.getSelection().toString()}else if(document.getSelection){theSelection=document.getSelection()}else if(document.selection){theSelection=document.selection.createRange().text}if(!(theSelection==''||typeof theSelection=='undefined'||theSelection==null)&&!(fresh)){$("#Bubble").css({'left': (pos.pageX+5)+'px', 'top':(pos.pageY+4)+'px', 'display': 'none' });$("#Bubble span").html('<a href="'+$(this).find("li.pl-quote a:first").attr("href")+'">'+SSsq+'</a>');$("#Bubble").fadeIn(200);fresh=true}else if(fresh){fresh=false}});$('#Bubble span').click(function(){$('#Bubble').hide(200);fresh=false});$('.post').mousedown(function(){if(fresh){$("#Bubble:visible").hide(200);fresh=false}});}if($("#pun-viewtopic").length){PopUpPL_Quote()}
</script>
<script>
function BANNERS_TOGGLE(){if($("#ba_0").css("display")=="none"){var V=$("#ba_0 #BanersHide");if(V.html()!=null){var V1=V.html().replace(/^\/\*([\s\S]*)\*\//img,"$1");$("#ba_0").html(V1);}$("#ba_0").fadeIn("slow");
scrollTo(0, document.body.scrollHeight);
}else $("#ba_0").hide();}</script>
Модераторские теги у Вас тож сломаны - Поставьте новые => Модераторские теги С защитой от использования обычными юзерами
==============================
Если не поможет - Пробуйте убирать все скрипты(оставив лишь скрипт выделения кода) и ставить по одному, и смотреть, когда перестает работать, соответственно так отловить конфликтующий скрипт