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

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

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


Вы здесь » Единый форум поддержки » Вопросы по оформлению форума » Стиль форума, как заменить старый на новый стиль, если...


Стиль форума, как заменить старый на новый стиль, если...

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

1

Здравствуйте уважаемые Админы!!! Помогите с оформлением форума!!! Дело в том , что на нашем форуме http://alexmatias.mybb.ru/ стоит стиль (Myff Pirates of the Caribbean), который правился много раз... меняли цвет букв, цвет фона, распределители на свой вкус и тд... Подскажите, а можно вернуть в первоначальный вид стиля?

Отредактировано Can Vas (Чт, 12 Ноя 2015 19:51:36)

0

2

Сохраните текущий контент HTML верх, замените на:

Код:
<style type="text/css">
#pun-title{
  margin-bottom:-100px!important;
}
</style>
<style>
.b-page_newyear .b-head-decor{
z-index:100;
position:fixed !important; /*фиксированное расположение*/
top:0px !important; /*положение от верха форума*/
}
</style>

<style type="text/css">
#pun-title .title-logo {display: none;}
#pun-title table {background-image: url(http://i057.radikal.ru/1508/fc/d7f6b8ab80bf.gif); height: 430px;}
</style>


<style type="text/css">
Div.icon {
width: 90px !important;
height: 75px !important;
position: relative !important;
border-style: none !important;
float: left;
background-image : url(http://s017.radikal.ru/i411/1503/f0/af65df9dec3a.png);
background-repeat: no-repeat;
}
TR.inew Div.icon {
background-image : url(http://s020.radikal.ru/i702/1503/5f/4a07b9c79a91.gif);
background-repeat: no-repeat;
}
TR.isticky Div.icon {
background-image : url(http://s003.radikal.ru/i202/1504/12/6b8d401f6890.jpg);
background-repeat: no-repeat;
}
TR.iclosed Div.icon {
background-image : url(http://homelab.vipcentr.ru/buttons/Alien36D.gif);
background-repeat: no-repeat;
}
TR.iredirect Div.icon {
background-image : url(http://homelab.vipcentr.ru/buttons/Alien36D.gif);
background-repeat: no-repeat;
}
</style>

#pun-navlinks li, #pun-ulinks li {
padding: 0 0.1em !important;
}

#pun-navlinks a, #pun-ulinks a {
padding: 0 !important;
}
</style>

<style type="text/css">
.post-author {
text-align: center !important;
color:#79553d;
}
</style>



<!-- Cтрелочки -Вверх вниз страницы -->
<div style="position:fixed;z-index:1003; right :0.5%; bottom: 45%;">
<a href="#top" onclick="scrollTo(0,0); return false;" title="Вверх страницы">
<img src="http://forumstatic.ru/files/0013/0e/5c/55580.gif" alt="Вверх страницы"/>
</a>
<br/>
<br/>
<a href="#top" onclick="scrollTo(0, document.body.scrollHeight); return false;" title="Вниз страницы">
<img src="http://forumstatic.ru/files/0013/0e/5c/42376.gif" alt="Вниз страницы"/>
</a>
</div><!--Конец Cтрелочки -->

<style>
#pun-status .container, #pun-crumbs1 .crumbs {display:none;}
</style>

<style type="text/css">#pun-crumbs2 p.container {
color : #DEB887; background-color : #4c7721;
font-size: 16px;
font-family: 'Times New Roman'
}
</style>

<style type="text/css">
.punbb a:link, .punbb a:visited {color: #330000}
.punbb a:hover {color: #CD0000;}
</style>

<style type="text/css">
#pun-announcement h2 {display: none; }
</style>

<style type="text/css">
body {
 font-size: 100%;
 }
</style>

<script type="text/javascript">
FORUM.set('editor.simple_image', { name : 'Вставить теги IMG', onclick : function() { bbcode('[img]','[/img]'); } } );
</script>

<style type="text/css">
#button-simple_image {background:url('http://st1.bbcorp.ru/i/images.png') no-repeat center !important;}
</style>

<script src="http://hostjs-mybb2011.narod.ru/js/mybb_up_paginator.js"></script>
<style>.linkst{margin-top:-30px;}</style>


<script src="http://hostjs-mybb2011.narod.ru/js/Deff_BigPalette.js"></script>



<link rel="stylesheet" type="text/css" href="http://hostjs-mybb2011.narod.ru/css/ScrollboxSmiliesTable.css" />
<script src="http://hostjs-mybb2011.narod.ru/js/SmiliesBox.js"></script>
<style> /* Стиль для ScrollboxSmilies */
#smilies-area.container {
 width:476px!important;   /* Ширина таблички */
 padding:10px;
}
#Ekr,#Ekr td,#Ekr td div {
  height:250px!important; /* Высота Экрана таблицы */
}
#Tab_01 {
  height:323px;        /* Общая высота таблицы(К высоте #Ekr добавить 73px(паддинги и кнопки) */
}
</style>
<div id="FutureScrollboxSmilies" style="display:none">
<!--====== &&&\ START TABLEBox Smilies  ======= -->
<center><table id="Tab_01" border="0" cellspacing="0" cellpadding="0">
         <tbody>
	   <tr>
	      <td  width="100%" valign="bottom" colspan="8">

<table id="Tab_Ekr" align="left" width="100%" border="0" cellspacing="0" cellpadding=0">
         <tbody>
	   <tr id="Ekr">

<!--&&& BOXES Smilies -->
	  </tr>
         </tbody>
	</table><!--&&&End EKR table-->
	      </td>
	   </tr>
	   <tr id="prevnext"   style="height:27px!important;">
	      <td  id="prevtd" width="50%" height="23" valign="center" align="right" colspan="4">

	      </td>
	      <td  id="nexttd" width="50%"  height="23" align="left" colspan=4>

	      </td>
	   </tr>
         </tbody>
	</table></center>
<!-- ============== &&&"/End/TABLEBox/ =========== -->
</div>
<style>/* ========= Персональные Поправки для некоторых ОКОН ========= */
 /* Развижка Смайлов в третьем Скролл-блоке */
#Ekr td.E3 div img{
   line-height:0!important;
   margin: 8px 3px;
   padding:0 1px;
}	 /* End -Стиль для CScrollboxSmilies */
</style>

