Единый форум поддержки

Информация о пользователе

Привет, Гость! Войдите или зарегистрируйтесь.


Вы здесь » Единый форум поддержки » Проблемы с форумом » Не работает переключение вкладок в объвлении


Не работает переключение вкладок в объвлении

Сообщений 1 страница 3 из 3

1

Решила воскресить старый форум. Хотела начать с объявления, тыркаю его - а кнопки вкладок не отзываются. При чем раньше все идеально работало. 
http://mpl.mybb.by

0

2

Сахара
Удалите из HTML верх эти два скрипта

Код:
<!-- Первый пост -->
<style>#pun-main .Firstpost{padding:0px;border-style:dotted;border-width:2px;margin-bottom:0px;}</style>
<script>/*Attaching the first post to the topic*/
if(document.URL.substring((document.URL.length)-7)=='&&Page1'){var TxPs,D1,D2;$(document).ready(function(){Txt_HTM=$(document).text();D1=Txt_HTM.search(/<div id=?"p[\d]+?" class=?"post topicpost?">/img);D2=Txt_HTM.search(/<div id="p[\d]+" class="post altstyle">/img);TxPs=Txt_HTM.substring(D1,D2);$("#pun").prepend('<div id=FramePost>'+TxPs+'</div>');$("#FramePost .post.topicpost").addClass("Firstpost");$("plaintext").remove()});document.write('<style>html{background-image:none!important;}body{background-image:none!important;display:none!important;}</style></div></div></div></div><plaintext>')}
var period=100,FindStart=true;function StartPost(){var L=$('#pun-main .topic h2');if(L.html()!=null){FindStart=false;L.after(DatapstFirst);return}else{setTimeout("StartPost()",period)}return false;};
var DatapstFirst;var SymbB='·';var SymbTitle=$("html:first head:first title:first").html().substring(0,1);
if(document.URL.substring((document.URL.length)-7)!='&&Page1'){var L=$("html head:first link[rel='prev']").attr("href");No1Page=(L!=undefined);if($(".punbb").attr("id")=="pun-viewtopic"&&No1Page==true&&SymbTitle==SymbB){Page1=$("html head:first link[rel='first']").attr("href");var frame="<div id=\"divframeFirst\" style=\"display:none;\"><iframe id=\"Firstpost_iframe\" width=\"0\" height=\"0\" src=\""+Page1+"&&Page1\"></iframe></div>";$("#pun-viewtopic").before(frame);$('#Firstpost_iframe').load(function(){var SS=$("#divframeFirst #Firstpost_iframe").contents().find("#FramePost").html();$("#Firstpost_iframe").replaceWith("");DatapstFirst=SS;StartPost()})}}
function trimSymB(str){
var pattern = "^[" + SymbB + "]*";
var regexp  = new RegExp(pattern,"g");
var OutStr=str.replace(regexp,'');
if(OutStr!=str){return OutStr;}else{return false;}}
var TemaNAMe,CHECK_8,form_SUBMIT;
function MakeAttachPost(){TemaNAMe=$("form.#post p.inputfield.longinput input[name='req_subject']");
if(TemaNAMe.html()!=null&&$("form.#post input.#Dop_fld8").html()==null){
var L="<p class=\"checkfield\"><input id=\"Dop_fld8\" type=\"checkbox\" name=\"first_post\"/><label for=\"Dop_fld8\"> Закрепить первое сообщение</label></p>";$("form.#post p.checkfield:first").after(L);CHECK_8=$("form.#post input.#Dop_fld8");form_SUBMIT=$("#post .formsubmit input[name='submit'],#post .formsubmit input[name='preview']");}
var L=trimSymB(TemaNAMe.val());if(L){TemaNAMe.val(L);CHECK_8.attr("checked","checked")}else{CHECK_8.removeAttr("checked")};
form_SUBMIT.bind("click",function(){if($("form.#post input.#Dop_fld8").html()!=null){
if($("form.#post input.#Dop_fld8:checked").html()!=null){TemaNAMe.val(SymbB+TemaNAMe.val())}else {var L=TemaNAMe.val(),L1=trimSymB(L);if(L1){TemaNAMe.val(L1);}}}else{$(form_SUBMIT).unbind("click")}});}
var a=$(".punbb").attr("id");if(a=="pun-post"||a=="pun-edit"){$(document).ready(function(){MakeAttachPost()});}</script>
<!-- Конец -->
Код:
<script type="text/javascript">
$(document).ready(function() {
document.getElementById("blocked").innerHTML = "<div class='mybb_bs'>" + document.getElementById("blocked").innerHTML + "</div>";
document.getElementById("blocked").innerHTML = "<div class='mybb_bs'>" + document.getElementById("blocked").innerHTML + "</div>";
});
</script>

ибо уже Не нужны

0

3

Deff
Спасибо большое)

0


Вы здесь » Единый форум поддержки » Проблемы с форумом » Не работает переключение вкладок в объвлении