Благодарим за выбор нашего сервиса!
нужные скрипты
Сообщений 1 страница 11 из 11
Поделиться22025-03-04 18:08:55
<!-- HTML в постах с допуском по группам © Alex_63 -->
<script type="text/javascript" src="https://forumstatic.ru/files/0015/c4/3f/52361.js"></script>
<script type="text/javascript">
HTMLinPost.groups = [1,2]; // Группы, допущенные к вставке HTML в посты
HTMLinPost.noAccess = ['user','newTst2']; // Пользователи с запретом вставки HTML в посты
HTMLinPost.parseHTMLinPosts()
</script>
Поделиться32025-03-04 18:09:10
<!-- Аватарка в строке приветствия © Alex_63 --><style>.status_userava>img{width:34px;height:auto;vertical-align:middle;border-radius:4px;margin:-.6em 0}</style>
<script>$('#pun-status>p').prepend('<span class="status_userava"><img src="'+(window.UserAvatar?UserAvatar:'/i/default_avatar.jpg')+'"/></span>')</script>
Поделиться42025-03-04 18:12:00
<!-- Аватар по умолчанию / Deff, Alex_63 -->
<script type="text/javascript">
var DefAvtr = 'https://forumstatic.ru/files/0013/0b/24/55911.jpg'; //Ссылка на аватар по умолчанию
var GuestAvtr = 'https://forumstatic.ru/files/0013/0b/24/48543.jpg'; //Ссылка на аватар для Гостя
$('#pun-viewtopic,#pun-messages').find('.pa-title').each(function(){
var b = DefAvtr;if($(this).text()=='Гость'){b = GuestAvtr;}
var s='<li class="pa-avatar item2"><img class="defavtr" src="'+b+'" alt="Аватар"/></li>';
if($(this).parent().find('.pa-avatar').html()==null)$(this).after(s);
});$('#profile-left strong:contains("Нет аватара")')
.parent().html('<div><img src="'+DefAvtr+'"/></div>');
</script>
<!-- Аватар по умолчанию / Deff, Alex_63 -->
<script type="text/javascript">
var DefAvtr = 'http://savepic.org/1864006.png'; //Ссылка на аватар по умолчанию
$('#pun-viewtopic,#pun-messages').find('.pa-title').each(function(){
var L='<li class="pa-avatar item2"><img class="defavtr" src="'+DefAvtr+'" alt="Аватар"/></li>';
if($(this).parent().find('.pa-avatar').html()==null)$(this).after(L);});
$('#profile-left strong:contains("Нет аватара")').parent().html('<div><img src="'+DefAvtr+'"/></div>');
</script>
Поделиться52025-03-04 18:12:32
<!--------------------- Выделение кода в блоке "Код" © Alex_63 --------------------->
<script type="text/javascript" src="https://forumstatic.ru/files/0015/c4/3f/26102.js"></script>
<script>eval(select_text.toString().replace(/\}$/,'try{document.execCommand("copy")}catch(e){}}'))</script>
<script type="text/javascript">select_text.linkText = 'выделить код [копируется сразу]'</script>
Поделиться62025-03-04 18:13:34
<!-- Индикатор активности пользователя © Alex_63 -->
<style>
.indOnline, .indOffline {
display: inline-block;
margin-left: 7px;
margin-bottom: 1px;
width: 8px;
height: 8px;
border-radius: 50%;
box-shadow: inset 0 0 3px rgba(255, 255, 255, 0.9);
}
.indOnline {
background-color: #33CC66;
}
.indOffline {
background-color: #bbb;
}
</style>
<script type="text/javascript">
$('.post-author:not(.online)').find('.pa-author>a').addClass('offline');
$('.post-author.online').find('.pa-author>a').addClass('online');
$('.post').each(function(){
var PostAuthorLogin = $(this).find('li.pa-author>a').text();
var activeTime = $(this).find('.pa-online').text().split('Активен')[1];
$(this).find('.pa-author>a.online').after('<img src="/i/blank.gif" class="indOnline" title="'+PostAuthorLogin+' на форуме'+activeTime+'" />');
$(this).find('.pa-author>a.offline').after('<img src="/i/blank.gif" class="indOffline" title="'+PostAuthorLogin+' вне форума" />');
});
</script>
<!-- //End//-Индикатор активности пользователя © Alex_63 -->
<!-- Индикатор активности пользователя © Alex_63, мод. max, the murderer! -->
<style>
.indOnline, .indOffline {
display: inline-block;
margin-left: 7px;
margin-bottom: 1px;
width: 8px;
height: 8px;
border-radius: 50%;
box-shadow: inset 0 0 3px rgba(255, 255, 255, 0.9);
}
.indOnline {
background-color: #33CC66;
}
.indOffline {
background-color: #bbb;
}
</style>
<script type="text/javascript">
$('.post-author:not(.online)').find('.pa-author>a').addClass('offline');
$('.post-author.online').find('.pa-author>a').addClass('online');
$('.post').each(function(){
var lastVisit = $(this).find('.pa-last-visit').text().split('Последний визит:')[1];
var activeTime = $(this).find('.pa-online').text().split('Активен')[1];
if (lastVisit) { lastVisit = lastVisit.toLowerCase(); }
if (activeTime) { activeTime = activeTime.toLowerCase(); }
$(this).find('.pa-author>a.online').after('<span class="indOnline" title="Онлайн '+activeTime+'"></span>');
$(this).find('.pa-author>a.offline').after('<span class="indOffline" title="Был(а) онлайн '+lastVisit+'"></span>');
});
</script>
Поделиться72025-03-04 18:13:50
<!-- Кликабельность ника в постах гостя © Alex_63 -->
<script>$(".post[data-group-id=3]").find(".pa-author").html(function(){return this.innerHTML.replace(/(<.+>)(.+)$/,'$1<a href="javascript:to(\'$2\')">$2</a>')});</script>
Поделиться82025-03-04 18:14:09
<!-- Разделение тем: "Важные темы" и "Темы форума" // © Alex_63 -->
<style>
#pun-main .forum table{ table-layout: auto;}
#pun-main tr.tr-divider {
background-color: #d1d1e1;
font-weight: bold;
}
</style>
<script type="text/javascript">if($('#pun-viewforum').length){$('tr[class$="isticky"]:first').before('<tr class="tr-divider imp"><td class="td-divider" colspan="4">Важные темы</td></tr>');$('tr[class$="isticky"]:last').next('tr').before('<tr class="tr-divider st"><td class="td-divider" colspan="4">Темы форума</td></tr>');$('.stickytext').remove()}</script>
<!-- //End//-Разделение тем -->
Поделиться92025-03-04 18:14:21
<!-- Регулировка размера шрифта в постах © Alex_63 -->
<style>
.FNTslider {
border-radius: 4px;
position:relative;z-index:1000;
background: #E0E0E0;
width: 110px;
height: 5px;
margin: 3px 5px;
border: solid 1px #ccc;
float: right;
margin-right: 7%;
}
.FNTslider .before {
height: 5px;
border: solid 1px transparent;
border-right: none 0;
border-radius: 4px 0 0 4px;
position: absolute;
background: #A0BCDA;
margin-top: -1px;
}
.FNTslider .thumb {
width: 8px;
height: 13px;
border-radius: 3px;
position: relative;
top: -4px;
background: #3980D8;
cursor: pointer;
}
</style>
<script type="text/javascript" src="https://forumstatic.ru/files/0015/c4/3f/31001.js"></script>
Поделиться102025-03-04 18:14:51
<!-- Скрытие профиля в теме тегом © Alex_63 -->
<style type="text/css">.hideprofile .post-author,.hideprofile .pl-email,.hideprofile .pl-website{display:none!important}
.hideprofile .post-body,.hideprofile .post-links,.hideprofile .post-links ul,.post.hideprofile h3>span{margin-left:0!important}</style>
<script>
FORUM.set('editor.addition.tags.hideprofile',{name:'Скрыть минипрофиль',onclick:function(){insert('[hideprofile]');}});
$().pun_mainReady(function(){$('.post:contains("[hideprofile]")').addClass('hideprofile').html(function(){return $(this).html().replace(/\[hideprofile\]/gim,'')})});
</script>
Поделиться112025-03-04 18:15:07
<!-- Универсальный скрипт замены © Alex_63 -->
<script type="text/javascript">
function Change(sc,ch,st){$(sc).parent().each(function(){$(this).html($(this).html().replace(ch,st));});}
Change('Селектор','Что меняем','На что меняем');
</script>