<style>
html, body { background: transparent url(http://s018.radikal.ru/i511/1504/f9/b2ffbd86e223.jpg)fixed center top  !important; } /**/
#pun {
width:1155px;
margin: 0 auto !important;
background-attachment: scroll !important; 
} /* прокрутка форума,  */
</style>

<style>
#pun-navlinks{
margin-top: 110px;
}
</style>

<style>
#pun-main .formal textarea, .post-box {
font-family : "Arial";
font-size:16px;
}
</style>

<style>
div.forum tr.inew td.tcl .tclcon:after,
tr.inew[id^="forum"] td.tcl .tclcon h3 a:after{
 content: " " url(http://savepic.org/1705881.gif);
}
</style>

<style>
.post-content p iframe {
    background: maroon;
    border: 2px solid maroon;
    border-radius: 8px 8px 8px 8px;
    padding: 4px;
    height: 360px;
    width: 690px;
}
</style>


<style>
.button {
   border: 1px solid #442d25;
   background: #3e779d;
   background: -webkit-gradient(linear, left top, left bottom, from(#65a9d7), to(#3e779d));
   background: -webkit-linear-gradient(top, #65a9d7, #3e779d);
   background: -moz-linear-gradient(top, #65a9d7, #3e779d);
   background: -ms-linear-gradient(top, #65a9d7, #3e779d);
   background: -o-linear-gradient(top, #65a9d7, #3e779d);
   background-image: -ms-linear-gradient(top, #65a9d7 0%, #3e779d 100%);
   padding: 10.5px 21px;
   -webkit-border-radius: 6px;
   -moz-border-radius: 6px;
   border-radius: 6px;
   -webkit-box-shadow: rgba(255,255,255,0.4) 0 1px 0, inset rgba(255,255,255,0.4) 0 1px 0;
   -moz-box-shadow: rgba(255,255,255,0.4) 0 1px 0, inset rgba(255,255,255,0.4) 0 1px 0;
   box-shadow: rgba(255,255,255,0.4) 0 1px 0, inset rgba(255,255,255,0.4) 0 1px 0;
   text-shadow: #7ea4bd 0 1px 0;
   color: #06426c;
   font-size: 14px;
   font-family: helvetica, serif;
   text-decoration: none;
   vertical-align: middle;
   }
 .button:hover {
   border: 1px solid #442d25;
   text-shadow: #442d25 0 1px 0;
   background: #3e779d;
   background: -webkit-gradient(linear, left top, left bottom, from(#65a9d7), to(#3e779d));
   background: -webkit-linear-gradient(top, #65a9d7, #3e779d);
   background: -moz-linear-gradient(top, #65a9d7, #3e779d);
   background: -ms-linear-gradient(top, #65a9d7, #3e779d);
   background: -o-linear-gradient(top, #65a9d7, #3e779d);
   background-image: -ms-linear-gradient(top, #65a9d7 0%, #3e779d 100%);
   color: #fff;
   }
 .button:active {
   text-shadow: #442d25 0 1px 0;
   border: 1px solid #442d25;
   background: #65a9d7;
   background: -webkit-gradient(linear, left top, left bottom, from(#3e779d), to(#3e779d));
   background: -webkit-linear-gradient(top, #3e779d, #65a9d7);
   background: -moz-linear-gradient(top, #3e779d, #65a9d7);
   background: -ms-linear-gradient(top, #3e779d, #65a9d7);
   background: -o-linear-gradient(top, #3e779d, #65a9d7);
   background-image: -ms-linear-gradient(top, #3e779d 0%, #65a9d7 100%);
   color: #fff;
}
</style>


<style> /* Стиль всплывающего меню */
.splLink {cursor:pointer;width: 100px; height: 40px; border: 0px solid #104E8B; text-align: center; font-family: Gothic century; font-size: 15px; padding: 5px;}
.splCont {height: auto; width: 260px; background: #104E8B; padding: 5px; z-index: 1000; margin-top: 5px; border: 2px solid #104E8B; font-size: 12px; font-family: Lucida Sans Unicode; text-align: center;}

 /* Тень, Прозрачка и Скругление углов во Всплывающем меню */
.splCont {background-color: transparent !important; background-image: url("http://img1.liveinternet.ru/images/attach/c/3/75/367/75367061_preview_siniy.png"); 
    border-radius:15px;
    -webkit-border-radius:15px;
    -khtml-border-radius:15px;
    -moz-border-radius:15px;
    -o-border-radius:15px;

     box-shadow:0px 5px 14px #104E8B;
    -webkit-box-shadow:0px 5px 14px #104E8B;
    -khtml-box-shadow:0px 5px 14px #104E8B;
    -moz-box-shadow:0px 5px 14px #104E8B;
    /*text-shadow: #104E8B 1px 1px 4px !important;
    color: #color: #104E8B !important;*/
    }
.splCont:first-letter {
    font-family: "Times New Roman", Times, serif; /* Гарнитура шрифта первой буквы */
    font-size: 200% !important; /* Размер шрифта первого символа */
    color: red; /* Красный цвет текста */
   } /* Конец Стиля всплывающего меню */
</style>

<DIV style="position: fixed;right:0;top:50px;z-index:20000"><div class=splLink><img src="http://s7.uploads.ru/phIX2.png"/></div>

<DIV style="DISPLAY: none;position: absolute; right:17px;top:74px;" class=splCont>
<p style="text-align: center;"><span style="font-size: medium; color: #ff0000;"><strong>Он лайн ресурсы Матиаса</strong></span></p>
<a href="http://matias.link"> Official Website </a></em></span></span></p>
<a href="http://instagram.com/______matias/#"> Instagram </a></em></span></span></p>
<a href="https://twitter.com/#!/MATIAS______">Twitter </a></em></span></span></p>
<a href="http://www.facebook.com/profile.php?id=1632608760">Facebook</a></em></span></span></p>
<a href="http://vk.com/id53277423">vkontakte</a></em></span></span></p>
<a href="http://www.youtube.com/user/OFCMatias">YouTube</a></em></span></span></p>
<a href="https://www.pinterest.com/matiasgallery/">Pinterest</a></em></span></span></p>
<a href="http://gaganews.com.ua/Artist/Stars/104">БЛОГ   МАТИАСА на  gaganews.com.ua</a></em></span></span></p>
<br />

<p style="text-align: center;"><span style="font-size: medium; color: #ff0000;"><strong>КОНТАКТНАЯ ИНФОРМАЦИЯ</strong></span></p>

Пишите нам на электронный  адрес: alexmatias.mybb.ru@ukr.net 
Электронный  адрес ОФК: ofc@alexmatias.com
<br />

</DIV></DIV>

<!--Спойлер - контейнер-->
<script type="text/javascript"> 
  $(document).ready(function(){
    $('.splLink').click(function(){
      $(this).parent().children('div.splCont').toggle('normal');
      return false;
    });
  });
</script>

<style type="text/css"> #pun th {
color: #DEB887; background-color : #DEB887;
}
</style>


<style type="text/css"> 
.post * {
color: #330000; 
}
</style>

<script src="http://hostjs-mybb2011.narod.ru/js/New_stats.js"></script>

<script type="text/javascript"><!-- Cкрипт Скрытия Присутствия -->
        var first = true;
  $(document).ready(function(){
        UserOff(1,"Сегодня 14:15:04",2, "svetlana")
        

       
     function UserOff(off,last_visit,IDUser,NIK){
        if(off!==0) {
        var t9="Последний визит:<br/>"
        var p =",",p2='<span class=pt>,</span>'
        var s;
        var ss0=0;
        var ss000;
     var NIKprov = "/profile.php?id="+IDUser;
function removeNicKandZpt(selekt){
var Changes=false;
        if(first){first = false;
	selekt.html(selekt.html().substring(0).replace(/,/img,p2));}
	selekt.find("a[href$='"+NIKprov+"']").each(function(){Changes=true;
        $(this).next('span.pt').remove();$(this).remove();
        var ptlast = selekt.find('a:last').next('span.pt');
        if(ptlast.length)ptlast.remove()
        }); return Changes;
}
// Проверяем на Главной
	//selekt=$("#pun-index #onlinelist>div a[title$='кто чем занимается на форуме.']").parent();
	selekt=$("#pun-index .statscon");
        ss0=selekt.html()
        if (ss0!==null){//Ищем и убираем Ник и запятушку
 	if(removeNicKandZpt(selekt)){
        ss0=selekt.find("strong:eq(1)").html();//alert(ss0)
        s=ss0-1; // Уменьшаем кол-во пользователей

        selekt.find("strong:eq(1)").html(s)
}} // конец проверки на Главной

//Проверка в Топике
        var ss = "Тему просматривают"
        selekt=$("#pun-viewtopic div.modmenu p.container:contains('"+ss+"')")
        ss0=selekt.html();

        if (ss0!==null){ //Ищем и убираем Ник и запятушку
 	if(removeNicKandZpt(selekt)){ss000=selekt.html();
	for(var i=0;i<ss000.length;i++){
        if (ss000.substring(0,i).indexOf("Пользователей: ")!=-1){ //Ищем на стр. кол-во Пользователей
        var j=i;
        break;}}

        for(var i=j;i<ss000.length;i++){
        if (ss000.substring(j,i).indexOf(")")!=-1){
	var y=i;
        break;}}
        
        s=ss000.substring(j,y-1)-1
	ss000=ss000.substring(0,j)+s+ss000.substring(y-1)
        ss0=selekt.html(ss000); //Вставили измененую строку юзеров внизу Tопика

}}; // конец проверки строки присутствия в топике

//проверки активности Аватара в топике
        ss0=$("#pun-viewtopic li.pl-email a[href$='"+NIKprov+"'],#pun-messages li.pa-author a[href$='"+NIKprov+"']").parents("div.container").find("div.post-author.online ul").html()
        $('#most_invites,#administration').find('a[href$="'+NIKprov+'"]').parents('tr').find('.tc3:last').text(last_visit.split(/\d\d:\d\d/)[0])
        if (ss0!==null){

        if(document.URL.split('/profile.php?id=')[1]==''+IDUser)$('#pun-profile #profile-right li span:contains("Последний визит:")').next('strong').text(last_visit)
        $("li.pl-email a[href$='"+NIKprov+"'],#pun-messages li.pa-author a[href$='"+NIKprov+"']").parents("div.container").find("div.post-author.online ul").each(function(i){
        $(this).find("li.pa-online").addClass("pa-last-visit").removeClass("pa-online").html(t9+last_visit)
	$(this).parent("div.post-author.online").removeClass("online")
   });
}// конец -проверки активности Аввы в топике

// Проверка и cкрытие при просмотре: ссылки(с главной) "Активны"
        ss0=$("#pun-online td.tcl a[href$='"+NIKprov+"']").parent("td.tcl").parent("tr").hide()
       }
    }
});
</script><!-- End//Cкрытие Присутствия -->

<script type="text/javascript">
$('.post-content').each(function(){
  var html = $(this).html().replace(/(#[\S]+)/g,'<a href="http://'+location.hostname+'/search.php?action=search&keywords=$1&search_in=message" class="hash" title="$1">$1</a>');
  $(this).html(html).each(function(){
    $('.hash').each(function(){
      var href = $(this).attr('href').replace(/#/, '%23').replace(/@/,'');
      var title = $(this).attr('title').replace(/(#+)/, '');
      $(this).attr('href',href).attr('title',title);
    });
  });
});
</script>

(Убрал некоторые Правки)

0

3

Deff написал(а):

Сохраните текущий контент HTML верх, замените на:

(Убрал некоторые Правки)

Заменила, но что.то не так .... задний фон не изменился , да скрипт выскочил над шапкой, шрифт букв изменился...

0

4

Can Vas
Вот совсем без правок:

(HTML верх

Код:
<style>
.b-page_newyear .b-head-decor{
z-index:100;
position:fixed !important; /*фиксированное расположение*/
top:0px !important; /*положение от верха форума*/
}
</style>

<!-- Cтрелочки -Вверх вниз страницы -->
<div style="position:fixed;z-index:1003; right :0.5%; bottom: 45%;">
<a href="#top" onclick="scrollTo(0,0); return false;" title="Вверх страницы">
<img src="http://forumstatic.ru/files/0013/0e/5c/55580.gif" alt="Вверх страницы"/>
</a>
<br/>
<br/>
<a href="#top" onclick="scrollTo(0, document.body.scrollHeight); return false;" title="Вниз страницы">
<img src="http://forumstatic.ru/files/0013/0e/5c/42376.gif" alt="Вниз страницы"/>
</a>
</div><!--Конец Cтрелочки -->


<script type="text/javascript">
FORUM.set('editor.simple_image', { name : 'Вставить теги IMG', onclick : function() { bbcode('[img]','[/img]'); } } );
</script>

<style type="text/css">
#button-simple_image {background:url('http://st1.bbcorp.ru/i/images.png') no-repeat center !important;}
</style>

<script src="http://hostjs-mybb2011.narod.ru/js/mybb_up_paginator.js"></script>
<style>.linkst{margin-top:-30px;}</style>


<script src="http://hostjs-mybb2011.narod.ru/js/Deff_BigPalette.js"></script>



<link rel="stylesheet" type="text/css" href="http://hostjs-mybb2011.narod.ru/css/ScrollboxSmiliesTable.css" />
<script src="http://hostjs-mybb2011.narod.ru/js/SmiliesBox.js"></script>
<style> /* Стиль для ScrollboxSmilies */
#smilies-area.container {
 width:476px!important;   /* Ширина таблички */
 padding:10px;
}
#Ekr,#Ekr td,#Ekr td div {
  height:250px!important; /* Высота Экрана таблицы */
}
#Tab_01 {
  height:323px;        /* Общая высота таблицы(К высоте #Ekr добавить 73px(паддинги и кнопки) */
}
</style>
<div id="FutureScrollboxSmilies" style="display:none">
<!--====== &&&\ START TABLEBox Smilies  ======= -->
<center><table id="Tab_01" border="0" cellspacing="0" cellpadding="0">
         <tbody>
	   <tr>
	      <td  width="100%" valign="bottom" colspan="8">

<table id="Tab_Ekr" align="left" width="100%" border="0" cellspacing="0" cellpadding=0">
         <tbody>
	   <tr id="Ekr">

<!--&&& BOXES Smilies -->
	  </tr>
         </tbody>
	</table><!--&&&End EKR table-->
	      </td>
	   </tr>
	   <tr id="prevnext"   style="height:27px!important;">
	      <td  id="prevtd" width="50%" height="23" valign="center" align="right" colspan="4">

	      </td>
	      <td  id="nexttd" width="50%"  height="23" align="left" colspan=4>

	      </td>
	   </tr>
         </tbody>
	</table></center>
<!-- ============== &&&"/End/TABLEBox/ =========== -->
</div>
<style>/* ========= Персональные Поправки для некоторых ОКОН ========= */
 /* Развижка Смайлов в третьем Скролл-блоке */
#Ekr td.E3 div img{
   line-height:0!important;
   margin: 8px 3px;
   padding:0 1px;
}	 /* End -Стиль для CScrollboxSmilies */
</style>


<style>
div.forum tr.inew td.tcl .tclcon:after,
tr.inew[id^="forum"] td.tcl .tclcon h3 a:after{
 content: " " url(http://savepic.org/1705881.gif);
}
</style>

<style> /* Стиль всплывающего меню */
.splLink {cursor:pointer;width: 100px; height: 40px; border: 0px solid #104E8B; text-align: center; font-family: Gothic century; font-size: 15px; padding: 5px;}
.splCont {height: auto; width: 260px; background: #104E8B; padding: 5px; z-index: 1000; margin-top: 5px; border: 2px solid #104E8B; font-size: 12px; font-family: Lucida Sans Unicode; text-align: center;}

 /* Тень, Прозрачка и Скругление углов во Всплывающем меню */
.splCont {background-color: transparent !important; background-image: url("http://img1.liveinternet.ru/images/attach/c/3/75/367/75367061_preview_siniy.png"); 
    border-radius:15px;
    -webkit-border-radius:15px;
    -khtml-border-radius:15px;
    -moz-border-radius:15px;
    -o-border-radius:15px;

     box-shadow:0px 5px 14px #104E8B;
    -webkit-box-shadow:0px 5px 14px #104E8B;
    -khtml-box-shadow:0px 5px 14px #104E8B;
    -moz-box-shadow:0px 5px 14px #104E8B;
    /*text-shadow: #104E8B 1px 1px 4px !important;
    color: #color: #104E8B !important;*/
    }
.splCont:first-letter {
    font-family: "Times New Roman", Times, serif; /* Гарнитура шрифта первой буквы */
    font-size: 200% !important; /* Размер шрифта первого символа */
    color: red; /* Красный цвет текста */
   } /* Конец Стиля всплывающего меню */
</style>

<DIV style="position: fixed;right:0;top:50px;z-index:20000"><div class=splLink><img src="http://s7.uploads.ru/phIX2.png"/></div>

<DIV style="DISPLAY: none;position: absolute; right:17px;top:74px;" class=splCont>
<p style="text-align: center;"><span style="font-size: medium; color: #ff0000;"><strong>Он лайн ресурсы Матиаса</strong></span></p>
<a href="http://matias.link"> Official Website </a></em></span></span></p>
<a href="http://instagram.com/______matias/#"> Instagram </a></em></span></span></p>
<a href="https://twitter.com/#!/MATIAS______">Twitter </a></em></span></span></p>
<a href="http://www.facebook.com/profile.php?id=1632608760">Facebook</a></em></span></span></p>
<a href="http://vk.com/id53277423">vkontakte</a></em></span></span></p>
<a href="http://www.youtube.com/user/OFCMatias">YouTube</a></em></span></span></p>
<a href="https://www.pinterest.com/matiasgallery/">Pinterest</a></em></span></span></p>
<a href="http://gaganews.com.ua/Artist/Stars/104">БЛОГ   МАТИАСА на  gaganews.com.ua</a></em></span></span></p>
<br />

<p style="text-align: center;"><span style="font-size: medium; color: #ff0000;"><strong>КОНТАКТНАЯ ИНФОРМАЦИЯ</strong></span></p>

Пишите нам на электронный  адрес: alexmatias.mybb.ru@ukr.net 
Электронный  адрес ОФК: ofc@alexmatias.com
<br />

</DIV></DIV>

<!--Спойлер - контейнер-->
<script type="text/javascript"> 
  $(document).ready(function(){
    $('.splLink').click(function(){
      $(this).parent().children('div.splCont').toggle('normal');
      return false;
    });
  });
</script>

<script src="http://hostjs-mybb2011.narod.ru/js/New_stats.js"></script>

<script type="text/javascript"><!-- Cкрипт Скрытия Присутствия -->
        var first = true;
  $(document).ready(function(){
        UserOff(1,"Сегодня 14:15:04",2, "svetlana")
        

       
     function UserOff(off,last_visit,IDUser,NIK){
        if(off!==0) {
        var t9="Последний визит:<br/>"
        var p =",",p2='<span class=pt>,</span>'
        var s;
        var ss0=0;
        var ss000;
     var NIKprov = "/profile.php?id="+IDUser;
function removeNicKandZpt(selekt){
var Changes=false;
        if(first){first = false;
	selekt.html(selekt.html().substring(0).replace(/,/img,p2));}
	selekt.find("a[href$='"+NIKprov+"']").each(function(){Changes=true;
        $(this).next('span.pt').remove();$(this).remove();
        var ptlast = selekt.find('a:last').next('span.pt');
        if(ptlast.length)ptlast.remove()
        }); return Changes;
}
// Проверяем на Главной
	//selekt=$("#pun-index #onlinelist>div a[title$='кто чем занимается на форуме.']").parent();
	selekt=$("#pun-index .statscon");
        ss0=selekt.html()
        if (ss0!==null){//Ищем и убираем Ник и запятушку
 	if(removeNicKandZpt(selekt)){
        ss0=selekt.find("strong:eq(1)").html();//alert(ss0)
        s=ss0-1; // Уменьшаем кол-во пользователей

        selekt.find("strong:eq(1)").html(s)
}} // конец проверки на Главной

//Проверка в Топике
        var ss = "Тему просматривают"
        selekt=$("#pun-viewtopic div.modmenu p.container:contains('"+ss+"')")
        ss0=selekt.html();

        if (ss0!==null){ //Ищем и убираем Ник и запятушку
 	if(removeNicKandZpt(selekt)){ss000=selekt.html();
	for(var i=0;i<ss000.length;i++){
        if (ss000.substring(0,i).indexOf("Пользователей: ")!=-1){ //Ищем на стр. кол-во Пользователей
        var j=i;
        break;}}

        for(var i=j;i<ss000.length;i++){
        if (ss000.substring(j,i).indexOf(")")!=-1){
	var y=i;
        break;}}
        
        s=ss000.substring(j,y-1)-1
	ss000=ss000.substring(0,j)+s+ss000.substring(y-1)
        ss0=selekt.html(ss000); //Вставили измененую строку юзеров внизу Tопика

}}; // конец проверки строки присутствия в топике

//проверки активности Аватара в топике
        ss0=$("#pun-viewtopic li.pl-email a[href$='"+NIKprov+"'],#pun-messages li.pa-author a[href$='"+NIKprov+"']").parents("div.container").find("div.post-author.online ul").html()
        $('#most_invites,#administration').find('a[href$="'+NIKprov+'"]').parents('tr').find('.tc3:last').text(last_visit.split(/\d\d:\d\d/)[0])
        if (ss0!==null){

        if(document.URL.split('/profile.php?id=')[1]==''+IDUser)$('#pun-profile #profile-right li span:contains("Последний визит:")').next('strong').text(last_visit)
        $("li.pl-email a[href$='"+NIKprov+"'],#pun-messages li.pa-author a[href$='"+NIKprov+"']").parents("div.container").find("div.post-author.online ul").each(function(i){
        $(this).find("li.pa-online").addClass("pa-last-visit").removeClass("pa-online").html(t9+last_visit)
	$(this).parent("div.post-author.online").removeClass("online")
   });
}// конец -проверки активности Аввы в топике

// Проверка и cкрытие при просмотре: ссылки(с главной) "Активны"
        ss0=$("#pun-online td.tcl a[href$='"+NIKprov+"']").parent("td.tcl").parent("tr").hide()
       }
    }
});
</script><!-- End//Cкрытие Присутствия -->

<script type="text/javascript">
$('.post-content').each(function(){
  var html = $(this).html().replace(/(#[\S]+)/g,'<a href="http://'+location.hostname+'/search.php?action=search&keywords=$1&search_in=message" class="hash" title="$1">$1</a>');
  $(this).html(html).each(function(){
    $('.hash').each(function(){
      var href = $(this).attr('href').replace(/#/, '%23').replace(/@/,'');
      var title = $(this).attr('title').replace(/(#+)/, '');
      $(this).attr('href',href).attr('title',title);
    });
  });
});
</script>

0

5

Alex_63 написал(а):

Can Vas
Вот совсем без правок:

(HTML верх

СПАСИБО ОГРОМНОЕ!!!

0

6

Привет. Подскажите MyFF Dark как заменить шапку, или просто убрать?

0

7

distract
Лучше ссылку на форум и ссылку на картинку новой шапки...

0

8

Deff написал(а):

distract
Лучше ссылку на форум и ссылку на картинку новой шапки...

http://alternative911.mybb.ru/
http://forumstatic.ru/files/001b/b8/9f/70038.png?v=1

Отредактировано distract (Сб, 26 Авг 2023 11:04:22)

0

9

distract
В HTML верх:

Код:
<style>
#pun-title {
    background: url(https://forumstatic.ru/files/001b/b8/9f/70038.png) no-repeat 50px 25px;}
</style>

Отредактировано Deff (Сб, 26 Авг 2023 12:06:20)

0

10

Deff написал(а):

distract
В HTML верх:

Код:
<style>
#pun-title {
    background: url(https://forumstatic.ru/files/001b/b8/9f/70038.png) no-repeat 50px 25px;}
<style>

черный экран получился :(
https://forumupload.ru/uploads/0000/14/1c/38707/t624941.png
значит не судьба

ладно, спасибо за совет

+1

11

Поправил, соррь, тег закрытия </style>  кривой был(без слеша)...   o.O  :blush:

0

12

Deff написал(а):

Поправил, соррь, тег закрытия </style>  кривой был(без слеша)...   o.O  :blush:

О, сенкс. Работает

+1


Вы здесь » Единый форум поддержки » Вопросы по оформлению форума » Стиль форума, как заменить старый на новый стиль, если...