Проблема - при установке "закрепления первого поста темы", спойлер такого вида - (ниже) не отображается на следующих страницах, а выглядит в виде кода -
Заключи скрипт спойлера
в такие теги
<div class="vojd">
<!--Тут Скрипт Спойлера-->...
</div>
Скрипт Первого Сообщения - замени на такой
<!-- Первый пост --> <style>#pun-main .Firstpost{padding:12px;border-style:dotted;border-width:2px;margin-bottom:12px;}</style> <script>/*Attaching the first post to the topic*/ var DatapstFirst=false;function MyAalert(){DatapstFirst=FrFirstpost.FramValueReturn();StartPost();$("#Firstpost_iframe").replaceWith("");} if(document.URL.substring((document.URL.length)-7)=='&&Page1'){//parent.FrFirstpost.MyAalert(); 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); $("#DataReady",parent.document.body).click();$("plaintext").remove()});function FramValueReturn(){return TxPs;} 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);$(document).ready(function(){$(".Firstpost").after(".vojd")});return}else{setTimeout("StartPost()",period)}return false;}; 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\" name=\"FrFirstpost\" width=\"0\" height=\"0\" src=\""+Page1+"&&Page1\"></iframe></div><input id=\"DataReady\" style=\"display:none\" type=\"button\" class=\"button\" onclick=\"MyAalert()\" value=\"data_load\">";$("#pun-viewtopic").before(frame);}}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> <!-- Конец --> <style> #pun-title h1 span { display:none; } </style> <style type="text/css"> body { background-color: #18140C!important; } .punbb .section .container, .punbb .post-body, .punbb .post-links, .punbb td.tc2, .punbb td.tc3, .punbb .formal fieldset .post-box, #viewprofile li strong, #viewprofile li div, #setmods dd, .punbb .info-box, .punbb #pun-main .info-box .legend, .punbb .main .container, .punbb .post .container, .punbb .post h3, #pun-stats h2, .punbb .main h1, #pun-title, #pun-title .container, .punbb .modmenu .container, #pun-navlinks .container, .punbb th, .punbb .post h3 span, #pun-main fieldset legend span, #pun-main h1, .punbb .quote-box, .punbb .code-box, .punbb select, .punbb input, .punbb textarea { background: transparent none !important; } #pun { background: url(http://vangog.bks-tv.ru/i/4/4/4f00da7530744.jpg); } .punbb input.spoiler-button{ padding:6px!important; width:100px!important; background: url(http://vangog.bks-tv.ru/i/4/4/4f00da7530744.jpg) no-repeat center!important; } #button-image { display: none; } .punbb td div.tclcon{ padding-left: 60px; } .divParentFor span.title { color: #DED1BC!important; font-size:13px; margin-left: 50px; text-shadow: #000 2px 2px 2px; } </style> <style> .punbb *{ border-color:#988E74!important; } </style> <script src="http://hostjs-mybb2011.narod.ru/js/mybbpaginator.js"></script> <link rel="icon" href="http://savepic.ru/3139414.png" type="image/x-icon"> <link rel="shortcut icon" href="http://savepic.ru/3139414.png" type="image/x-icon"> <style type="text/css"> html, body { background: url(http://vangog.bks-tv.ru/i/d/5/4f0620aee675d.jpg) #fff !important; } </style> <img id=IndexImg src="http://vangog.bks-tv.ru/i/b/d/4f076d88e50db.jpg" border="0" style="display:none;width:842px;margin:-100px 6px 0 -6px;" /> <style>#pun-title{margin-top: 0px!important;} #pun-index #IndexImg {display:block!important;}</style> <style> .punbb .post-sig dt { border-top: 1px solid #997636; width: 560px; } </style> <style> .punbb .section h2, #pun-main h1, #pun-main h2, #pun-stats h2, #pun-debug h2 { background-image:none; background-color:transparent; } </style> <style> .punbb select, .punbb input, .punbb textarea { border: 2px solid #7e2e25; } </style> <style> .punbb .main .tcl { overflow: hidden; text-align: left; width: 40%; } .punbb .main .tc2, .punbb .main .tc3 { text-align: center; width: 15%; } </style>
Отредактировано Deff (27.01.12 21:13)